/* Plazmia — plazmia.com
   Identidad: Terracota, Barro, Brasa, Arena, Crema · Fraunces + Inter */

:root {
  --terracota: #A94E2A;
  --barro: #2E211B;
  --brasa: #D9895F;
  --arena: #E6D6C2;
  --crema: #F6F0E7;
  --papel: #FBF8F3;
  --tinta-2: #4A3A30;
  --tinta-3: #6B5A4E;
  --linea-oscura: #5A473C;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ancho: 1200px;
  --margen: clamp(20px, 4vw, 40px);
  --seccion-y: clamp(64px, 9vw, 96px);

  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--crema);
  color: var(--barro);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

:focus-visible {
  outline: 2px solid var(--terracota);
  outline-offset: 3px;
  border-radius: 6px;
}
.banda--barro :focus-visible,
.contacto__caja :focus-visible { outline-color: var(--crema); }

[id] { scroll-margin-top: 24px; }

::selection { background: var(--brasa); color: var(--barro); }

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  background: var(--barro);
  color: var(--crema);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
}
.skip:focus { top: 16px; }

.wrap {
  width: 100%;
  max-width: var(--ancho);
  margin-inline: auto;
  padding-inline: var(--margen);
}

/* ---------- Botones ---------- */

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.boton:active { transform: translateY(1px); }

.boton--chico { min-height: 44px; padding: 12px 22px; font-size: 16px; font-weight: 500; }
.boton--grande { padding: 18px 30px; font-size: 18px; }

.boton--oscuro { background: var(--barro); color: var(--crema); }
.boton--oscuro:hover { background: var(--terracota); color: #fff; }

.boton--terracota { background: var(--terracota); color: #fff; }
.boton--terracota:hover { background: var(--barro); color: var(--crema); }

.boton--contorno { border: 1.5px solid var(--barro); color: var(--barro); padding-block: 12.5px; }
.boton--contorno:hover { background: var(--barro); color: var(--crema); }

.boton--crema { background: var(--crema); color: var(--barro); }
.boton--crema:hover { background: var(--barro); color: var(--crema); }

/* ---------- Tipografía común ---------- */

.ceja {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terracota);
}
.ceja--brasa { color: var(--brasa); }

.seccion {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-block: var(--seccion-y);
}
.seccion--amplia { gap: 56px; }

.seccion__cabeza {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 680px;
}

.seccion__titulo {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -.03em;
  text-wrap: balance;
}

/* ---------- Nav ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 28px;
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.marca__arco { flex: none; }
.marca__nombre {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.03em;
  padding-bottom: 4px;
}
.marca__nombre span { color: var(--terracota); }

.nav__enlaces {
  display: flex;
  align-items: center;
  gap: 8px 28px;
  font-size: 16px;
  font-weight: 500;
}
.nav__enlace { padding-block: 10px; }
.nav__enlace:hover { color: var(--terracota); }

/* ---------- Hero ---------- */

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 56px;
  padding-top: clamp(32px, 6vw, 72px);
  padding-bottom: var(--seccion-y);
}

.hero__texto {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero__titulo {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(56px, 8vw, 116px);
  line-height: .92;
  letter-spacing: -.04em;
}
.hero__titulo em {
  font-style: italic;
  font-weight: 400;
  color: var(--terracota);
}

.hero__intro {
  max-width: 540px;
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.6;
  color: var(--tinta-2);
}

.hero__acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 8px;
}

.hero__arcos {
  flex: 1 1 360px;
  min-width: 0;
  max-width: 480px;
  margin-inline: auto;
  aspect-ratio: 452 / 400;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 14px;
}

.arco {
  border-radius: 999px 999px 0 0;
  transform-origin: 50% 100%;
}
.arco--arena { width: 26%; height: 52%; background: var(--arena); }
.arco--terracota {
  width: 42%;
  height: 100%;
  background: var(--terracota);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.arco--brasa { width: 48%; height: 46%; background: var(--brasa); }
.arco--barro { width: 22%; height: 38%; background: var(--barro); }

@media (prefers-reduced-motion: no-preference) {
  .arco { animation: moldear .9s cubic-bezier(.2, .8, .2, 1) both; }
  .arco--arena { animation-delay: .05s; }
  .arco--terracota { animation-delay: .15s; }
  .arco--brasa { animation-delay: .55s; animation-duration: .7s; }
  .arco--barro { animation-delay: .3s; }

  @keyframes moldear {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
  }
}

/* ---------- Bandas ---------- */

.banda--papel {
  background: var(--papel);
  border-block: 1px solid var(--arena);
}

.banda--barro {
  background: var(--barro);
  color: var(--crema);
}

/* ---------- Rejillas ---------- */

.rejilla {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 600px) {
  .rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .rejilla { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Servicios ---------- */

.tarjeta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 28px;
  background: var(--crema);
  border: 1px solid var(--arena);
  border-radius: 22px;
}
.tarjeta p { color: var(--tinta-2); }

.tarjeta__icono {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--terracota);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tarjeta__titulo {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.02em;
}

/* ---------- Proceso ---------- */

.pasos { gap: 40px 32px; }

.paso {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--linea-oscura);
}
.paso p { color: var(--arena); }

.paso__numero {
  font-family: var(--serif);
  font-size: 52px;
  line-height: 1;
  color: var(--brasa);
}

.paso__titulo {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
}

/* ---------- Contacto ---------- */

.contacto { padding-block: var(--seccion-y); }

.contacto__caja {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(32px, 6vw, 80px);
  background: var(--terracota);
  color: var(--crema);
  border-radius: clamp(24px, 3vw, 32px);
}

.contacto__texto {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contacto__texto p {
  max-width: 520px;
  font-size: 19px;
  line-height: 1.6;
}

.contacto__titulo {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -.03em;
  text-wrap: balance;
}

/* ---------- Pie ---------- */

.pie { border-top: 1px solid var(--arena); }

.pie__fila {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding-block: 32px;
  font-size: 15px;
  color: var(--tinta-3);
}

.pie__marca {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pie__marca svg { flex: none; }

/* ---------- Pantallas chicas ---------- */

@media (max-width: 640px) {
  .nav { padding-block: 20px; }
  .marca__arco { width: 34px; height: 34px; }
  .marca__nombre { font-size: 26px; }
  .nav__enlace { display: none; }

  .hero { gap: 40px; }
  .hero__texto { flex-basis: 100%; gap: 22px; }
  .hero__acciones .boton { flex: 1 1 auto; }

  .contacto__texto { flex-basis: 100%; }
  .contacto__texto p { font-size: 17px; }
  .contacto__caja .boton { width: 100%; }
}
