/* ==========================================================================
   ADINCO · estilos.css
   Sistema: docs/DESIGN.md. Mobile first. Breakpoints: 760px y 1024px.
   Índice: 1 Tokens · 2 Base · 3 Utilidades · 4 Botones, enlaces, iconos
           5 Header · 6 Hero · 7 Banda y selector · 8 Secciones y bento
           9 Por qué · 10 Proceso · 11 Para quién · 12 Futuro · 13 FAQ
           14 Ciudad · 15 Contacto y formulario · 16 Footer · 17 Flotante
           18 Prosa (páginas internas) · 19 Movimiento reducido
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-var.woff2") format("woff2-variations"),
       url("../assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  color-scheme: light;
  /* color */
  --papel: #F4F4F6;
  --blanco: #FFFFFF;
  --tinta: #1D1F2A;
  --tinta-2: #555968;
  --linea: #DCDDE3;
  --pizarra: #606372;
  --pizarra-profunda: #272A36;
  --sobre-oscuro: #F4F4F6;
  --sobre-oscuro-2: #B9BCC8;
  --linea-oscura: #3D4150;
  --brasa: #FF7A1A;
  --brasa-hover: #FF8E3D;
  --brasa-texto: #B93A0A;
  --sol: #FFC21A;
  --rojo: #E0101E;
  --error: #B4161F;
  --degradado-marca: linear-gradient(120deg, #FFC21A 0%, #FF7A1A 45%, #E0101E 100%);
  /* tipografía */
  --fuente: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* radios */
  --r-bloque: 4px;
  --r-accion: 999px;
  /* espacio (base 4) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --seccion: clamp(4.5rem, 9vw, 8rem);
  --canal: clamp(1.25rem, 4vw, 2.5rem);
  --ancho: 1200px;
  --alto-cabecera: 64px;
  /* movimiento */
  --salida: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 1024px) {
  :root { --alto-cabecera: 72px; }
}

/* 2. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--pizarra) var(--papel);
  accent-color: var(--brasa-texto);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

html.menu-abierto { overflow: hidden; }

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--fuente);
  font-size: 1.0625rem;
  font-weight: 400;
  font-stretch: 100%;
  line-height: 1.6;
  overflow-x: clip;
  caret-color: var(--brasa-texto);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
em { font-style: normal; font-weight: 600; }
section[id] { scroll-margin-top: 88px; }

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; max-width: 62ch; }

h1 {
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  font-weight: 680;
  font-stretch: 112%;
  line-height: 1.02;
  letter-spacing: -0.025em;
}
h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.9rem);
  font-weight: 660;
  font-stretch: 110%;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 1.2rem;
  font-weight: 640;
  font-stretch: 104%;
  line-height: 1.25;
  letter-spacing: -0.005em;
}
.verbo {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 660;
  font-stretch: 110%;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.lead {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.5;
}

/* Foco visible */
:focus-visible {
  outline: 2.5px solid var(--brasa-texto);
  outline-offset: 3px;
}
.sobre-oscuro :focus-visible { outline-color: var(--brasa); }

/* 3. UTILIDADES ------------------------------------------------------------ */
.contenedor {
  width: 100%;
  max-width: var(--ancho);
  margin-inline: auto;
  padding-inline: var(--canal);
}

.saltar {
  position: absolute;
  left: var(--s-4);
  top: -80px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--tinta);
  color: var(--blanco);
  border-radius: var(--r-accion);
  font-weight: 600;
  text-decoration: none;
}
.saltar:focus { top: var(--s-3); }

.sobre-oscuro { color: var(--sobre-oscuro); }

.seccion {
  padding-block: var(--seccion);
  background: var(--papel);
}
.seccion--blanca { background: var(--blanco); }

.encabezado { margin-bottom: var(--s-7); }
.encabezado .lead { margin-top: var(--s-4); max-width: 56ch; color: var(--tinta-2); }

/* 4. BOTONES, ENLACES, ICONOS --------------------------------------------- */
.ico {
  flex: none;
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico--wa { width: 20px; height: 20px; fill: currentColor; stroke: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 28px;
  border: 1.5px solid transparent;
  border-radius: var(--r-accion);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 620;
  font-stretch: 104%;
  line-height: 1;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform .2s var(--salida), background-color .2s ease, color .2s ease, border-color .2s ease;
}
@media (min-width: 760px) {
  .btn { min-height: 52px; }
}
.btn--compacto { min-height: 44px; padding: 0 14px; font-size: .9rem; white-space: nowrap; }
@media (min-width: 760px) {
  .btn--compacto { min-height: 44px; padding: 0 22px; font-size: .95rem; }
}
.btn--completo { width: 100%; }

.btn--principal { background: var(--brasa); border-color: var(--brasa); color: var(--tinta); }
.btn--principal:hover { background: var(--brasa-hover); border-color: var(--brasa-hover); transform: translateY(-1px); }
.btn--principal:active { transform: translateY(0) scale(.98); }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

.btn--secundario { background: transparent; border-color: var(--tinta); color: var(--tinta); }
.btn--secundario:hover { background: var(--tinta); color: var(--blanco); }
.btn--secundario:active { transform: scale(.98); }
.sobre-oscuro .btn--secundario { border-color: var(--sobre-oscuro); color: var(--sobre-oscuro); }
.sobre-oscuro .btn--secundario:hover { background: var(--blanco); color: var(--tinta); border-color: var(--blanco); }

.enlace {
  color: var(--brasa-texto);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  font-weight: 560;
  transition: text-decoration-thickness .15s ease, color .2s ease;
}
.enlace:hover { text-decoration-thickness: 3px; }
.sobre-oscuro .enlace { color: var(--brasa); }

.tel { font-variant-numeric: tabular-nums; }

/* 5. HEADER ---------------------------------------------------------------- */
.cabecera {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(244 244 246 / .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.cabecera.con-scroll {
  border-bottom-color: var(--linea);
  box-shadow: 0 6px 24px -12px rgba(29, 31, 42, .25);
}
.cabecera__in {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: var(--alto-cabecera);
}
.cabecera__logo { display: flex; flex-shrink: 0; align-items: center; margin-right: auto; min-height: 44px; }
.cabecera__logo img { height: 36px; width: auto; max-width: none; flex-shrink: 0; }
@media (min-width: 1024px) {
  .cabecera__logo img { height: 40px; }
}
.cabecera__acciones { display: flex; align-items: center; gap: var(--s-2); }

.hamb {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--linea);
  border-radius: 50%;
  background: transparent;
  color: var(--tinta);
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.hamb:hover { background: var(--blanco); border-color: var(--tinta); }
.hamb .ico { grid-area: 1 / 1; width: 22px; height: 22px; }
.hamb .ico--cerrar { display: none; }
.cabecera.abierto .hamb .ico--menu { display: none; }
.cabecera.abierto .hamb .ico--cerrar { display: block; }

/* Menú móvil: panel a pantalla completa bajo el header */
.menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: calc(100vh - var(--alto-cabecera));
  height: calc(100dvh - var(--alto-cabecera));
  padding: var(--s-6) var(--canal) var(--s-7);
  background: var(--papel);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .25s var(--salida), visibility 0s linear .25s;
}
.cabecera.abierto .menu {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}
.cabecera.abierto { background: var(--papel); }

.menu__lista a {
  display: flex;
  align-items: center;
  min-height: 56px;
  font-size: 1.5rem;
  font-weight: 640;
  font-stretch: 108%;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.menu__contacto { margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--linea); }
.menu__contacto a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  font-weight: 560;
  text-decoration: none;
}

/* Sin JS: el menú se muestra como lista bajo el header */
html:not(.js) .cabecera__in { flex-wrap: wrap; padding-block: var(--s-2); }
html:not(.js) .menu {
  position: static;
  order: 5;
  flex-basis: 100%;
  height: auto;
  padding: 0 0 var(--s-3);
  visibility: visible;
  opacity: 1;
  transform: none;
  overflow: visible;
}
html:not(.js) .menu__lista { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); }
html:not(.js) .menu__lista a { font-size: 1rem; min-height: 44px; font-weight: 520; font-stretch: 100%; }
html:not(.js) .menu__contacto { display: none; }
html:not(.js) .hamb { display: none; }

@media (min-width: 1024px) {
  .cabecera__logo { margin-right: 0; }
  .hamb { display: none; }
  .menu,
  html:not(.js) .menu {
    position: static;
    order: 0;
    flex: 1;
    flex-basis: auto;
    height: auto;
    padding: 0;
    background: none;
    overflow: visible;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }
  .menu__lista,
  html:not(.js) .menu__lista { display: flex; justify-content: flex-end; flex-wrap: nowrap; gap: var(--s-6); margin-right: var(--s-6); }
  .menu__lista a,
  html:not(.js) .menu__lista a {
    position: relative;
    min-height: 44px;
    font-size: 1rem;
    font-weight: 520;
    font-stretch: 100%;
    letter-spacing: 0;
    white-space: nowrap;
  }
  .menu__lista a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    height: 2px;
    background: var(--degradado-marca);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s var(--salida);
  }
  .menu__lista a:hover::after,
  .menu__lista a:focus-visible::after,
  .menu__lista a[aria-current="true"]::after { transform: scaleX(1); }
  .menu__contacto { display: none; }
  html:not(.js) .cabecera__in { flex-wrap: nowrap; padding-block: 0; }
}

@media (min-width: 1024px) and (max-width: 1179px) {
  .menu__lista,
  html:not(.js) .menu__lista { gap: 18px; margin-right: 18px; }
  .menu__lista a,
  html:not(.js) .menu__lista a { font-size: .95rem; }
}

/* 6. HERO (firma cuadrado + círculo) -------------------------------------- */
.hero {
  background: var(--papel);
  padding-top: clamp(2rem, 5vw, 4.5rem);
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
}
.hero__rejilla {
  display: grid;
  gap: var(--s-7);
}
.hero__lead { margin-top: var(--s-5); max-width: 46ch; color: var(--tinta-2); }
.h1-linea { display: block; }
.hero__botones {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: var(--s-6);
}

.firma { position: relative; margin-top: var(--s-4); }
.firma__bloque img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 70%;
  border-radius: var(--r-bloque);
}
.firma__circulo {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(120px, 34%, 210px);
  aspect-ratio: 1;
  border: 6px solid var(--papel);
  border-radius: 50%;
  overflow: hidden;
  background: var(--papel);
  transform: translate(10%, -30%);
}
.firma__circulo img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 560px) {
  .hero__botones { flex-direction: row; flex-wrap: wrap; }
}

@media (min-width: 1024px) {
  .hero__rejilla {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    align-items: center;
  }
  .hero__texto { grid-column: 1 / span 7; }
  .firma { grid-column: 8 / span 5; margin-top: 0; padding-top: 36px; }
  .firma__bloque img {
    aspect-ratio: 4 / 5;
    max-height: min(68vh, 620px);
    object-position: center;
  }
  .firma__circulo {
    top: 36px;
    border-width: 8px;
    transform: translate(26%, -22%);
  }
}

/* 7. BANDA "NO NECESITAS SABER" y SELECTOR --------------------------------- */
.banda {
  background: var(--pizarra-profunda);
  padding-block: var(--seccion);
}
.banda__rejilla { display: grid; gap: var(--s-7); }
.banda__texto p { margin-top: var(--s-5); color: var(--sobre-oscuro-2); }
@media (min-width: 1024px) {
  .banda__rejilla {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    align-items: start;
  }
  .banda__texto { grid-column: 1 / span 6; }
  .selector { grid-column: 8 / span 5; }
}

.selector h3 { margin-bottom: var(--s-4); }
.segmentado {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 2px;
  border: 1px solid var(--linea-oscura);
  border-radius: var(--r-accion);
}
.segmentado label { position: relative; display: block; }
.segmentado input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.segmentado span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: var(--r-accion);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  color: var(--sobre-oscuro-2);
  transition: background-color .2s ease, color .2s ease;
}
.segmentado input:checked + span { background: var(--sobre-oscuro); color: var(--tinta); }
.segmentado input:not(:checked):hover + span { color: var(--blanco); }
.segmentado input:focus-visible + span { outline: 2.5px solid var(--brasa); outline-offset: 3px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s-5); }
.chips[hidden] { display: none; }
.chip {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--linea-oscura);
  border-radius: var(--r-accion);
  background: transparent;
  color: var(--sobre-oscuro);
  font-family: inherit;
  font-size: .95rem;
  font-weight: 520;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.chip:hover, .chip:focus-visible { border-color: var(--brasa); color: var(--blanco); }
.chip[aria-pressed="true"] { background: var(--brasa); border-color: var(--brasa); color: var(--tinta); }
.selector__ayuda { margin-top: var(--s-5); font-size: .9rem; color: var(--sobre-oscuro-2); }

/* Sin JS el selector no tiene función: se oculta */
html:not(.js) .selector { display: none; }

/* 8. SERVICIOS (bento 2x2 asimétrico) -------------------------------------- */
.bento { display: grid; gap: 24px; }
.celda {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: var(--r-bloque);
}
/* La foto absorbe la altura sobrante de la fila; el texto mide lo que mide */
.celda__foto { display: flex; flex: 1 1 auto; }
.celda__foto img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.celda--b .celda__foto img, .celda--c .celda__foto img { aspect-ratio: 16 / 10; }
.celda--b .celda__foto img { object-position: center 80%; }
.celda--d .celda__foto img { object-position: center 60%; }
.celda__texto { flex: none; padding: clamp(1.5rem, 2.5vw, 2.25rem); }
.celda .frase { margin-top: var(--s-2); font-weight: 500; color: var(--tinta-2); }
.servicios { margin-top: var(--s-5); display: grid; gap: 18px; }
.servicios strong { display: block; font-weight: 640; line-height: 1.3; }
.servicios span { display: block; margin-top: 2px; font-size: .975rem; color: var(--tinta-2); line-height: 1.5; max-width: 52ch; }
.celda .enlace { display: inline-block; margin-top: var(--s-5); }

.celda--d { background: var(--pizarra-profunda); border-color: var(--pizarra-profunda); }
.celda--d .frase, .celda--d .servicios span { color: var(--sobre-oscuro-2); }
.celda--d h3, .celda--d .servicios strong { color: var(--sobre-oscuro); }

@media (min-width: 760px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .celda--a, .celda--d { grid-column: span 7; }
  .celda--b, .celda--c { grid-column: span 5; }
  .celda--d .celda__foto img { aspect-ratio: 2 / 1; }
}
/* Celdas anchas: verbo y frase a la izquierda, servicios a la derecha */
@media (min-width: 1180px) {
  .celda--a .celda__texto, .celda--d .celda__texto {
    display: grid;
    grid-template-columns: 0.8fr 1fr;
    grid-template-rows: auto 1fr;
    column-gap: var(--s-6);
    align-items: start;
  }
  .celda--a .celda__texto > h3, .celda--d .celda__texto > h3 { grid-column: 1; grid-row: 1; }
  .celda--a .celda__texto > .frase, .celda--d .celda__texto > .frase { grid-column: 1; grid-row: 2; align-self: start; }
  .celda--a .servicios, .celda--d .servicios { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
  .celda--d .celda__texto > .enlace { grid-column: 2; grid-row: 3; justify-self: start; }
}

/* 9. POR QUÉ ADINCO -------------------------------------------------------- */
.porque { display: grid; gap: var(--s-7); }
.porque__foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-bloque); }
.porque .encabezado { margin-bottom: var(--s-6); }
.preguntas li { padding: 22px 0; border-top: 1px solid var(--linea); }
.preguntas h3 { font-size: 1.35rem; }
.preguntas p { margin-top: var(--s-2); color: var(--tinta-2); }
.compromisos {
  display: grid;
  gap: var(--s-6);
  padding-top: var(--s-6);
  border-top: 1px solid var(--tinta);
}
.compromisos p { margin-top: var(--s-2); color: var(--tinta-2); }

@media (min-width: 760px) {
  .compromisos { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
@media (min-width: 1024px) {
  .porque {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: var(--s-8);
  }
  .porque__foto { grid-column: 1 / span 5; align-self: start; position: sticky; top: 104px; }
  .porque__foto img { aspect-ratio: 4 / 5; }
  .porque__texto { grid-column: 7 / span 6; }
  .compromisos { grid-column: 1 / -1; }
}

/* 10. CÓMO TRABAJAMOS (riel de 7 pasos) ----------------------------------- */
.riel { position: relative; display: grid; gap: var(--s-6); padding-left: 40px; }
.riel::before, .riel::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--linea);
}
.riel::after {
  background: var(--degradado-marca);
  transform-origin: top;
}
.riel li { position: relative; }
.riel li::before {
  content: "";
  position: absolute;
  left: -40px;
  top: 5px;
  width: 14px;
  height: 14px;
  box-sizing: border-box;
  border: 2px solid var(--pizarra);
  border-radius: 50%;
  background: var(--papel);
  z-index: 1;
  transition: background-color .3s ease, border-color .3s ease;
}
.riel p { margin-top: var(--s-1); font-size: .95rem; color: var(--tinta-2); line-height: 1.5; }

@media (min-width: 1024px) {
  .riel {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0 20px;
    padding: 44px 0 0;
  }
  .riel::before, .riel::after {
    left: 0;
    right: 0;
    top: 6px;
    bottom: auto;
    width: auto;
    height: 2px;
  }
  .riel::after { transform-origin: left; }
  .riel li::before { left: 0; top: -44px; }
}

/* Estado inicial solo con JS; el contenido es visible sin él */
html.js .riel::after { transform: scaleY(0); }
html.js .riel li::before { transition-delay: calc(var(--i) * 0.2s); }
@media (min-width: 1024px) {
  html.js .riel::after { transform: scaleX(0); }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .riel { view-timeline-name: --riel; view-timeline-axis: block; }
    html.js .riel::after {
      animation: riel-linea-y linear both;
      animation-timeline: --riel;
      animation-range: cover 8% cover 58%;
      transition: none;
    }
    html.js .riel li::before {
      transition: none;
      animation: riel-punto linear both;
      animation-timeline: --riel;
      animation-range: cover calc(8% + var(--i) * 7%) cover calc(10% + var(--i) * 7%);
    }
  }
}
@media (min-width: 1024px) {
  @supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
      html.js .riel::after {
        animation-name: riel-linea-x;
        animation-range: cover 6% cover 40%;
      }
      html.js .riel li::before {
        animation-range: cover calc(6% + var(--i) * 4.9%) cover calc(7.5% + var(--i) * 4.9%);
      }
    }
  }
}

/* Alternativa sin animation-timeline: IntersectionObserver agrega .es-visible */
@supports not (animation-timeline: view()) {
  html.js .riel::after { transition: transform 1.6s var(--salida); }
  html.js .riel.es-visible::after { transform: scaleY(1); }
  html.js .riel.es-visible li::before { background: var(--brasa); border-color: var(--brasa); }
  html.js .riel li::before { transition: background-color .3s ease, border-color .3s ease; transition-delay: calc(var(--i) * 0.2s); }
}
@media (min-width: 1024px) {
  @supports not (animation-timeline: view()) {
    html.js .riel.es-visible::after { transform: scaleX(1); }
  }
}

@keyframes riel-linea-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes riel-linea-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes riel-punto { to { background: var(--brasa); border-color: var(--brasa); } }

/* 11. PARA QUIÉN (tabla de 3 columnas) ------------------------------------ */
.tabla .fila {
  display: grid;
  gap: var(--s-4);
  padding: 32px 0;
  border-top: 1px solid var(--linea);
}
.tabla .fila:first-child { border-top-color: var(--tinta); }
.fila__etiqueta { margin-bottom: var(--s-1); font-size: .9rem; font-weight: 640; color: var(--brasa-texto); }
.fila__caso p:last-child { font-size: .975rem; color: var(--tinta-2); line-height: 1.55; }
.nota { margin-top: var(--s-6); font-size: .9rem; color: var(--tinta-2); }

@media (min-width: 1024px) {
  .tabla .fila {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
  }
  .fila .verbo { grid-column: 1 / span 3; }
  .fila__hacemos { grid-column: 4 / span 4; }
  .fila__caso { grid-column: 9 / span 4; }
}

/* 12. HACIA DÓNDE VAMOS ---------------------------------------------------- */
.futuro { display: grid; gap: var(--s-7); }
.futuro__texto p { margin-top: var(--s-5); }
.futuro__foto img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-bloque); }
.checks { display: grid; gap: var(--s-3) var(--s-5); margin-top: var(--s-6); }
.checks li { display: flex; align-items: center; gap: 10px; font-weight: 560; }
.checks .ico { color: var(--brasa-texto); }

@media (min-width: 560px) {
  .checks { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .futuro {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    align-items: center;
  }
  .futuro__texto { grid-column: 1 / span 6; }
  .futuro__foto { grid-column: 7 / span 6; }
}

/* 13. PREGUNTAS FRECUENTES ------------------------------------------------- */
.faq { display: grid; gap: var(--s-6); }
.faq__titulo p { margin-top: var(--s-4); color: var(--tinta-2); }
.acordeon details { border-top: 1px solid var(--linea); }
.acordeon summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 44px;
  padding: 22px 0;
  list-style: none;
  cursor: pointer;
}
.acordeon summary::-webkit-details-marker { display: none; }
.acordeon summary h3 { font-size: 1.15rem; }
.acordeon summary .ico { width: 24px; height: 24px; transition: transform .25s var(--salida); }
.acordeon details[open] summary .ico { transform: rotate(45deg); }
.acordeon summary:hover h3 { color: var(--brasa-texto); }
.acordeon details > p { padding: 0 0 24px; color: var(--tinta-2); max-width: 60ch; }

@media (min-width: 1024px) {
  .faq {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    align-items: start;
  }
  .faq__titulo { grid-column: 1 / span 4; position: sticky; top: 104px; }
  .acordeon { grid-column: 6 / span 7; }
}

/* 14. BANDA DE LA CIUDAD --------------------------------------------------- */
.ciudad { background: var(--blanco); padding-bottom: var(--seccion); }
.ciudad img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--r-bloque);
}
.ciudad figcaption { margin-top: var(--s-3); font-size: .9rem; color: var(--tinta-2); }
@media (min-width: 760px) {
  .ciudad img { aspect-ratio: 21 / 9; }
}

/* 15. CONTACTO y FORMULARIO (firma 2) -------------------------------------- */
.contacto {
  overflow-x: clip;
  background: var(--papel);
  padding-block: calc(var(--seccion) + 3rem) var(--seccion);
}
.panel-contacto {
  position: relative;
  padding: clamp(1.75rem, 5vw, 4.5rem);
  background: var(--pizarra-profunda);
  border-radius: var(--r-bloque);
}
.panel-contacto__isotipo {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(110px, 16vw, 200px);
  height: auto;
  transform: translate(10%, -45%);
}
.panel-contacto__rejilla { display: grid; gap: var(--s-7); }
.panel-contacto__texto { padding-top: var(--s-5); }
.panel-contacto__texto > p { margin-top: var(--s-5); color: var(--sobre-oscuro-2); }
.directo { margin-top: var(--s-6); display: grid; gap: 4px; }
.directo a, .directo span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--sobre-oscuro);
  text-decoration: none;
}
.directo a:hover { text-decoration: underline; text-underline-offset: 4px; }

.tarjeta-form {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--blanco);
  color: var(--tinta);
  border-radius: var(--r-bloque);
  align-self: start;
}
/* Superficie blanca dentro del bloque oscuro: colores de fondo claro */
.tarjeta-form .enlace { color: var(--brasa-texto); }
.tarjeta-form :focus-visible { outline-color: var(--brasa-texto); }
.tarjeta-form .btn--secundario { border-color: var(--tinta); color: var(--tinta); }
.tarjeta-form .btn--secundario:hover { background: var(--tinta); border-color: var(--tinta); color: var(--blanco); }
.campo { margin-bottom: var(--s-5); }
.campo label { display: block; margin-bottom: 6px; font-size: .9rem; font-weight: 600; }
.campo input[type="text"],
.campo input[type="tel"],
.campo input[type="email"],
.campo select,
.campo textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  background: var(--blanco);
  color: var(--tinta);
  border: 1px solid var(--linea);
  border-radius: var(--r-bloque);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color .2s ease;
}
.campo input:hover, .campo select:hover, .campo textarea:hover { border-color: var(--pizarra); }
.campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--tinta); }
.campo select {
  -webkit-appearance: none;
  appearance: none;
  padding: 0 44px 0 16px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231D1F2A' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 20px 20px;
}
.campo textarea { min-height: 140px; padding: 14px 16px; resize: vertical; }
.campo textarea::placeholder { color: var(--tinta-2); opacity: .85; }
.campo__ayuda { margin-top: 4px; font-size: .85rem; color: var(--tinta-2); }
.campo [aria-invalid="true"] { border-color: var(--error); }
.error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 6px;
  font-size: .9rem;
  font-weight: 560;
  color: var(--error);
}
.error[hidden] { display: none; }
.error .ico { margin-top: 2px; }

.casilla { display: flex; align-items: flex-start; gap: 12px; margin: 0; font-size: .95rem; font-weight: 400; cursor: pointer; }
.campo .casilla { display: flex; font-weight: 400; font-size: .95rem; }
.casilla input { flex: none; width: 24px; height: 24px; margin: 10px 0 0; cursor: pointer; }
.casilla span { padding: 8px 0; line-height: 1.45; }

.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-estado { margin-top: var(--s-3); font-size: .95rem; color: var(--error); font-weight: 560; }
.form-estado:empty { display: none; }

.confirmacion { padding: var(--s-4) 0; }
.confirmacion[hidden] { display: none; }
.confirmacion .ico--ok {
  width: 48px;
  height: 48px;
  padding: 12px;
  margin-bottom: var(--s-4);
  border-radius: 50%;
  background: var(--brasa);
  color: var(--tinta);
}
.confirmacion h3 { font-size: 1.5rem; font-weight: 660; font-stretch: 108%; }
.confirmacion p { margin-top: var(--s-3); color: var(--tinta-2); }
.confirmacion .btn { margin-top: var(--s-5); }
.confirmacion:focus { outline: none; }

@media (min-width: 760px) {
  .panel-contacto__isotipo { transform: translate(22%, -28%); }
}
@media (min-width: 760px) and (max-width: 1023px) {
  .panel-contacto__texto h2 { padding-right: 16vw; }
}
@media (min-width: 760px) and (max-width: 1023px), (min-width: 1200px) {
  .fila-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-4); }
}
@media (min-width: 1024px) {
  .panel-contacto__rejilla {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
  }
  .panel-contacto__texto { grid-column: 1 / span 5; padding-top: 0; }
  .tarjeta-form { grid-column: 7 / span 6; margin-top: 5rem; }
}

/* 16. FOOTER --------------------------------------------------------------- */
.pie {
  background: var(--pizarra-profunda);
  padding: 64px 0 28px;
}
.pie__rejilla { display: grid; gap: var(--s-7); }
.pie__marca img { height: 44px; width: auto; }
.pie__marca p { margin-top: var(--s-4); max-width: 36ch; color: var(--sobre-oscuro-2); }
.pie__col h2 {
  margin-bottom: var(--s-3);
  font-size: .95rem;
  font-weight: 640;
  font-stretch: 100%;
  letter-spacing: 0;
  color: var(--sobre-oscuro);
}
.pie__col a, .pie__col span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--sobre-oscuro-2);
  text-decoration: none;
  transition: color .2s ease;
}
.pie__col a:hover { color: var(--blanco); }
.pie__barra {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--linea-oscura);
  font-size: .9rem;
  color: var(--sobre-oscuro-2);
}
.pie__barra p { max-width: none; }
.pie__barra a { color: var(--sobre-oscuro-2); text-underline-offset: 4px; transition: color .2s ease; }
.pie__barra a:hover { color: var(--blanco); }
.pie__barra .pie__kilos { color: var(--sobre-oscuro); font-weight: 640; text-decoration: underline; }
.pie__barra .pie__kilos:hover { color: var(--brasa); }

@media (min-width: 560px) and (max-width: 1023px) {
  .pie__rejilla { grid-template-columns: 1fr 1fr; }
  .pie__marca { grid-column: 1 / -1; }
}
@media (min-width: 760px) {
  .pie__barra { flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (min-width: 1024px) {
  .pie__rejilla {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
  }
  .pie__marca { grid-column: 1 / span 5; }
  .pie__sitio { grid-column: 7 / span 3; }
  .pie__contacto { grid-column: 10 / span 3; }
}

/* 17. BOTÓN FLOTANTE DE WHATSAPP (solo móvil) ------------------------------ */
.flotante {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brasa);
  color: var(--tinta);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .3s var(--salida), visibility 0s linear .3s, background-color .2s ease;
}
.flotante .ico--wa { width: 26px; height: 26px; }
.flotante.visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.flotante:hover { background: var(--brasa-hover); }
@media (min-width: 760px) {
  .flotante { display: none; }
}

/* 18. PROSA (páginas internas: texto legal largo) -------------------------- */
.prosa { padding-block: var(--s-8) var(--seccion); }
.prosa h1 { margin-bottom: var(--s-6); }
.prosa h2 { margin: var(--s-8) 0 var(--s-4); font-size: 1.5rem; }
.prosa h3 { margin: var(--s-6) 0 var(--s-3); font-size: 1.15rem; }
.prosa p, .prosa ul, .prosa ol { max-width: 68ch; margin-bottom: var(--s-4); }
.prosa ul { list-style: disc; padding-left: 1.25rem; }
.prosa ol { list-style: decimal; padding-left: 1.25rem; }
.prosa li { margin-bottom: var(--s-2); }
.prosa a { color: var(--brasa-texto); text-underline-offset: 4px; }

/* 19. MOVIMIENTO: entrada del hero ---------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .h1-linea {
    animation: hero-sube .8s var(--salida) both;
  }
  html.js .h1-linea:nth-child(2) { animation-delay: 70ms; }
  html.js .hero__lead { animation: hero-sube .8s var(--salida) 160ms both; }
  html.js .hero__botones { animation: hero-sube .8s var(--salida) 240ms both; }
  html.js .firma__bloque img { animation: hero-revela .9s var(--salida) both; }
  html.js .firma__circulo { animation: hero-circulo .6s var(--salida) 450ms both; }
}
@keyframes hero-sube {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes hero-revela {
  from { clip-path: inset(100% 0 0 0); }
  to { clip-path: inset(0); }
}
@keyframes hero-circulo {
  from { opacity: 0; scale: .7; }
  to { opacity: 1; scale: 1; }
}

/* 20. MOVIMIENTO REDUCIDO: todo estático y visible ------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  html.js .riel::after { transform: none !important; }
  html.js .riel li::before { background: var(--brasa) !important; border-color: var(--brasa) !important; }
}
