/* ============================================================
   Adoria Sostemove — maqueta franjas 1-3 · v2
   Seed adaptado: Switzer, hero full-bleed, cortina hacia F2
   ============================================================ */

/* Tipografías servidas desde la propia web (latin + latin-ext) */
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/plex-mono-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/plex-mono-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/plex-mono-500-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/plex-mono-500-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Montserrat';font-style:italic;font-weight:400;font-display:swap;src:url(/fonts/montserrat-italic-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Montserrat';font-style:italic;font-weight:400;font-display:swap;src:url(/fonts/montserrat-italic-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:400 700;font-display:swap;src:url(/fonts/montserrat-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:400 700;font-display:swap;src:url(/fonts/montserrat-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:300 700;font-display:swap;src:url(/fonts/space-grotesk-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:300 700;font-display:swap;src:url(/fonts/space-grotesk-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

:root {
  /* Color — todo neutro deriva de forest, cero gris */
  --paper: #EFEEE1;
  --warm-white: #FFFDF5;
  --forest: #23362E;
  --ink: #13231D;
  --petrol: #2A4952;
  --sage: #BACC80;
  --lime: #CDE14F;
  --muted: rgba(35, 54, 46, 0.76);
  --hairline: rgba(35, 54, 46, 0.16);
  --muted-claro: rgba(239, 238, 225, 0.72);
  --hairline-claro: rgba(239, 238, 225, 0.22);

  /* Tipos — los reales de la marca: Space Grotesk display, Montserrat prosa */
  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --prosa: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;

  /* Geometría */
  --cut: 14deg;
  --r-card: 20px;
  --ancho: 1200px;
  --pad-x: clamp(20px, 4.5vw, 56px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--forest);
  font-family: var(--prosa);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--lime); color: var(--ink); }

/* Anti-parpadeo: los elementos que se animan nacen ocultos (clase .anim
   puesta en <head> antes del primer pintado). Así nunca se ven antes de
   su reveal. Sin JS / reduced-motion → sin .anim → todo visible. */
/* Se anima con la propiedad `translate` (no `transform`) para no pisar los efectos
   de hover de cada componente. Si app.js no llega, el <head> quita .anim a los 2,5 s. */
html.anim [data-reveal] {
  opacity: 0;
  translate: 0 16px;
  transition: opacity 0.6s ease, translate 0.6s ease;
}

html.anim [data-reveal].revelado {
  opacity: 1;
  translate: none;
}

/* Entrada del hero: solo desplazamiento, nunca opacidad 0 (no retrasa el primer pintado). */
@keyframes intro-sube { from { translate: 0 14px; } }
html.anim [data-intro] { animation: intro-sube 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
html.anim .hero-texto > [data-intro]:nth-child(2) { animation-delay: 0.06s; }
html.anim .hero-texto > [data-intro]:nth-child(3) { animation-delay: 0.12s; }
html.anim .hero-texto > [data-intro]:nth-child(4) { animation-delay: 0.18s; }
html.anim .hero-trayecto[data-intro] { animation-delay: 0.22s; }

img { display: block; max-width: 100%; }
/* <picture> solo aporta formatos (AVIF/WebP): no debe alterar la maquetación de su <img> */
picture { display: contents; }

.contenedor {
  max-width: var(--ancho);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* ---------- Tipografía ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(40px, 4.7vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 1.07;
  letter-spacing: -0.026em;
}

h3 {
  font-weight: 600;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.012em;
}

p { margin: 0; text-wrap: pretty; }

.muted { color: var(--muted); max-width: 60ch; }

.legal {
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
  line-height: 1.5;
  max-width: 70ch;
  letter-spacing: 0;
}

.legal-oscuro { color: var(--muted-claro); }

.mono-label {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* ---------- El tramo (firma) ---------- */

.tramo {
  display: inline-block;
  width: 52px;
  height: 8px;
  background: var(--lime);
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
  flex: none;
}

.tramo-s { width: 22px; height: 6px; clip-path: polygon(0 0, 100% 0, calc(100% - 5px) 100%, 0 100%); }
.tramo-marca { width: 13px; height: 9px; clip-path: polygon(0 0, 100% 0, calc(100% - 4px) 100%, 0 100%); margin-left: 7px; }

/* Marcador lime tipo "selección" (resaltado de texto) */
.hl {
  /* Banda lima ceñida a la altura del texto (no a la caja em de la fuente):
     altura fija en em centrada en la línea → el resaltado abraza las letras. */
  color: var(--ink);
  background: linear-gradient(var(--lime), var(--lime)) no-repeat center / 100% 0.95em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0 11px;
  border-radius: 3px;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 26px;
}

/* ---------- Botones y enlaces ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-family: var(--prosa);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  text-decoration: none;
  height: 54px;
  padding: 0 32px;
  overflow: hidden;
  transition: transform 0.15s ease;
}

.btn span { position: relative; z-index: 1; }

.btn::after {
  content: "";
  position: absolute;
  inset: -1px -16px;
  transform: translateX(-105%) skewX(calc(var(--cut) * -1));
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn:hover::after { transform: translateX(0) skewX(calc(var(--cut) * -1)); }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--forest); color: var(--warm-white); }
.btn-primary::after { background: var(--ink); }

.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime::after { background: var(--sage); }

.btn-nav { height: 42px; padding: 0 22px; font-size: 14.5px; }

.enlace-ghost {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--forest);
  font-family: var(--prosa);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 4px 2px;
}

.enlace-ghost .flecha { transition: transform 0.2s ease; }

.enlace-ghost::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  height: 1px; width: 100%;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.enlace-ghost:hover::after { transform: scaleX(1); }
.enlace-ghost:hover .flecha { transform: translateX(4px); }

.ghost-claro { color: var(--warm-white); }

:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 3px;
  border-radius: 4px;
}

.hero :focus-visible, .marco :focus-visible, .pie :focus-visible { outline-color: var(--lime); }
.btn:focus-visible { border-radius: 9999px; }

/* ---------- Nav pill flotante ---------- */

.nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: min(1240px, calc(100% - 28px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 62px;
  padding: 0 12px 0 26px;
  border-radius: 9999px;
  background: rgba(255, 253, 245, 0.55);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid rgba(255, 253, 245, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 253, 245, 0.65);
  /* translateX(-50%) centra la pill; translateZ(0) fija la capa de
     composición y evita el parpadeo del blur sobre el vídeo.
     Sin will-change: con backdrop-filter deja el borde sin repintar. */
  transform: translateX(-50%) translateZ(0);
}

.nav-marca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--forest);
  font-family: var(--display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav-marca { flex: none; min-height: 44px; }
.nav-logo { height: 44px; width: auto; display: block; }

.nav-links { display: flex; gap: clamp(12px, 1.5vw, 24px); }

.nav-links a {
  position: relative;
  color: var(--forest);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 2px;
  white-space: nowrap;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 22px; height: 4px;
  background: var(--lime);
  clip-path: polygon(0 0, 100% 0, calc(100% - 3px) 100%, 0 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.nav-links a:hover::after,
.nav-links a[aria-current]::after { transform: scaleX(1); }

.nav-acciones { display: flex; align-items: center; gap: 14px; }

.nav-idioma {
  display: inline-flex;
  align-items: stretch;
  gap: 2px;
  border: 1px solid var(--hairline);
  border-radius: 9999px;
  height: 38px;
  padding: 3px;
}

.nav-idioma a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 0 9px;
  border-radius: 9999px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--forest);
  text-decoration: none;
}

.nav-idioma a[aria-current="true"] { background: var(--forest); color: var(--paper); }
.nav-idioma a:not([aria-current]):hover { background: rgba(35, 54, 46, 0.08); }
.nav-idioma a:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }

/* ---------- Franja 1 — Hero full-bleed ---------- */

.hero { position: relative; z-index: 1; }

/* con motor: el hero "aguanta" arriba (sticky CSS) mientras el statement sube */
html.has-motion .hero { height: 150svh; }

.hero-sticky {
  position: relative;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

html.has-motion .hero-sticky { position: sticky; top: 0; }

.hero-media {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  will-change: transform;
  --dim: 0.14;
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.05) contrast(1.04) saturate(1.03);
}

.hero-video {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
}

.hero-video.activo { opacity: 1; }

/* en móvil el hero se queda con la foto (peso) */
@media (max-width: 899px) {
  .hero-video { display: none; }
}

/* scrim base para legibilidad + oscurecido animable (--dim) */
.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    /* degradado izquierda→derecha: profundidad + color/contraste fuerte (tono forest, +50%) */
    linear-gradient(100deg, rgba(35, 54, 46, 1) 0%, rgba(35, 54, 46, 0.62) 42%, rgba(19, 35, 29, 0.1) 100%),
    /* fundido inferior para apoyar el texto */
    linear-gradient(to top, rgba(19, 35, 29, 0.85) 0%, rgba(19, 35, 29, 0) 46%);
  pointer-events: none;
  z-index: 1;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  opacity: var(--dim);
  pointer-events: none;
  z-index: 1;
}

.hero-capa {
  position: relative;
  z-index: 2;
  width: 100%;
  color: var(--warm-white);
  padding-top: clamp(110px, 14vh, 150px);
  padding-bottom: clamp(36px, 6vh, 64px);
  margin-bottom: auto;
  margin-top: auto;
}

.hero-cols {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: center;
}

.kicker-hero { color: var(--paper); margin-bottom: 30px; }

.hero-capa h1 { margin-bottom: 26px; color: var(--warm-white); }
/* Titular de portada siempre en 3 líneas fijas, en cualquier navegador y ancho: cada línea
   va en su bloque sin partirse y el tamaño de letra se ajusta al hueco de la columna (cqi). */
.hero-texto { container-type: inline-size; }
.hero-capa h1 .h1-linea { display: block; white-space: nowrap; }
@supports (font-size: 1cqi) {
  .hero-capa h1 { font-size: min(68px, 9.4cqi); }
}

.hero-lead {
  font-size: 17.5px;
  line-height: 1.6;
  max-width: 54ch;
  color: rgba(255, 253, 245, 0.94);
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 34px;
}

/* ---------- El trayecto vertical (columna derecha) ---------- */

.hero-trayecto {
  color: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 470px;
  justify-self: end;
  width: 100%;
}

.trayecto-extremo {
  color: rgba(239, 238, 225, 0.8);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.trayecto-cuerpo {
  position: relative;
  padding-left: 52px;
}

.trayecto-rail {
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 20px;
  color: rgba(255, 253, 245, 0.85);
}

.trayecto-rail svg { width: 20px; height: 100%; display: block; }

.trayecto-paradas {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4.6vh, 52px);
}

.parada {
  position: relative;
  font-family: var(--display);
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 400;
  line-height: 1.34;
  letter-spacing: -0.01em;
  color: rgba(239, 238, 225, 0.78);
  transition: color 0.3s ease;
}

.parada-txt {
  display: inline-block;
  background: rgba(19, 35, 29, 0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border-radius: 9px;
  padding: 8px 13px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.parada-dot {
  position: absolute;
  top: 8px;
  left: -52px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid rgba(255, 253, 245, 0.85);
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.parada.lit { color: var(--warm-white); }

.parada.lit .parada-dot {
  background: var(--lime);
  border-color: var(--lime);
  transform: scale(1.18);
}

/* ---------- Statement — el qué hacemos, cortina sobre el hero ---------- */

.statement {
  position: relative;
  z-index: 3;
  background: var(--paper);
  clip-path: polygon(0 0, 100% 3vw, 100% 100%, 0 100%);
}

/* la cortina sube sobre el hero sticky — recorrido corto */
html.has-motion .statement { margin-top: -50svh; }

.statement-pin {
  min-height: 64svh;
  display: grid;
  align-items: center;
  padding: clamp(56px, 8vh, 96px) 0;
}

.statement-inner {
  display: grid;
  gap: 26px;
  justify-items: start;
  width: 100%;
}

.statement .tramo { width: 64px; height: 9px; }

.statement-texto {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(19px, 1.8vw, 25px);
  line-height: 1.38;
  letter-spacing: -0.016em;
  color: var(--forest);
  max-width: none;
  text-wrap: pretty;
}

.statement-texto .palabra { color: inherit; }

/* ---------- Franja 2 — Marco aplicable ---------- */

.marco {
  position: relative;
  z-index: 3;
  background: var(--forest);
  color: var(--paper);
  clip-path: polygon(0 0, 100% 3vw, 100% 100%, 0 100%);
  padding: calc(clamp(76px, 10vw, 132px) + 3vw) 0 clamp(76px, 10vw, 132px);
}

.marco-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 5vw, 88px);
  align-items: start;
}

.kicker-oscuro { color: var(--paper); }

.marco h2 { max-width: 14ch; }

.hl-lime { color: var(--lime); }

.marco-cuerpo { display: grid; gap: 22px; max-width: 58ch; }

.marco-cuerpo > p { color: var(--muted-claro); font-size: 16.5px; }
.marco-cuerpo > p:first-of-type { color: var(--paper); }

.marco .legal {
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline-claro);
}

/* Cotas: los umbrales como medidas de plano */

.cotas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin-bottom: 16px;
}

.cota-figura {
  font-weight: 300;
  font-size: clamp(48px, 5vw, 70px);
  line-height: 1;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  color: var(--warm-white);
}

.cota-linea {
  display: flex;
  align-items: center;
  margin: 14px 0 10px;
}

.cota-linea .linea {
  flex: 1;
  height: 1px;
  background: var(--sage);
  transform-origin: left;
}

.cota-linea .tick {
  width: 1px;
  height: 9px;
  background: var(--sage);
  flex: none;
}

.cota-label {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--sage);
}

/* ---------- Franja 3 — ¿Afecta a tu empresa? ---------- */

.afecta {
  position: relative;
  z-index: 3;
  background: var(--paper);
  padding: clamp(72px, 10vw, 128px) 0 clamp(64px, 8vw, 104px);
}

.afecta-cabecera h2 { max-width: 22ch; }

.afecta-intro { margin-top: 22px; }

.factores {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  overflow: hidden;
}

.factor {
  padding: clamp(26px, 3.4vw, 40px);
  background: transparent;
  transition: background 0.25s ease;
}

.factor:nth-child(odd) { border-right: 1px solid var(--hairline); }
.factor:nth-child(-n+2) { border-bottom: 1px solid var(--hairline); }

.factor:hover { background: var(--warm-white); }

.factor-indice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}
.factor-num {
  font-family: var(--display);
  font-size: clamp(38px, 4.4vw, 50px);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.025em;
  color: rgba(35, 54, 46, 0.3);
  transition: color 0.25s ease;
}
.factor:hover .factor-num { color: rgba(35, 54, 46, 0.5); }

.factor h3 { margin-bottom: 10px; }

.factor p:last-child { font-size: 15px; color: var(--muted); max-width: 44ch; }

.afecta-cierre {
  margin-top: clamp(40px, 5vw, 60px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
}

.afecta-cierre-texto { display: grid; gap: 14px; }
.afecta-cierre-texto p:first-child { max-width: 58ch; }

/* ---------- Franja 4 — Partners (banda petrol) ---------- */

.partners {
  position: relative;
  z-index: 3;
  background: var(--petrol);
  color: var(--paper);
  /* banda inclinada (diagonal pronunciada) */
  clip-path: polygon(0 0, 100% 4.5vw, 100% 100%, 0 calc(100% - 4.5vw));
  padding: calc(clamp(76px, 10vw, 130px) + 4.5vw) 0 calc(clamp(76px, 10vw, 130px) + 4.5vw);
  margin: -2px 0;
}

.partners-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}

.partners-foto {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 36px, 100% 100%, 0 100%);
  aspect-ratio: 4 / 5;
  position: relative;
}

.partners-foto img { width: 100%; height: 100%; object-fit: cover; filter: brightness(1.12) contrast(1.04) saturate(1.03); }

.partners-foto::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--petrol);
  opacity: 0.08;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.partners-cuerpo { display: grid; gap: 24px; max-width: 60ch; justify-items: start; }

.partners h2 { max-width: 18ch; }

.partners-lead { color: var(--paper); }

.partners-modelos {
  list-style: none;
  margin: 4px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.partners-modelos .hl {
  font-family: var(--display);
  /* 400 = mismo peso que las frases display de cuerpo del sitio
     (.statement-texto, .parada): unifica la jerarquía display.
     Antes 500 (semibold), el único punto del sitio con ese peso. */
  font-weight: 400;
  font-size: clamp(15px, 1.5vw, 18px);
  letter-spacing: -0.01em;
  line-height: 1.75;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;  /* el resaltado lime no se parte feo al saltar de línea */
}

.partners .legal { border-top: 1px solid var(--hairline-claro); padding-top: 16px; }

.btn-claro {
  background: transparent;
  color: var(--warm-white);
  border: 1.5px solid rgba(255, 253, 245, 0.5);
}

.btn-claro::after { background: rgba(255, 253, 245, 0.12); }

/* ---------- Franja 5 — Qué incluye ---------- */

.incluye {
  position: relative;
  z-index: 3;
  background: var(--paper);
  padding: clamp(72px, 9vw, 120px) 0;
  overflow: hidden;
}

.incluye-cabecera {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(34px, 4vw, 52px);
}

.incluye h2 { max-width: 16ch; }

.incluye-hint {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.hint-flecha { font-size: 14px; animation: hintMove 1.8s ease-in-out infinite; }

@keyframes hintMove { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }

/* rejilla 3×3 sin scroll. Lleva la clase .contenedor en el HTML para
   alinear sus bordes con el título de la franja (mismo max-width y pad-x).
   align-items: stretch (default del grid) iguala la altura de las cards
   dentro de cada fila. */
.incluye-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.4vw, 20px);
}

.incluye-card {
  background: var(--warm-white);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: clamp(18px, 1.7vw, 26px);
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.incluye-card:hover { border-color: rgba(35, 54, 46, 0.4); transform: translateY(-2px); }

.incluye-cab {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: clamp(14px, 1.4vw, 22px);
}

.incluye-icono {
  width: 52px;
  height: 52px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(35, 54, 46, 0.07);
  color: var(--forest);
}

.incluye-icono svg { width: 26px; height: 26px; }

.incluye-num {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(35, 54, 46, 0.45);
}

.incluye-card h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.incluye-card p {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- Franja 6 — Qué aporta ---------- */

.aporta {
  position: relative;
  z-index: 3;
  background: var(--warm-white);
  padding: clamp(72px, 9vw, 120px) 0;
}

.aporta-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}

.aporta-foto {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 36px), calc(100% - 44px) 100%, 0 100%);
  aspect-ratio: 4 / 5;
  position: relative;
}

.aporta-foto img { width: 100%; height: 100%; object-fit: cover; filter: brightness(1.12) contrast(1.04) saturate(1.03); }

.aporta-foto::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--forest);
  opacity: 0.06;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.aporta-contenido h2 { max-width: 16ch; }

.aporta-puntos {
  list-style: none;
  margin: clamp(30px, 4vw, 44px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(28px, 3vw, 44px);
}

.aporta-puntos li {
  border-top: 1px solid var(--hairline);
  padding: 18px 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
}

/* ---------- Franja 7 — Cómo trabajamos (banda forest) ---------- */

.metodo {
  position: relative;
  z-index: 3;
  background: var(--forest);
  color: var(--paper);
  clip-path: polygon(0 0, 100% 3vw, 100% 100%, 0 100%);
  padding: calc(clamp(76px, 10vw, 132px) + 3vw) 0 clamp(76px, 10vw, 132px);
}

.metodo h2 { max-width: 18ch; }

.metodo-pasos {
  list-style: none;
  margin: clamp(40px, 6vw, 72px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(36px, 5vw, 64px) clamp(32px, 4vw, 56px);
}

.paso {
  border-top: 1px solid rgba(239, 238, 225, 0.25);
  padding-top: 22px;
}

.paso-num {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.07em;
  color: var(--lime);
  margin-bottom: 14px;
}

.paso h3 { color: var(--warm-white); margin-bottom: 10px; font-weight: 600; font-size: 21px; }

.paso p { font-size: 15px; color: var(--muted-claro); max-width: 40ch; }

/* ---------- Franja 8 — Calculadora (la superficie lime) ---------- */

.calculadora {
  position: relative;
  z-index: 3;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(80px, 10vw, 132px) 0;
  overflow: hidden;
}

.calc-bg {
  position: absolute;
  inset: -14% 0;
  z-index: 0;
  pointer-events: none;
}

.calc-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
  filter: brightness(1.1) contrast(1.03);
  will-change: transform;
}

.calc-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(19, 35, 29, 0.6) 0%, rgba(19, 35, 29, 0.24) 60%, rgba(19, 35, 29, 0.4) 100%);
}

.calc-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 4vw, 60px);
  align-items: start;
}

.calculadora h2 { max-width: 16ch; color: var(--warm-white); }
.calc-intro .calc-descripcion { margin-top: 20px; color: var(--muted-claro); max-width: 44ch; }

.calc-disclaimer {
  grid-column: 1 / -1;
  margin-top: 6px;
  color: rgba(239, 238, 225, 0.55);
  border-top: 1px solid var(--hairline-claro);
  padding-top: 16px;
}

[data-estado="resultado"] .calc-intro { display: none; }

/* Formulario */
.calc-form {
  background: var(--warm-white);
  border-radius: 24px;
  padding: clamp(24px, 2.6vw, 36px);
  display: grid;
  gap: 22px;
  align-self: start;
}

.calc-campo { display: grid; gap: 10px; }

.calc-campo > label,
.calc-label {
  font-family: var(--prosa);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--forest);
}

.calc-campo > label small { font-weight: 500; color: var(--muted); }
.calc-campo > label output { float: right; font-family: var(--mono); font-size: 12px; color: var(--muted); }

.calc-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.calc-chip {
  font-family: var(--prosa);
  font-weight: 500;
  font-size: 13.5px;
  color: var(--forest);
  background: var(--paper);
  border: 1px solid rgba(35, 54, 46, 0.18);
  border-radius: 9999px;
  padding: 9px 15px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.calc-chip.sm { font-size: 12.5px; padding: 7px 13px; }
.calc-chip:hover { border-color: rgba(35, 54, 46, 0.4); }
.calc-chip.activo { background: var(--forest); color: var(--warm-white); border-color: var(--forest); }
.calc-chip:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }

.calc-avanzado { margin-top: 2px; }
.calc-avanzado summary {
  list-style: none; cursor: pointer;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: 6px;
}
.calc-avanzado summary::-webkit-details-marker { display: none; }
.calc-avanzado summary::before { content: "+"; font-size: 14px; }
.calc-avanzado[open] summary::before { content: "\2013"; }
.calc-avanzado-cuerpo { display: grid; gap: 14px; padding-top: 14px; }
.calc-mini { display: grid; gap: 8px; }

.calc-slider { display: flex; align-items: center; gap: 16px; }
.calc-slider input[type="range"] {
  -webkit-appearance: none; appearance: none;
  flex: 1; height: 4px; border-radius: 9999px;
  background: rgba(35, 54, 46, 0.18); outline: none;
}
.calc-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--forest); cursor: pointer; border: 3px solid var(--warm-white);
  box-shadow: 0 0 0 1px var(--forest);
}
.calc-slider input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--forest); cursor: pointer; border: 3px solid var(--warm-white);
}
.calc-slider output {
  font-family: var(--mono); font-size: 14px; color: var(--forest);
  min-width: 54px; text-align: right; font-variant-numeric: tabular-nums;
}

.calc-seg { display: inline-flex; gap: 6px; }
.calc-seg .calc-chip { min-width: 42px; text-align: center; justify-content: center; }

.calc-campo input[type="number"] {
  font-family: var(--prosa); font-size: 17px; color: var(--forest);
  background: var(--paper); border: 1px solid rgba(35, 54, 46, 0.25);
  border-radius: 10px; height: 52px; padding: 0 16px; max-width: 200px;
}
.calc-campo input[type="number"]:focus-visible { outline: 2px solid var(--forest); outline-offset: 1px; }

.calc-calcular { border: 0; cursor: pointer; margin-top: 4px; justify-self: start; }
.calc-fuentes-mini {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); margin: 0;
}

[data-estado="resultado"] .calc-calcular,
[data-estado="resultado"] .calc-fuentes-mini { display: none; }

/* Resultado */
.calc-resultado {
  color: var(--paper);
  display: grid;
  gap: 20px;
  align-content: start;
  animation: calcEntra 0.5s ease both;
}

.calc-resultado[hidden] { display: none; }

@keyframes calcEntra { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

.calc-res-et { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage); margin: 0; }

.calc-hero {
  font-family: var(--mono); font-weight: 500;
  font-size: clamp(48px, 7vw, 84px); line-height: 0.95;
  letter-spacing: -0.02em; color: var(--warm-white);
  font-variant-numeric: tabular-nums; margin: 0;
}
.calc-hero small { font-family: var(--display); font-weight: 300; font-size: 0.28em; color: var(--sage); margin-left: 10px; letter-spacing: 0; }
.calc-hero-rango { font-family: var(--mono); font-size: 12px; color: var(--muted-claro); margin: -8px 0 0; }
.calc-hero-persona { font-family: var(--display); font-weight: 300; font-size: clamp(18px, 2vw, 22px); color: var(--paper); margin: 0; }

.calc-bench { display: grid; gap: 8px; margin-top: 4px; }
.calc-bench-barra { position: relative; height: 8px; border-radius: 9999px; background: rgba(239, 238, 225, 0.16); margin-top: 14px; }
.calc-bench-barra i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 9999px; background: var(--lime); transition: width 0.5s ease; }
.calc-bench-media { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--paper); }
.calc-bench-media::after { content: "media total"; position: absolute; top: -16px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 9px; color: var(--muted-claro); white-space: nowrap; }
.calc-bench-txt { font-size: 13px; color: var(--muted-claro); margin: 4px 0 0; }

.calc-comp { display: grid; gap: 8px; }
.calc-comp-tit { font-family: var(--prosa); font-weight: 600; font-size: 13px; color: var(--paper); margin: 0 0 4px; }
.calc-comp-tit small { font-weight: 400; color: var(--muted-claro); }
.calc-comp-fila { display: grid; grid-template-columns: 110px 1fr 44px; align-items: center; gap: 12px; font-size: 12.5px; color: var(--muted-claro); }
.calc-comp-fila.tuyo { color: var(--warm-white); font-weight: 600; }
.calc-comp-modo { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calc-comp-barra { height: 8px; border-radius: 9999px; background: rgba(239, 238, 225, 0.12); overflow: hidden; }
.calc-comp-barra i { display: block; height: 100%; background: rgba(186, 204, 128, 0.6); transition: width 0.4s ease; }
.calc-comp-fila.tuyo .calc-comp-barra i { background: var(--lime); }
.calc-comp-val { font-family: var(--mono); text-align: right; font-variant-numeric: tabular-nums; }

.calc-equiv { font-size: 14.5px; color: var(--paper); margin: 0; }
.calc-equiv strong { color: var(--lime); }
.calc-equiv small { color: var(--muted-claro); }

.calc-sim { display: grid; gap: 10px; padding: 18px 0; border-top: 1px solid var(--hairline-claro); border-bottom: 1px solid var(--hairline-claro); }
.calc-sim-tit { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage); margin: 0; }
.calc-toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14px; color: var(--paper); position: relative; }
.calc-toggle input { position: absolute; opacity: 0; }
.calc-toggle-pista { width: 42px; height: 24px; border-radius: 9999px; background: rgba(239, 238, 225, 0.2); position: relative; flex: none; transition: background 0.2s ease; }
.calc-toggle-pista::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); transition: transform 0.2s cubic-bezier(0.22,1,0.36,1); }
.calc-toggle input:checked + .calc-toggle-pista { background: var(--lime); }
.calc-toggle input:checked + .calc-toggle-pista::after { transform: translateX(18px); background: var(--ink); }
.calc-toggle input:focus-visible + .calc-toggle-pista { outline: 2px solid var(--lime); outline-offset: 2px; }

.calc-res-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 4px; }
.calc-res-cta .btn { border: 0; cursor: pointer; }

/* ---------- Franja 9 — Quiénes somos ---------- */

.somos {
  position: relative;
  z-index: 3;
  background: var(--paper);
  padding: clamp(72px, 9vw, 120px) 0;
}

.somos-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 5vw, 88px);
  align-items: center;
}

.somos-foto {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 48px) 0, 100% 38px, 100% 100%, 0 100%);
  aspect-ratio: 4 / 5;
  position: relative;
}

.somos-foto img { width: 100%; height: 100%; object-fit: cover; filter: brightness(1.12) contrast(1.04) saturate(1.03); }

.somos-foto::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--forest);
  opacity: 0.08;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.somos-texto { display: grid; gap: 22px; justify-items: start; }

.somos-texto h2 { max-width: 16ch; }

.somos-texto p { max-width: 58ch; }

/* ---------- Franja — Del blog (últimas publicaciones) ---------- */

.blog {
  position: relative;
  z-index: 3;
  background: var(--warm-white);
  padding: clamp(72px, 9vw, 120px) 0;
}

.blog-cabecera { margin-bottom: clamp(34px, 4vw, 52px); }
.blog-cabecera h2 { max-width: 18ch; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 28px);
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.blog-card:hover { border-color: rgba(35, 54, 46, 0.4); transform: translateY(-2px); }

.blog-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.06) contrast(1.04) saturate(1.02);
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-media img { transform: scale(1.03); }

.blog-card-cuerpo {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 24px 26px;
  flex: 1;
}

.blog-card-meta {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(35, 54, 46, 0.5);
}

.blog-card-titulo {
  font-size: 19px;
  line-height: 1.25;
  font-weight: 600;
}

.blog-card-titulo a {
  color: var(--forest);
  text-decoration: none;
}

.blog-card-titulo a:hover { color: var(--petrol); }

.blog-card-enlace {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--forest);
  font-family: var(--prosa);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.blog-card-enlace .flecha { transition: transform 0.2s ease; }
.blog-card-enlace:hover .flecha { transform: translateX(4px); }

/* ---------- Franja 10 — Recursos ---------- */

.recursos {
  position: relative;
  z-index: 3;
  background: var(--warm-white);
  padding: clamp(72px, 9vw, 120px) 0;
}

.recursos h2 { max-width: 20ch; }

.recursos-lista {
  list-style: none;
  margin: clamp(32px, 4vw, 48px) 0 0;
  padding: 0;
}

.recurso {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 26px 0;
  border-top: 1px solid var(--hairline);
}

.recurso:last-child { border-bottom: 1px solid var(--hairline); }

.recurso h3 { margin-bottom: 6px; }

.recurso p { font-size: 15px; color: var(--muted); max-width: 56ch; }

.recurso .enlace-ghost { flex: none; }

/* ---------- Franja 11 — FAQ ---------- */

.faq {
  position: relative;
  z-index: 3;
  background: var(--paper);
  padding: clamp(72px, 9vw, 120px) 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(36px, 5vw, 88px);
  align-items: start;
}

.faq-lista details { border-bottom: 1px solid var(--hairline); }

.faq-lista details:first-child { border-top: 1px solid var(--hairline); }

.faq-lista summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  cursor: pointer;
  font-family: var(--prosa);
  font-weight: 600;
  font-size: 16px;
  color: var(--forest);
}

.faq-lista summary::-webkit-details-marker { display: none; }

.faq-icono {
  position: relative;
  width: 16px;
  height: 16px;
  flex: none;
}

.faq-icono::before,
.faq-icono::after {
  content: "";
  position: absolute;
  background: var(--forest);
  transition: transform 0.2s ease;
}

.faq-icono::before { left: 0; top: 7px; width: 16px; height: 2px; }
.faq-icono::after { left: 7px; top: 0; width: 2px; height: 16px; }

details[open] .faq-icono::after { transform: scaleY(0); }

.faq-lista details > p {
  padding: 0 0 22px;
  font-size: 15.5px;
  color: var(--muted);
  max-width: 62ch;
}

/* ---------- Franja 12 — CTA final ---------- */

.final {
  position: relative;
  z-index: 3;
  background: var(--forest);
  color: var(--paper);
  clip-path: polygon(0 0, 100% 3vw, 100% 100%, 0 100%);
  padding: calc(clamp(84px, 11vw, 150px) + 3vw) 0 clamp(84px, 11vw, 150px);
}

.final-inner {
  display: grid;
  gap: 26px;
  justify-items: start;
  max-width: 880px;
}

.final h2 { max-width: 16ch; }

.final-texto { color: var(--muted-claro); max-width: 56ch; font-size: 17px; }

/* Override scoped: franja "Diagnóstico inicial" compacta.
   NO toca .final global (se usa en otras franjas); solo esta instancia. */
#diagnostico-inicial.final-compacta {
  padding: clamp(44px, 6vw, 72px) 0;
  clip-path: none;  /* sin diagonal: en una franja fina quedaba como cinta torcida */
}

#diagnostico-inicial.final-compacta .final-inner {
  gap: 18px;
  align-items: center;
  grid-template-columns: auto auto;
  grid-template-areas:
    "kicker kicker"
    "titulo boton";
  justify-content: space-between;
  max-width: var(--ancho);
  column-gap: clamp(32px, 5vw, 72px);
}

#diagnostico-inicial.final-compacta .kicker { grid-area: kicker; margin-bottom: 4px; }
#diagnostico-inicial.final-compacta h2 { grid-area: titulo; max-width: 22ch; }
#diagnostico-inicial.final-compacta .btn { grid-area: boton; justify-self: end; align-self: center; }

@media (max-width: 760px) {
  #diagnostico-inicial.final-compacta .final-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "kicker"
      "titulo"
      "boton";
    justify-items: start;
  }
  #diagnostico-inicial.final-compacta .btn { justify-self: start; }
}

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

.pie {
  position: relative;
  z-index: 3;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(56px, 7vw, 88px) 0 28px;
}

.pie-superior {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 3vw, 64px);
  align-items: start;
}

.pie-marca-bloque { display: grid; gap: 22px; justify-items: start; }

.pie-logo { height: 48px; width: auto; display: block; }

.pie-idiomas { display: flex; gap: 6px; }

.pie-idiomas a {
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(239, 238, 225, 0.6);
  text-decoration: none;
  border: 1px solid rgba(239, 238, 225, 0.25);
  border-radius: 9999px;
  padding: 6px 12px;
}

.pie-idiomas a[aria-current="true"] {
  color: var(--ink);
  background: var(--lime);
  border-color: var(--lime);
}

.pie-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 56px);
}

.pie-col-titulo {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(239, 238, 225, 0.5);
  margin-bottom: 16px;
}

.pie-col a {
  display: block;
  color: rgba(239, 238, 225, 0.78);
  text-decoration: none;
  font-size: 13px;
  padding: 5px 0;
}

.pie-col a:hover { color: var(--lime); }

.pie-inferior {
  margin-top: clamp(44px, 6vw, 64px);
  padding-top: 22px;
  border-top: 1px solid rgba(239, 238, 225, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.pie-legales { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.pie-legales a { color: rgba(239, 238, 225, 0.72); text-decoration: none; font-size: 13px; display: inline-block; padding: 8px 0; }
.pie-legales a:hover { color: var(--paper); text-decoration: underline; }
.pie-firma { font-family: var(--prosa); font-size: 13px; color: rgba(239, 238, 225, 0.72); margin: -8px 0 0; }
.pie-firma a { color: var(--lime); text-decoration: none; font-weight: 600; }
.pie-firma a:hover { text-decoration: underline; }

.pie-meta {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(239, 238, 225, 0.62);
}
.pie-meta a {
  color: rgba(239, 238, 225, 0.82);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}
.pie-meta a:hover { color: var(--lime); }

/* ---------- Responsive ---------- */

@media (max-width: 1140px) {
  .nav-links { display: none; }
}

@media (max-width: 900px) {
  .hero-sticky { height: auto; min-height: 100svh; }

  .hero-capa { padding-top: 112px; padding-bottom: 30px; margin: 0; }
  @supports (font-size: 1cqi) { .hero-capa h1 { font-size: min(52px, 9.4cqi); } }


  .hero-sub { display: none; }

  .hero-cols { grid-template-columns: 1fr; gap: 26px; align-items: start; }

  html.has-motion .hero { height: 138svh; }

  .hero-trayecto { max-width: none; justify-self: stretch; gap: 12px; }

  .trayecto-cuerpo { padding-left: 34px; }

  .trayecto-paradas { gap: 14px; }

  .parada { font-size: 14px; }

  .parada-dot { width: 14px; height: 14px; left: -34px; top: 8px; }

  .trayecto-rail { left: -3px; }

  html.has-motion .statement { margin-top: -40svh; }

  .statement-pin { min-height: 56svh; }

  .statement-texto { font-size: clamp(20px, 5vw, 27px); max-width: none; }

  .marco-grid { grid-template-columns: 1fr; gap: 36px; }

  .marco, .statement { clip-path: polygon(0 0, 100% 5vw, 100% 100%, 0 100%); }

  .factores { grid-template-columns: 1fr; }
  .factor:nth-child(odd) { border-right: none; }
  .factor:not(:last-child) { border-bottom: 1px solid var(--hairline); }

  .afecta-cierre { flex-direction: column; align-items: flex-start; }

  .partners-grid, .calc-grid, .somos-grid, .faq-grid, .aporta-grid { grid-template-columns: 1fr; gap: 32px; }

  .partners { clip-path: polygon(0 0, 100% 6vw, 100% 100%, 0 calc(100% - 6vw)); }

  .partners-foto, .aporta-foto { aspect-ratio: 3 / 2; }

  .aporta-puntos { grid-template-columns: 1fr; }

  .incluye-cabecera { flex-direction: column; align-items: flex-start; gap: 12px; }

  .incluye-track { grid-template-columns: 1fr; }
  .incluye-card { min-height: 0; }

  .metodo-pasos { grid-template-columns: 1fr; gap: 28px; }

  .blog-grid { grid-template-columns: 1fr; }

  .metodo, .final { clip-path: polygon(0 0, 100% 5vw, 100% 100%, 0 100%); }

  .somos-foto { aspect-ratio: 16 / 10; order: 2; }

  .recurso { flex-direction: column; align-items: flex-start; gap: 14px; }

  .pie-superior { grid-template-columns: 1fr; gap: 40px; }

  .pie-cols { grid-template-columns: 1fr 1fr; gap: 28px; }

  .pie-inferior { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (max-width: 520px) {
  .hero-ctas .btn { width: 100%; }
  .cotas { grid-template-columns: 1fr; }

  .nav { padding: 0 8px 0 18px; gap: 10px; }
  .nav-marca { font-size: 16px; }
  .nav-logo { height: 28px; }
  .nav-acciones { gap: 8px; }
  .nav > .nav-acciones > .nav-idioma { display: none; } /* en móvil el idioma está en el menú */
  .btn-nav { height: 40px; padding: 0 18px; font-size: 14px; }
}

/* ---------- Movimiento: estado por defecto = final ----------
   Sin JS o con reduced-motion no hay cortina ni animación:
   hero estático 100svh y secciones en flujo normal. */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Enlaces de marca dentro de la prosa: mismo color del texto, negrita + subrayado
   (sin el azul por defecto del navegador). Funciona en bandas claras y oscuras. */
.enlace-texto {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: text-decoration-thickness .2s ease, opacity .2s ease;
}
.enlace-texto:hover,
.enlace-texto:focus-visible {
  text-decoration-thickness: 2px;
  opacity: .85;
}

/* ============================================================
   Menú móvil (hamburguesa) — el JS (app.js) crea .nav-burger y
   .nav-panel; el CSS los muestra a ≤1140px (donde .nav-links se oculta).
   ============================================================ */
.nav-burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  flex: none;
  background: transparent; border: 0; cursor: pointer;
  color: var(--forest);
  border-radius: 50%;
  transition: background .2s ease;
}
.nav-burger:hover { background: rgba(35, 54, 46, 0.08); }
.nav-burger:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
.nav-burger svg { width: 24px; height: 24px; }

.nav-panel {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--forest);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(72px, 12vh, 110px) clamp(24px, 7vw, 48px) 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .26s ease, visibility .26s ease;
  overflow-y: auto;
}
.nav-panel.open { opacity: 1; visibility: visible; }

.nav-panel-cerrar {
  position: absolute;
  top: clamp(16px, 3vw, 26px); right: clamp(16px, 4vw, 28px);
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(239, 238, 225, 0.06);
  border: 1px solid rgba(239, 238, 225, 0.16);
  border-radius: 50%;
  color: var(--warm-white); cursor: pointer;
  transition: background .2s ease;
}
.nav-panel-cerrar:hover { background: rgba(239, 238, 225, 0.12); }
.nav-panel-cerrar:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.nav-panel-cerrar svg { width: 26px; height: 26px; }

.nav-panel-lista { display: flex; flex-direction: column; }
.nav-panel-lista a {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(23px, 6.5vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: rgba(239, 238, 225, 0.92);
  text-decoration: none;
  padding: clamp(14px, 2.4vh, 20px) 0;
  border-bottom: 1px solid rgba(239, 238, 225, 0.13);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  transition: color .2s ease, padding-left .2s ease;
}
.nav-panel-lista a:first-child { border-top: 1px solid rgba(239, 238, 225, 0.13); }
.nav-panel-lista a .flecha {
  color: var(--lime);
  font-size: 0.7em;
  opacity: 0; transform: translateX(-6px);
  transition: opacity .2s ease, transform .2s ease;
}
.nav-panel-lista a:hover,
.nav-panel-lista a:focus-visible { color: var(--warm-white); padding-left: 6px; }
.nav-panel-lista a:hover .flecha,
.nav-panel-lista a:focus-visible .flecha { opacity: 1; transform: translateX(0); }
.nav-panel-lista a[aria-current] { color: var(--lime); }
.nav-panel[hidden] { display: none; }

.nav-panel-cta { margin-top: clamp(26px, 5vh, 40px); display: flex; gap: 12px; align-items: center; }
.nav-panel-cta .btn { flex: 1; justify-content: center; }
.nav-panel .nav-idioma { border-color: rgba(239, 238, 225, 0.3); height: 48px; }
.nav-panel .nav-idioma a { color: var(--paper); min-width: 44px; }
.nav-panel .nav-idioma a[aria-current="true"] { background: var(--lime); color: var(--ink); }
.nav-panel .nav-idioma a:focus-visible { outline-color: var(--lime); }

body.nav-abierto { overflow: hidden; }

@media (max-width: 1140px) {
  .nav-burger { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-panel, .nav-panel-lista a .flecha { transition: none; }
}

/* Tap targets cómodos (~44px) en dispositivos táctiles, sin afectar al ratón.
   (El checkbox de consentimiento del formulario queda a 18px pero su <label>
   completo es tappable, así que el área de toque real es grande.) */
@media (pointer: coarse) {
  .enlace-ghost { min-height: 44px; }
  /* Controles de la calculadora cómodos para el dedo */
  .calc-chip { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .calc-seg .calc-chip { min-width: 44px; }
  .calc-slider input[type="range"] { height: 6px; }
  .calc-slider input[type="range"]::-webkit-slider-thumb { width: 28px; height: 28px; }
  .calc-slider input[type="range"]::-moz-range-thumb { width: 28px; height: 28px; }
}

/* Datos de contacto en el footer (bajo el logo/firma) */
.pie-contacto {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 9px;
}
.pie-contacto li {
  display: flex;
  gap: 9px;
  align-items: center;
  font-family: var(--prosa);
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(239, 238, 225, 0.78);
}
.pie-contacto svg { width: 16px; height: 16px; flex: none; color: var(--lime); }
.pie-contacto a { color: rgba(239, 238, 225, 0.78); text-decoration: none; }
.pie-contacto a:hover { color: var(--lime); }
/* el footer apila antes (≤900) para que la columna de marca/contacto vaya a
   ancho completo en tablet y la dirección no parta en dos líneas */
@media (max-width: 900px) {
  .pie-superior { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================================
   Componentes comunes generados por tools/build.mjs
   (antes los inyectaba site-shell.js con JavaScript)
   ============================================================ */

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* Enlace «Saltar al contenido»: invisible hasta recibir el foco con teclado */
.saltar {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--forest);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  translate: 0 -160%;
}
.saltar:focus-visible { translate: none; outline: 2px solid var(--lime); outline-offset: 2px; }

/* Campo trampa antispam (forms.js): fuera de la vista y del foco */
.hp-campo { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Botón de pausa de los vídeos del hero (WCAG 2.2.2) */
.hero-pausa {
  position: absolute;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 9999px;
  border: 1px solid rgba(239, 238, 225, 0.35);
  background: rgba(19, 35, 29, 0.55);
  color: var(--paper);
  font-family: var(--prosa);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.hero-pausa[hidden] { display: none; }
.hero-pausa:hover { background: rgba(19, 35, 29, 0.8); }
.hero-pausa:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.hero-pausa svg { width: 14px; height: 14px; }
.hero-pausa[data-parado="true"] .ico-pausa,
.hero-pausa:not([data-parado="true"]) .ico-play { display: none; }

/* ---------- Contacto ---------- */
.contacto-global { background: var(--warm-white); border-top: 1px solid rgba(35, 54, 46, 0.12); padding: clamp(56px, 9vw, 104px) 0; scroll-margin-top: 80px; }
.contacto-global .kicker { color: var(--petrol); }
.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.cf-intro h2 { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.08; color: var(--forest); letter-spacing: -0.01em; margin: 14px 0 16px; }
.cf-intro > p { font-size: 16px; line-height: 1.65; color: var(--ink); max-width: 46ch; margin: 0 0 22px; }
.cf-puntos, .cf-datos { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 12px; }
.cf-puntos li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--ink); }
.cf-puntos li .tramo { margin-top: 7px; flex: none; }
.cf-datos li { display: flex; gap: 11px; align-items: center; font-size: 14.5px; line-height: 1.4; color: var(--ink); }
.cf-datos svg { width: 18px; height: 18px; flex: none; color: var(--petrol); }
.cf-datos a { color: var(--forest); font-weight: 600; text-decoration: none; }
.cf-datos a:hover { color: var(--petrol); text-decoration: underline; }
.cf-firma { font-size: 13px; color: rgba(35, 54, 46, 0.82); margin: 0; }
.cf-firma a { color: var(--petrol); font-weight: 600; text-decoration: none; }
.cf-form { background: var(--paper); border: 1px solid rgba(35, 54, 46, 0.14); border-radius: 20px; padding: clamp(22px, 3vw, 34px); position: relative; }
.cf-nota { font-size: 12.5px; color: rgba(35, 54, 46, 0.78); margin: 0 0 18px; }
.cf-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cf-campo { margin: 0 0 16px; }
.cf-campo label { display: block; font-weight: 600; font-size: 13px; color: var(--forest); margin: 0 0 7px; }
.cf-campo .cf-opt { color: rgba(35, 54, 46, 0.72); font-weight: 400; }
.cf-req { color: var(--petrol); font-weight: 700; }
.cf-campo input, .cf-campo textarea, .cf-campo select {
  width: 100%; box-sizing: border-box; font-family: var(--prosa); font-size: 15px; color: var(--ink);
  background: var(--warm-white); border: 1px solid rgba(35, 54, 46, 0.24); border-radius: 11px; padding: 12px 14px; min-height: 46px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cf-campo select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--forest) 50%), linear-gradient(135deg, var(--forest) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.cf-campo input:focus, .cf-campo textarea:focus, .cf-campo select:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(205, 225, 79, 0.45); }
.cf-campo [aria-invalid="true"] { border-color: #b3261e; box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.18); }
.cf-campo textarea { min-height: 104px; resize: vertical; }
.cf-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--ink); margin: 4px 0 18px; }
.cf-consent input { margin-top: 2px; flex: none; width: 20px; height: 20px; accent-color: var(--forest); }
.cf-consent input:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
.cf-consent a { color: var(--petrol); }
.cf-error { font-size: 13px; color: #9b1c14; font-weight: 500; margin: 0 0 14px; }
.cf-error a { color: inherit; }
.cf-form .btn { width: 100%; justify-content: center; }
.cf-form .btn:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }
.cf-form .btn[aria-busy="true"] { opacity: 0.75; cursor: progress; }
.cf-ok { text-align: center; padding: 18px 0; }
.cf-ok:focus { outline: none; }
.cf-ok .cf-tic { width: 54px; height: 54px; border-radius: 50%; background: var(--lime); color: var(--forest); display: inline-flex; align-items: center; justify-content: center; margin: 0 0 14px; }
.cf-ok h3 { font-family: var(--display); color: var(--forest); font-size: 24px; margin: 0 0 8px; }
.cf-ok p { color: var(--ink); font-size: 15px; line-height: 1.6; }
@media (max-width: 820px) { .cf-grid, .cf-fila { grid-template-columns: 1fr; } }

/* Textos que cambian solos al pasar el plazo legal (5-dic-2026): app.js pone html.tras-plazo */
[data-tras-plazo] { display: none; }
html.tras-plazo [data-tras-plazo] { display: revert; }
html.tras-plazo [data-antes-plazo] { display: none; }

/* Anclas: el destino no queda tapado por la cabecera fija */
[id] { scroll-margin-top: 96px; }

/* ============================================================
   Gestor de consentimiento (consentimiento.js): aviso, panel y bolita.
   Los botones de aceptar, rechazar y configurar tienen el mismo peso
   visual, como pide la guía de cookies de la AEPD.
   ============================================================ */
.cc-aviso {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80;
  max-width: 880px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px;
  padding: 18px 22px; border-radius: 18px;
  background: var(--forest); color: var(--warm-white);
  box-shadow: 0 12px 32px rgba(19, 35, 29, 0.28);
  font-family: var(--prosa); font-size: 14.5px; line-height: 1.5;
}
.cc-aviso-texto { flex: 1 1 360px; }
.cc-aviso-texto p { margin: 0; }
.cc-aviso-titulo { font-weight: 700; font-size: 15.5px; margin-bottom: 4px !important; }
.cc-aviso a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.cc-botones { display: flex; flex-wrap: wrap; gap: 10px; }
.cc-boton {
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 14.5px/1.2 var(--prosa); white-space: nowrap;
}
/* Mismo tamaño, color y contraste para todas las opciones (AEPD: ninguna destaca) */
.cc-aviso .cc-boton { background: var(--warm-white); color: var(--ink); }
.cc-boton:focus-visible, .cc-switch:focus-visible, .cc-bolita:focus-visible, .cc-cerrar:focus-visible, .cc-detalle summary:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

html.cc-abierto { overflow: hidden; }
.cc-fondo {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(19, 35, 29, 0.55);
}
.cc-panel {
  width: 100%; max-width: 640px; max-height: calc(100dvh - 32px);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--warm-white); color: var(--ink); border-radius: 18px;
  box-shadow: 0 20px 50px rgba(19, 35, 29, 0.35);
  font-family: var(--prosa); font-size: 14.5px; line-height: 1.55;
}
.cc-panel:focus { outline: none; }
.cc-panel-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--hairline); }
.cc-panel-titulo { margin: 0; font: 700 19px/1.25 var(--display); color: var(--forest); }
.cc-cerrar { width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(35, 54, 46, 0.08); color: var(--forest); font-size: 24px; line-height: 1; cursor: pointer; }
.cc-panel-cuerpo { padding: 16px 22px; overflow-y: auto; }
.cc-panel-cuerpo > p { margin: 0 0 12px; }
.cc-panel-cuerpo a { color: var(--forest); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.cc-cat { border-top: 1px solid var(--hairline); padding: 14px 0; }
.cc-cat-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cc-cat-titulo { margin: 0; font: 700 15.5px/1.3 var(--prosa); color: var(--forest); }
.cc-cat-texto { margin: 6px 0 4px; color: var(--ink); }
.cc-siempre { font-weight: 700; font-size: 13px; color: var(--petrol); white-space: nowrap; }
.cc-switch { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer; font: 600 13px/1 var(--prosa); color: var(--petrol); }
.cc-switch-pista { position: relative; width: 46px; height: 26px; border-radius: 999px; background: rgba(35, 54, 46, 0.25); transition: background 0.2s; flex: 0 0 auto; }
.cc-switch-pista::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.2s; }
.cc-switch[aria-checked="true"] .cc-switch-pista { background: var(--forest); }
.cc-switch[aria-checked="true"] .cc-switch-pista::after { transform: translateX(20px); }
.cc-detalle summary { cursor: pointer; display: inline-block; padding: 8px 0; font-weight: 600; font-size: 13.5px; color: var(--forest); }
.cc-tabla { width: 100%; border-collapse: collapse; margin: 4px 0 6px; font-size: 13px; }
.cc-tabla th, .cc-tabla td { text-align: left; vertical-align: top; padding: 7px 8px; border-bottom: 1px solid var(--hairline); }
.cc-tabla th { font-weight: 700; color: var(--forest); }
.cc-id { font-size: 12.5px; color: var(--muted, #4a5a52); word-break: break-all; }
.cc-panel-pie { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 22px 18px; border-top: 1px solid var(--hairline); background: var(--paper); }
.cc-panel-pie .cc-boton { flex: 1 1 160px; background: var(--forest); color: var(--warm-white); }

.cc-bolita {
  position: fixed; left: 16px; bottom: 16px; z-index: 70;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--forest); color: var(--lime);
  box-shadow: 0 6px 18px rgba(19, 35, 29, 0.3);
}
.cc-bolita[hidden] { display: none; }
/* En el test, por encima de la barra fija inferior */
body:has(.dx-cta-fija:not([data-oculta="true"])) .cc-bolita { bottom: 86px; }

@media (max-width: 600px) {
  .cc-aviso { left: 10px; right: 10px; bottom: 10px; padding: 16px; }
  .cc-botones { width: 100%; }
  .cc-aviso .cc-boton { flex: 1 1 0; padding: 0 10px; }
  .cc-fondo { padding: 0; align-items: flex-end; }
  .cc-panel { max-height: 92dvh; border-radius: 18px 18px 0 0; }
  .cc-panel-pie .cc-boton { flex: 1 1 100%; }
  .cc-tabla thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cc-tabla tr, .cc-tabla td { display: block; }
  .cc-tabla tr { border-bottom: 1px solid var(--hairline); padding: 6px 0; }
  .cc-tabla td { border: 0; padding: 2px 0; }
  .cc-tabla td::before { content: attr(data-label) ": "; font-weight: 700; color: var(--forest); }
  .cc-bolita { left: 10px; bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) { .cc-switch-pista, .cc-switch-pista::after { transition: none; } }

/* En móvil, los campos de texto a 16 px como mínimo: con menos, el iPhone amplía la
   página al tocar un campo y la deja descolocada. */
@media (max-width: 899.98px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select:not([data-x]), textarea:not([data-x]) { font-size: 16px; }
}

/* Hueco al final del pie para que la bolita de cookies no tape el texto */
.pie-inferior { padding-bottom: 72px; }
