/* ==========================================================================
   Normattivo · Protocolo de Uso Responsable de IA
   Diseño de referencia: ../diseño/*.pdf (artboard de escritorio 1366 px)
   ========================================================================== */

/* ---------- Fuentes (Poppins autoalojada, OFL) ---------- */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 300; font-display: swap; src: url('/fonts/poppins-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/poppins-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/poppins-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/poppins-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/poppins-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/poppins-latin-700-normal.woff2') format('woff2'); }

/* ---------- Tokens ---------- */
:root {
  /* Marca */
  --navy: #173d6b;
  --blue: #2395d0;
  --blue-hero: #33a5e5;
  --blue-accent: #41a2d4;   /* líneas, bordes e iconos */

  /* Variantes AA (contraste WCAG) para texto y botones — aprobadas */
  --btn-primary: #1778b0;         /* texto blanco: 4,83:1 */
  --btn-primary-hover: #13689a;
  --title-accent: #268bc0;        /* 2ª línea de H2 (antes --blue-accent) */
  --title-hero: #1f8fd0;          /* «Criterio humano.» y 2ª línea del hero de resultado (antes --blue-hero) */
  --oferta: #2f8aca;              /* «50% de descuento» en negrita ≥ 18,66 px: 3,74:1 (AA texto grande) */

  /* Texto */
  --text: #333333;
  --text-2: #4d4d4d;
  --text-option: #706f6f;
  --placeholder: #b2b2b2;

  /* Fondos */
  --bg: #ffffff;
  --bg-soft: #ecf7fe;
  --track: #bad8e8;
  --bar-dark: #045d99;
  --bar-mid: #0275be;

  /* Estados del nivel (D6: solo «recomendada» está diseñado) */
  --warn-text: #9a4d00;     /* AA sobre --warn-bg (4,95:1); el diseño usaba #f7931e */
  --warn-bg: #ffe3c2;
  --warn-border: #fbb03b;
  --danger-text: #b3261e;
  --danger-bg: #fde3e1;
  --danger-border: #f19b94;
  --ok-text: #1e7a45;
  --ok-bg: #ddf3e5;
  --ok-border: #8fd3a8;
  --error: #c62828;

  /* Sombras / radios */
  --shadow-card: 0 4px 24px rgba(23, 61, 107, .08);
  --radius-card: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --hairline: rgba(178, 178, 178, .6);

  /* Layout */
  --page-max: 1366px;
  --gutter: 44px;        /* bloques grandes (hero, tarjetas) */
  --text-indent: 40px;   /* texto dentro de los bloques → x ≈ 84 px */
}

/* ---------- Reset mínimo ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--navy); color: #fff; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 16px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Tipografía ---------- */
.display { font-size: 56px; font-weight: 600; line-height: 1.1; letter-spacing: -.005em; }
.h2 { font-size: 44px; font-weight: 600; line-height: 1.1; }
.h4 { font-size: 18px; font-weight: 600; line-height: 1.4; color: var(--navy); }
.card-title { font-size: 18px; font-weight: 500; line-height: 1.4; color: var(--navy); }
.display > span, .h2 > span { display: block; }
.h2--flow > span { display: inline; }
@media (max-width: 1023px) { .br-d { display: none; } }
.eyebrow {
  font-size: 17px; font-weight: 400; line-height: 1.5; letter-spacing: .12em;
  text-transform: uppercase; color: var(--navy);
}
.eyebrow--sm { font-size: 16px; }
.lead { font-size: 20px; font-weight: 400; line-height: 1.45; color: var(--text); }
.lead-light { font-size: 18px; font-weight: 300; line-height: 1.55; color: var(--text); }
.note { font-size: 12px; font-style: italic; line-height: 1.35; color: var(--text-2); }

.c-navy { color: var(--navy); }
.c-blue { color: var(--blue); }
.c-blue-hero { color: var(--title-hero); }
.c-blue-accent { color: var(--title-accent); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 42px; padding: 0 24px;
  border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap;
  cursor: pointer; border: 0;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.btn--primary { background: var(--btn-primary); color: #fff; justify-content: space-between; padding: 0 16px 0 36px; }
.btn--primary .btn__arrow { color: var(--btn-primary); flex: none; }
.btn--primary:hover { background: var(--btn-primary-hover); }
.btn--primary:hover .btn__arrow { color: var(--btn-primary-hover); }
.btn--outline { background: #fff; color: var(--navy); border: 2px solid var(--blue-hero); }
.btn--outline:hover { background: var(--bg-soft); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }
.btn--w211 { width: 211px; }
.btn--w233 { width: 233px; }
.btn--w256 { width: 256px; }
.btn--w262 { width: 262px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 17px; }

/* ---------- Tarjeta y etiqueta ---------- */
.card { background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.tag {
  display: inline-block; padding: 7px 15px;
  background: rgba(255, 255, 255, .9); border: 2px solid var(--blue-hero); border-radius: 8px;
  font-size: 13px; font-weight: 500; line-height: 1.35; color: var(--navy);
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--page-max); margin-inline: auto; padding-inline: var(--gutter); }
.band { background: var(--bg-soft); }

/* ---------- Header / Footer ---------- */
.site-header {
  height: 124px; display: flex; justify-content: center; align-items: flex-start;
  padding-top: 36px; border-bottom: 1px solid var(--placeholder);
}
.site-header__logo img { width: 332px; height: auto; }

.site-footer { height: 85px; }
.site-footer__inner {
  max-width: var(--page-max); height: 100%; margin-inline: auto; padding: 0 86px 0 29px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-footer__logo img { width: 332px; height: auto; }
.site-footer__links { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 300; color: var(--navy); }
.site-footer__links a { text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; }

/* ==========================================================================
   LANDING
   ========================================================================== */

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  max-width: calc(var(--page-max) - 2 * var(--gutter));
  height: 561px; margin: 8px auto 0;
  border-radius: var(--radius-lg);
  background: #f6fafd;
}
.hero__bg, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__bg img { object-fit: cover; object-position: right center; }
.hero__content { position: relative; z-index: 1; padding: 68px 0 0 var(--text-indent); max-width: 680px; }
.hero__title { margin-top: 7px; }
/* Diseño v2: título 700/50 en 4 líneas, entradilla más larga y botones más abajo */
.hero__title--v2 { font-size: 50px; font-weight: 700; line-height: 1; letter-spacing: -.005em; }
.hero__title--v2 > span { display: block; }
.hero__lead { max-width: 520px; margin-top: 21px; }
.hero__title--v2 + .hero__lead { margin-top: 13px; line-height: 1.425; }
.hero__actions { margin-top: 30px; }
.hero__title--v2 ~ .hero__actions { margin-top: 20px; }
.hero__note { margin-top: 12px; }
.hero__title--v2 ~ .hero__note { margin-top: 8px; }
.oferta-destacado { font-weight: 700; color: var(--oferta); }
.hero__tags { position: absolute; inset: 0; pointer-events: none; }
.hero__tag { position: absolute; }
.hero__tag--1 { left: 855px; top: 87px; }
.hero__tag--2 { left: 699px; top: 192px; }
.hero__tag--3 { left: 932px; top: 291px; }
.hero__claim::after { content: ''; position: absolute; right: 0; bottom: 0; width: 7px; height: 73px; background: var(--blue-accent); }
.hero__claim {
  position: absolute; right: 42px; bottom: 26px;
  padding: 0 25px 14px 0;
  font-size: 14px; line-height: 1.65; letter-spacing: .12em; text-transform: uppercase; text-align: right; color: var(--text-2);
}

/* Sello «50 %» (diseño v2): círculo de 252 px arriba a la derecha del hero, texto real */
.sello {
  position: absolute; z-index: 2; top: 13px; right: 21px;
  width: 252px; height: 252px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  /* Degradado del diseño (#005291 → #1d9cd6), más oscuro bajo el texto pequeño para llegar a 4,5:1 (AA) */
  background: radial-gradient(circle closest-side, #005291 0%, #0a64a2 62%, #1170ae 82%, #1d9cd6 100%);
  box-shadow: 0 10px 40px rgba(0, 82, 145, .25);
  color: #fff; text-align: center; text-shadow: 0 2px 12px rgba(0, 50, 100, .45);
}
.sello__pct { font-size: 78px; font-weight: 700; line-height: .95; letter-spacing: -.01em; }
.sello__l1 { margin-top: 2px; font-size: 28px; font-weight: 600; line-height: 1.05; text-transform: uppercase; }
.sello__l2 { font-size: 22px; font-weight: 600; line-height: 1.15; text-transform: uppercase; }
.sello__l3 { margin-top: 14px; font-size: 16px; font-weight: 300; line-height: 1.2; }

/* ---------- 01 / El protocolo ---------- */
.s-protocolo { padding: 46px 0 21px; }
.s-protocolo__head {
  display: grid; grid-template-columns: 598px 1fr; align-items: end;
  padding-left: var(--text-indent);
}
.s-protocolo .h2 { margin-top: 12px; }
.s-protocolo__intro {
  align-self: center; margin-top: 44px;
  padding-left: 73px; border-left: 3px solid var(--blue-accent);
  min-height: 76px; display: flex; align-items: center; max-width: 548px;
}
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 47px; }
.feature { padding: 34px 24px 22px; min-height: 242px; }
.feature__icon { color: var(--blue-accent); margin-bottom: 20px; }
.feature p { color: var(--text-2); margin-top: 1px; }

/* ---------- 02 / Diagnóstico ---------- */
.s-diagnostico { padding: 38px 0 20px; }
.s-diagnostico__grid { display: grid; grid-template-columns: 597px 598px; justify-content: space-between; padding-right: 87px; }
.s-diagnostico__text { padding-left: var(--text-indent); }
.s-diagnostico .h2 { margin-top: 18px; max-width: 540px; }
.timeline { position: relative; margin-top: 37px; padding-left: 132px; }
.timeline::before {
  content: ''; position: absolute; left: 88px; top: 14px; bottom: -8px; width: 2px; background: var(--blue-accent);
}
.timeline__step { position: relative; padding-bottom: 20px; }
/* Diseño v2: textos de una línea, pero los pasos mantienen la separación del diseño (≈ 115 px) */
.timeline__step:not(:last-child) { min-height: 111px; }
.timeline__step::before {
  content: ''; position: absolute; left: -48px; top: 13px; width: 12px; height: 12px; border-radius: 50%; background: var(--blue-accent);
}
.timeline__num {
  position: absolute; left: -132px; top: -15px;
  font-size: 34px; font-weight: 600; line-height: 1.4; color: var(--navy);
}
.timeline .h4 { margin-top: 5px; }
.timeline p { color: var(--navy); margin-top: 7px; max-width: 400px; }
.s-diagnostico__cta { margin: 17px 0 0 89px; }

.s-diagnostico__figure { padding-top: 36px; }
.s-diagnostico__figure .note { margin: 22px 0 0 30px; }
.mockup { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); height: 480px; overflow: hidden; }
.mockup__head { height: 75px; display: flex; align-items: center; padding-left: 14px; border-bottom: 1px solid var(--placeholder); }
.mockup__head img { width: 185px; }
/* Mockup v2: «Valoración inicial», donut centrado, 3 filas de leyenda y pie */
.mockup__body { padding: 14px 29px 0; }
.mockup__title { font-size: 22px; font-weight: 700; line-height: 1.5; color: var(--navy); }
.donut { width: 200px; height: 200px; margin: -15px auto 0; }
.donut text { font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 500; fill: var(--navy); }
.mockup__legend { width: 396px; margin: 10px auto 0; display: grid; gap: 14px; }
.mockup__legend li { display: flex; align-items: center; gap: 16px; }
.mockup__legend .dot { width: 22px; height: 22px; border-radius: 50%; flex: none; }
.mockup__legend .dot--1 { background: #97c1d3; }
.mockup__legend .dot--2 { background: #91cee8; }
.mockup__legend .dot--3 { background: #6cc0e5; }
.mockup__legend .line { width: 358px; height: 21px; border-radius: var(--radius-pill); background: var(--track); }
.mockup__foot { margin-top: 23px; font-size: 15px; font-weight: 500; line-height: 1.5; color: var(--navy); text-align: center; }

/* ---------- 03 / Tu protocolo (diseño v2: fondo blanco y eyebrow) ---------- */
.s-adaptado { padding: 43px 0 45px; }
.s-adaptado__grid { display: grid; grid-template-columns: 638px 1fr; padding-right: 86px; }
.s-adaptado__text { padding: 0 0 0 var(--text-indent); }
.s-adaptado .h2 { margin-top: 17px; }
.s-adaptado .lead-light { margin-top: 52px; max-width: 420px; }
.s-adaptado .btn { margin-top: 21px; }
.features-list { align-self: start; margin-top: 14px; border-left: 2px solid var(--blue-accent); padding-left: 32px; }
.features-list__row {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 13px 0; border-bottom: 1px solid var(--hairline);
}
.features-list__row:first-child { padding-top: 2px; }
.features-list__row:last-child { border-bottom: 0; padding-bottom: 0; }
.features-list dt { font-size: 17px; font-weight: 600; line-height: 1.65; color: var(--navy); }
.features-list dd { font-size: 15px; font-weight: 300; line-height: 1.85; color: var(--navy); text-align: right; }

/* ---------- CTA final ---------- */
.cta { position: relative; height: 535px; overflow: hidden; text-align: center; }
.cta__bg, .cta__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta__bg img { object-fit: cover; object-position: center; }
.cta__content { position: relative; z-index: 1; padding-top: 57px; }
.cta .display { margin-top: 35px; line-height: 1.15; }
.cta .lead { margin-top: 18px; }
.cta .btn { margin-top: 25px; }
.cta__note { margin-top: 26px; }

/* ==========================================================================
   CUESTIONARIO (diseño A4 ×1.97 → px; artboard equivalente 1172 px)
   ========================================================================== */
.q-page {
  position: relative; overflow: hidden;
  background: #f5fbfe url('/img/fondo-cuestionario-sup.webp') no-repeat right top / 594px auto;
  padding: 25px 0 48px;
}
.q-page::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 689px; height: 479px; z-index: 0; pointer-events: none;
  background: url('/img/fondo-cuestionario-inf.webp') no-repeat left bottom / 100% auto;
}
.q-wrap { position: relative; z-index: 1; max-width: 1113px; margin-inline: auto; padding-inline: 16px; }

.q-eyebrow { font-size: 18px; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); }
.q-title { margin-top: 30px; font-size: 56px; font-weight: 600; line-height: 1.07; color: var(--navy); }
.q-subtitle { margin-top: 4px; font-size: 21px; line-height: 1.45; color: var(--text); }
/* Pantalla final (diseño v2): título de 34,1 pt → 67 px y sin caja de progreso */
.q-title--final { font-size: 67px; line-height: 1.05; }

.q-progress {
  margin-top: 26px; padding: 10px 24px 21px 21px;
  background: var(--bg-soft); border-radius: var(--radius-card);
}
.q-progress__text { font-size: 18px; line-height: 1.5; letter-spacing: .08em; color: var(--navy); }
.q-progress__bar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin-top: 9px; }
.q-progress__seg { position: relative; overflow: hidden; height: 14px; border-radius: var(--radius-pill); background: var(--track); }
/* Relleno con transform (no con color) para que el avance entre pasos sea fluido */
.q-progress__seg::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--blue);
  transform: scaleX(0); transform-origin: left center; transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}
.q-progress__seg.is-done::after { transform: none; }

.q-step { margin-top: 54px; }
.q-step + .q-step { margin-top: 64px; }
.q-step__title { font-size: 39px; font-weight: 600; line-height: 1.2; color: var(--navy); scroll-margin-top: 24px; }
.q-step__title:focus { outline: none; }
.q-step__num { color: var(--blue); }
.q-step__help { margin-top: 15px; font-size: 18px; line-height: 1.5; color: var(--text); }
.q-step__help + .q-card { margin-top: 17px; }
.is-review .q-step__title + .q-step__help + .q-card { margin-top: 24px; }

.q-card {
  display: flex; flex-direction: column; min-height: 135px; margin: 18px 0 0; padding: 18px 22px 12px 23px;
  background: #fff; border: 2px solid transparent; border-radius: var(--radius-card); box-shadow: var(--shadow-card);
  min-width: 0; transition: border-color .2s ease, background-color .2s ease;
}
/* float + width: la <legend> se comporta como bloque normal dentro del fieldset */
.q-card__legend { display: grid; grid-template-columns: 54px 1fr; align-items: start; float: left; width: 100%; padding: 0; }
.q-card__num { font-size: 31px; font-weight: 600; line-height: 1; color: var(--blue); margin-top: -1px; }
.q-card__text { font-size: 20px; font-weight: 600; line-height: 1.2; color: var(--navy); }
.q-card__options {
  clear: both; display: grid; grid-template-columns: 172px 172px 172px 215px 194px; gap: 9px;
  margin: auto 0 0 24px; padding-top: 22px;
}
.q-opt {
  position: relative; display: flex; align-items: center; gap: 11px; height: 31px; padding: 0 8px 0 6px;
  border: 2px solid var(--track); border-radius: 8px; background: #fff; cursor: pointer;
  font-size: 16px; line-height: 1; color: var(--text-option); white-space: nowrap;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.q-opt__input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.q-opt__radio {
  flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.6px solid var(--blue); background: #fff;
  display: grid; place-items: center;
}
.q-opt__radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); transform: scale(0); transition: transform .28s cubic-bezier(.34, 1.56, .64, 1); }
.q-opt:hover { border-color: #8cc4e2; }
/* Opción seleccionada (no diseñada): borde azul, radio relleno, texto navy */
.q-opt:has(.q-opt__input:checked) { border-color: var(--blue); background: #f3faff; color: var(--navy); }
.q-opt__input:checked + .q-opt__radio::after { transform: scale(1); }
.q-opt:has(.q-opt__input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Aviso de pregunta sin contestar (no diseñado: rojo suave) */
.q-card.is-missing { border-color: #f0a8a3; background: #fffafa; }
.q-card.is-missing .q-opt { border-color: #f3c5c1; }
.q-card__error, .q-field__error {
  display: flex; align-items: center; gap: 8px; margin: 10px 0 0 24px;
  font-size: 14px; line-height: 1.4; color: var(--error);
}
.q-card__error::before, .q-field__error::before, .q-alert::before {
  content: '!'; flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  background: var(--error); color: #fff; font-size: 12px; font-weight: 700; line-height: 1;
}
.q-card__error[hidden], .q-field__error[hidden], .q-alert[hidden] { display: none; }
.q-alert {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  max-width: 640px; margin: 0 auto 24px; padding: 12px 20px;
  background: #fdeceb; border: 1px solid #f0a8a3; border-radius: var(--radius-card);
  font-size: 16px; line-height: 1.4; color: #9b1c1c; text-align: left;
}

.q-nav { margin-top: 56px; text-align: center; }
.q-nav__buttons { display: flex; justify-content: center; gap: 25px; }
.btn--q-back, .btn--q-next { height: 52px; font-size: 16px; }
.btn--q-back { width: 261px; }
.btn--q-next { width: 287px; padding: 0 14px 0 0; justify-content: center; position: relative; }
.btn--q-next .btn__arrow { position: absolute; right: 16px; top: 13px; }
.q-note { margin-top: 12px; font-size: 16px; font-style: italic; line-height: 1.5; color: var(--text-2); }

/* Pantalla final */
.q-final {
  margin-top: 96px; padding: 56px 99px 56px;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  text-align: center;
}
.q-final__icon { margin: 0 auto; color: var(--blue); }
.q-final__title { margin-top: 36px; font-size: 43px; font-weight: 600; line-height: 1.2; color: var(--navy); }
.q-final__text { max-width: 820px; margin: 18px auto 0; font-size: 22px; line-height: 1.27; color: var(--text); }
.q-final__text--2 { margin-top: 20px; font-size: 20px; line-height: 1.35; color: var(--text-option); }

/* Caja de descuento (D16) */
.q-oferta {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0 32px;
  margin: 22px -15px 0; padding: 20px 20px 20px 44px;
  background: var(--bg-soft); border-radius: var(--radius-card); text-align: left;
}
.q-oferta__pct { font-size: 82px; font-weight: 700; line-height: 1; letter-spacing: -.01em; color: var(--title-accent); }
.q-oferta__texto { padding-left: 32px; border-left: 3px solid var(--blue-accent); }
.q-oferta__titulo { font-size: 33px; font-weight: 600; line-height: 1.15; color: var(--title-accent); }
.q-oferta__detalle { margin-top: 6px; font-size: 17px; line-height: 1.4; color: #575756; }

.q-form { margin-top: 12px; text-align: left; }
.q-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin-top: 14px; }
.q-form__grid .q-field + .q-field { margin-top: 0; }
.q-field + .q-field { margin-top: 24px; }
.q-field__label { display: block; font-size: 22px; font-weight: 600; line-height: 1.3; color: var(--navy); }
.q-field__input {
  display: block; width: 100%; height: 42px; margin-top: 10px; padding: 0 22px;
  border: 2px solid var(--track); border-radius: var(--radius-pill); background: #fff;
  font-size: 16px; color: var(--navy); transition: border-color .15s ease;
}
.q-field__input::placeholder { color: var(--placeholder); font-weight: 300; opacity: 1; }
.q-field__input:hover { border-color: #8cc4e2; }
.q-field__input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(35, 149, 208, .2); }
.q-field__input.is-invalid { border-color: #e57368; }
.q-field__error { margin-left: 22px; }
.q-privacy { margin-top: 5px; font-size: 16px; font-style: italic; line-height: 1.5; color: var(--text-2); }
.q-privacy a, .q-link { color: var(--btn-primary); text-decoration: underline; text-underline-offset: 2px; } /* AA: 4,83:1 (antes --blue, 3,3:1) */
.q-check { display: flex; align-items: flex-start; gap: 12px; margin-top: 22px; font-size: 18px; line-height: 1.35; color: var(--text); cursor: pointer; }
.q-check__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.q-check__box {
  flex: none; width: 22px; height: 22px; margin-top: 1px; border: 1.5px solid var(--navy); border-radius: 3px; background: #fff;
  display: grid; place-items: center;
}
.q-check__input:checked + .q-check__box { background: var(--blue); border-color: var(--blue); }
.q-check__input:checked + .q-check__box::after {
  content: ''; width: 11px; height: 6px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: translateY(-2px) rotate(-45deg);
}
.q-check__input:focus-visible + .q-check__box { outline: 3px solid var(--blue); outline-offset: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.q-form .q-alert { margin: 28px auto 0; }
.q-form__actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 52px; }
.q-link { font-size: 16px; line-height: 1.5; }
.btn__spinner { display: none; }
.btn.is-loading .btn__spinner {
  display: block; position: absolute; right: 18px; top: 15px; width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .8s linear infinite;
}
.btn.is-loading .btn__arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.site-footer--nota { height: auto; }
.site-footer--nota .site-footer__inner { height: 85px; }
.q-footnote {
  padding: 7px 16px 0; border-top: 1px solid var(--placeholder);
  font-size: 16px; font-style: italic; line-height: 1.5; color: var(--text-2); text-align: center;
}

/* ==========================================================================
   RESULTADO (LANDING POST CUESTIONARIO.pdf)
   ========================================================================== */
.page-r.is-pending main .r-band > :not(noscript) { visibility: hidden; }

.hero--r { height: 364px; margin-top: 0; }
.hero--r .hero__bg img { object-position: 70% 35%; }
.hero--r .hero__content { padding-top: 80px; max-width: 860px; }
.hero--r .hero__lead { margin-top: 26px; max-width: none; }

.r-band { margin-top: 20px; padding: 60px 0 30px; }
.r-top {
  display: grid; grid-template-columns: 548px 676px; gap: 28px;
  max-width: 1252px; margin-inline: auto;
}
.r-card { min-height: 417px; padding: 47px 40px 33px; display: flex; flex-direction: column; }
.r-h3 { font-size: 39px; font-weight: 600; line-height: 1.1; color: var(--navy); }
.r-lead { font-size: 22px; font-weight: 300; line-height: 1.27; color: var(--text); }
.r-card__note { margin-top: auto; padding-top: 27px; border-top: 1px solid var(--placeholder); }

.r-cobertura { text-align: center; padding-inline: 32px; }
.r-kpi { margin-top: 19px; font-size: 185px; font-weight: 600; line-height: 1; letter-spacing: -.01em; color: var(--blue); white-space: nowrap; }
.r-cobertura .r-lead { margin: 6px 0 12px; }
/* 3 cifras («100 %»): se reduce para no tocar los bordes de la tarjeta */
.r-kpi--3 { font-size: 160px; padding-block: 12px; }

.r-orientacion { padding: 21px 56px 33px 40px; }
.r-pill {
  display: flex; align-items: center; justify-content: center;
  width: 325px; height: 52px; margin-top: 15px;
  border-radius: var(--radius-pill); border: .8px solid var(--warn-border);
  background: var(--warn-bg); color: var(--warn-text);
  font-size: 20px; line-height: 1;
}
.r-pill--recomendada { background: var(--warn-bg); border-color: var(--warn-border); color: var(--warn-text); }
.r-pill--prioritaria { background: var(--danger-bg); border-color: var(--danger-border); color: var(--danger-text); }
.r-pill--mantener { background: var(--ok-bg); border-color: var(--ok-border); color: var(--ok-text); }
.r-pill--pendiente { background: #eef1f4; border-color: #c5ccd3; color: #5b6570; }
.r-orientacion .r-h3 { margin-top: 26px; margin-right: -20px; }
.r-orientacion .r-lead { margin: 17px 0 16px; }

.r-h2 { max-width: 1293px; margin: 39px auto 0; padding-left: 18px; font-size: 48px; font-weight: 600; line-height: 1.1; }

.r-counters {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  max-width: 1293px; margin: 33px auto 0;
}
.r-counter { min-height: 277px; padding: 43px 18px 30px; text-align: center; }
.r-counter__head { display: flex; align-items: center; justify-content: center; gap: 30px; color: var(--blue); }
.r-counter__num { font-size: 56px; font-weight: 600; line-height: 1; color: var(--blue); }
.r-counter__label {
  display: flex; align-items: center; justify-content: center; min-height: 58px; margin-top: 18px;
  font-size: 22px; font-weight: 500; line-height: 1.3; text-transform: uppercase; color: var(--navy); text-wrap: balance;
}
.r-counter__text { margin-top: 8px; font-size: 16px; line-height: 1.65; color: var(--text-2); text-wrap: balance; }

.r-email {
  display: grid; grid-template-columns: 267px 1fr; align-items: center;
  max-width: 1293px; min-height: 159px; margin: 23px auto 0; padding: 20px 30px 20px 0;
}
.r-email__icon { justify-self: center; color: var(--blue); }
.r-email__body { position: relative; padding-left: 46px; }
.r-email__body::before { content: ''; position: absolute; left: 0; top: 50%; width: 3px; height: 73px; transform: translateY(-50%); background: var(--blue-accent); }
.page-r .site-footer { height: 101px; padding-bottom: 16px; }
.r-email .r-lead { margin-top: 6px; }
.r-email__error { color: #9b1c1c; }
.r-email__error a { color: var(--blue); font-weight: 400; }

.btn-row--center { justify-content: center; margin-top: 24px; }

/* Tarjeta «El siguiente paso, con Normattivo» (D16): mismo formato que la de email */
.r-siguiente { margin-top: 28px; }

/* Bloque de descuento (D16; sustituye al CTA con imagen) */
.r-oferta {
  display: grid; grid-template-columns: 646px 1fr; align-items: center;
  max-width: 1293px; min-height: 418px; margin: 37px auto 0; padding: 40px 50px 40px 0;
}
.r-oferta__sello { text-align: center; text-transform: uppercase; color: #153962; }
.r-oferta__pct { font-size: 215px; font-weight: 700; line-height: .9; letter-spacing: -.02em; color: var(--title-accent); text-transform: none; }
.r-oferta__l1 { margin-top: 10px; font-size: 52.6px; font-weight: 600; line-height: 1.1; }
.r-oferta__l2 { font-size: 41.3px; font-weight: 600; line-height: 1.15; }
.r-oferta__body { padding: 30px 0 30px 43px; border-left: 3px solid var(--blue-accent); }
.r-oferta__title { font-size: 49px; font-weight: 600; line-height: 1.1; }
.r-oferta__title > span { display: block; }
.r-oferta__text { max-width: 540px; margin-top: 24px; font-size: 20px; line-height: 1.45; color: var(--text); }
.r-oferta__actions { margin-top: 16px; }

/* ==========================================================================
   PÁGINAS LEGALES Y 404
   ========================================================================== */
.legal { background: var(--bg-soft); padding: 64px var(--gutter) 88px; }
.legal__wrap { max-width: 860px; margin-inline: auto; }
.legal__title { margin-top: 10px; font-size: 44px; font-weight: 600; line-height: 1.1; color: var(--navy); }
.legal__pending {
  margin-top: 32px; padding: 28px 32px; background: #fff; border-left: 4px solid var(--blue-accent);
  border-radius: 0 var(--radius-card) var(--radius-card) 0; box-shadow: var(--shadow-card);
  font-size: 18px; line-height: 1.6; color: var(--text);
}
.legal__pending strong { color: var(--navy); }
.legal__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 28px 0 36px; font-size: 16px; }
.legal__nav a { color: #1670a3; }

.not-found { position: relative; overflow: hidden; min-height: 560px; display: grid; place-items: center; text-align: center; padding: 64px 16px; }
.not-found__bg, .not-found__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.not-found__bg img { object-fit: cover; }
.not-found__content { position: relative; z-index: 1; }
.not-found .display { margin-top: 16px; }
.not-found .lead { margin-top: 20px; }
.not-found .btn-row { margin-top: 32px; }

/* ==========================================================================
   MODAL DE CONTACTO (no diseñado: estilo de la tarjeta de captura de email)
   ========================================================================== */
.modal {
  width: min(880px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 48px);
  padding: 0; border: 0; border-radius: var(--radius-lg); background: transparent; overflow: visible;
}
.modal::backdrop { background: rgba(23, 61, 107, .55); backdrop-filter: blur(2px); }
.modal[open] { animation: modal-in .2s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.modal__card {
  position: relative; max-height: calc(100dvh - 48px); overflow-y: auto;
  padding: 48px 64px 40px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  text-align: center;
}
.modal__close {
  position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: transparent; color: var(--navy); cursor: pointer;
}
.modal__close:hover { background: var(--bg-soft); }
.modal__icon { margin: 0 auto; color: var(--blue); }
.modal__title { margin-top: 18px; font-size: 36px; font-weight: 600; line-height: 1.15; color: var(--navy); }
.modal__title:focus { outline: none; }
.modal__text { max-width: 620px; margin: 12px auto 0; font-size: 18px; line-height: 1.4; color: var(--text); }
.modal__form { margin-top: 30px; }
.modal__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; margin: 20px 0; }
.modal__grid .q-field + .q-field { margin-top: 0; }
.modal .q-field__label { font-size: 18px; }
.q-field__optional { font-weight: 400; font-size: .85em; color: var(--text-2); }
.q-field__textarea { height: auto; min-height: 110px; padding: 12px 22px; border-radius: 22px; resize: vertical; line-height: 1.5; }
.modal .q-check { margin-top: 20px; font-size: 16px; }
.modal .q-check a { color: var(--btn-primary); }
.q-field__error--check { margin-left: 34px; }
.modal__actions { margin-top: 32px; }
.modal__required { font-size: 13px; color: var(--text-2); }
.modal__ok { padding: 24px 0 8px; }
.modal__ok .btn { margin-top: 28px; }

/* ==========================================================================
   Responsive (no hay diseño móvil: propuesta del brief §2.4)
   ========================================================================== */
@media (max-width: 1365px) {
  .hero__tag--1 { left: auto; right: 24.6%; }
  .hero__tag--2 { left: auto; right: 37.3%; }
  .hero__tag--3 { left: auto; right: 18.4%; }
}

@media (max-width: 1200px) {
  .s-protocolo__head { grid-template-columns: 1fr 1fr; }
  .s-diagnostico__grid { grid-template-columns: 1fr; gap: 40px; padding-right: var(--gutter); }
  .s-diagnostico__figure { max-width: 607px; }
  .s-adaptado__grid { grid-template-columns: 1fr 1fr; gap: 32px; padding-right: var(--gutter); }
}

@media (max-width: 1023px) {
  :root { --gutter: 24px; --text-indent: 16px; }
  .display { font-size: 44px; }
  .hero__title--v2 { font-size: 42px; line-height: 1.05; }
  .h2 { font-size: 38px; }
  .r-h2 { font-size: 40px; padding-left: 0; }
  .r-h3 { font-size: 32px; }
  .q-title { font-size: 46px; }
  .legal__title { font-size: 38px; }
  .hero { height: auto; min-height: 520px; padding-bottom: 96px; }
  .hero__content { max-width: 560px; padding-top: 48px; }
  .hero__tags { display: none; }
  /* Sello: pasa al flujo, debajo de los botones */
  .sello { position: relative; top: auto; right: auto; width: 180px; height: 180px; margin: 28px 0 0 var(--text-indent); }
  .sello__pct { font-size: 56px; }
  .sello__l1 { font-size: 20px; }
  .sello__l2 { font-size: 16px; }
  .sello__l3 { font-size: 13px; margin-top: 4px; }
  .hero__bg img { object-position: 70% center; }
  .hero__content::before {
    content: ''; position: absolute; inset: 0 -40px -40px -40px; z-index: -1;
    background: linear-gradient(90deg, rgba(255,255,255,.9) 60%, rgba(255,255,255,0));
  }
  .s-protocolo__head { grid-template-columns: 1fr; }
  .s-protocolo__intro { margin-top: 24px; padding-left: 24px; min-height: 0; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .s-adaptado__grid { grid-template-columns: 1fr; gap: 40px; }
  .s-adaptado__text { padding-top: 0; }
  .site-footer__inner { padding: 0 var(--gutter); }
  .site-footer__logo img { width: 220px; }
}

@media (max-width: 639px) {
  :root { --gutter: 16px; --text-indent: 0px; }
  .display { font-size: 36px; }
  .hero__title--v2 { font-size: 33px; line-height: 1.08; }
  .oferta-destacado { color: var(--btn-primary); } /* a 18 px no cuenta como texto grande: azul AA 4,83:1 */
  /* Móvil: cada frase (navy / azul) fluye en su propio bloque en lugar de 4 líneas fijas */
  .hero__title--v2 > span { display: inline; }
  .hero__title--v2 > span:nth-child(2)::after { content: '\A'; white-space: pre; }
  .timeline__step:not(:last-child) { min-height: 0; }
  .h2 { font-size: 30px; }
  .lead { font-size: 18px; }
  .eyebrow { font-size: 14px; }
  .site-header { height: 88px; padding-top: 24px; }
  .site-header__logo img { width: 230px; }
  .hero { border-radius: 12px; padding: 0 20px 250px; }
  /* Móvil: la imagen pasa a una franja inferior para que el texto quede sobre fondo claro */
  .hero__bg { top: auto; height: 240px; }
  .hero__bg img { object-position: 72% 40%; }
  .hero__bg::before { content: ''; position: absolute; inset: 0 0 auto; height: 60px; z-index: 1; background: linear-gradient(#f6fafd, rgba(246,250,253,0)); }
  .hero__content::before { display: none; }
  .hero__content { padding-top: 36px; }
  .btn-row { flex-direction: column; }
  .btn-row .btn, .btn--w211, .btn--w233, .btn--w256, .btn--w262 { width: 100%; }
  .hero__claim { right: 20px; bottom: 20px; font-size: 12px; }
  .cards-4 { grid-template-columns: 1fr; }
  .feature { min-height: 0; }
  .timeline { padding-left: 64px; }
  .timeline::before { left: 44px; }
  .timeline__step::before { left: -25px; }
  .timeline__num { position: static; display: block; font-size: 26px; line-height: 1.2; }
  .s-diagnostico__cta { margin-left: 0; width: 100%; }
  .mockup { height: auto; padding-bottom: 24px; }
  .mockup__body { padding: 20px 20px 0; }
  .mockup__title { font-size: 19px; }
  .donut { margin-top: 12px; width: 170px; height: 170px; }
  .mockup__legend { width: 100%; }
  .mockup__legend .line { width: auto; flex: 1; }
  .mockup__foot { margin-top: 20px; }
  .sello { width: 150px; height: 150px; margin: 24px auto 0; }
  .sello__pct { font-size: 46px; }
  .sello__l1 { font-size: 17px; }
  .sello__l2 { font-size: 13px; }
  .sello__l3 { font-size: 12px; }
  .features-list { padding-left: 20px; }
  .features-list__row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .features-list dd { text-align: left; }
  .cta { height: auto; padding: 0 16px 56px; }
  .cta__content { padding-top: 48px; }
  .site-footer { height: auto; padding: 24px 0; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
  .site-footer__logo img { width: 200px; }
}

/* Resultado */
@media (max-width: 1340px) {
  .r-band { padding-inline: var(--gutter); }
  .r-top { grid-template-columns: 45fr 55fr; }
}
@media (max-width: 1023px) {
  .r-top { grid-template-columns: 1fr; }
  .r-counters { grid-template-columns: repeat(2, 1fr); }
  .r-email { grid-template-columns: 140px 1fr; padding-right: 32px; }
  .r-email__body { padding-left: 32px; }
  .page-r .site-footer { height: auto; padding-bottom: 0; }
  .r-oferta { grid-template-columns: 1fr; padding: 40px 32px; gap: 28px; min-height: 0; }
  .r-oferta__pct { font-size: 140px; }
  .r-oferta__l1 { font-size: 36px; }
  .r-oferta__l2 { font-size: 28px; }
  .r-oferta__body { padding: 28px 0 0; border-left: 0; border-top: 3px solid var(--blue-accent); }
  .r-oferta__title { font-size: 38px; }
}
@media (max-width: 639px) {
  .hero--r { height: auto; padding-bottom: 200px; }
  .hero--r .hero__bg { height: 190px; }
  .hero--r .hero__content { padding-top: 36px; }
  .r-band { padding-top: 32px; }
  .r-card { min-height: 0; padding: 28px 20px 20px; }
  .r-h3 { font-size: 28px; }
  .r-kpi { font-size: 96px; }
  .r-lead { font-size: 18px; }
  .r-pill { width: 100%; font-size: 17px; }
  .r-h2 { font-size: 30px; }
  .legal { padding: 40px var(--gutter) 56px; }
  .legal__title { font-size: 30px; }
  .legal__pending { padding: 20px; font-size: 16px; }
  .not-found { min-height: 0; padding: 48px 16px; }
  .r-counters { grid-template-columns: 1fr; }
  .r-counter { min-height: 0; }
  .r-counter__label { min-height: 0; }
  .r-email { grid-template-columns: 1fr; padding: 24px 20px; text-align: center; gap: 16px; }
  .r-email__body { padding-left: 0; }
  .r-email__body::before { display: none; }
  .r-email__icon { width: 64px; height: 64px; }
  .r-oferta { padding: 32px 20px; }
  .r-oferta__pct { font-size: 110px; }
  .r-oferta__l1 { font-size: 28px; }
  .r-oferta__l2 { font-size: 22px; }
  .r-oferta__title { font-size: 28px; }
  .r-oferta__text { font-size: 17px; }
  .modal__card { padding: 40px 20px 28px; }
  .modal__title { font-size: 26px; }
  .modal__text { font-size: 16px; }
  .modal__grid { grid-template-columns: 1fr; gap: 16px; }
  .modal .btn--q-next { width: 100%; }
}

/* Cuestionario */
@media (max-width: 1100px) {
  .q-card__options { grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); margin-left: 0; }
  .q-card__error { margin-left: 0; }
  .q-final { padding-inline: 48px; }
  .q-oferta { margin-inline: 0; padding: 20px 24px; }
  .q-title--final { font-size: 56px; }
}

@media (max-width: 639px) {
  .q-page { padding-top: 20px; background-image: none; }
  .q-page::after { width: 320px; height: 223px; }
  .q-eyebrow { font-size: 13px; }
  .q-title { font-size: 34px; margin-top: 16px; }
  .q-subtitle { font-size: 17px; }
  .q-progress { padding: 10px 16px 16px; }
  .q-progress__text { font-size: 15px; }
  .q-progress__bar { gap: 5px; }
  .q-progress__seg { height: 10px; }
  .q-step { margin-top: 36px; }
  .q-step__title { font-size: 26px; }
  .q-step__help { font-size: 16px; }
  .q-card { padding: 16px 14px 14px; }
  .q-card__legend { grid-template-columns: 40px 1fr; }
  .q-card__num { font-size: 24px; }
  .q-card__text { font-size: 17px; }
  .q-card__options { grid-template-columns: 1fr; gap: 8px; padding-top: 16px; }
  .q-opt { height: 40px; white-space: normal; line-height: 1.2; }
  .q-nav__buttons { flex-direction: column-reverse; gap: 12px; }
  .btn--q-back, .btn--q-next { width: 100%; }
  .q-final { padding: 40px 20px 32px; }
  .q-final__icon { width: 80px; height: 88px; }
  .q-final__title { font-size: 28px; margin-top: 24px; }
  .q-final__text { font-size: 17px; line-height: 1.4; }
  .q-field__label { font-size: 18px; }
  .q-check { font-size: 15px; }
  .q-title--final { font-size: 36px; }
  .q-final { margin-top: 32px; }
  .q-final__text--2 { font-size: 16px; }
  .q-oferta { grid-template-columns: 1fr; gap: 10px; padding: 18px 20px; text-align: center; }
  .q-oferta__pct { font-size: 60px; }
  .q-oferta__texto { padding: 12px 0 0; border-left: 0; border-top: 3px solid var(--blue-accent); }
  .q-oferta__titulo { font-size: 24px; }
  .q-oferta__detalle { font-size: 15px; }
  .q-form__grid { grid-template-columns: 1fr; gap: 24px; }
  .q-footnote { font-size: 13px; }
}

/* ==========================================================================
   ANIMACIONES (public/js/animaciones.js añade .anim a <html>; sin JS o con
   prefers-reduced-motion no hay .anim y todo es estático). Solo transform/opacity.
   ========================================================================== */

/* Aparición al entrar en pantalla (misma lista que en animaciones.js, salvo .timeline y .hero__tag) */
.anim :is(.hero .eyebrow, .hero__title > span, .hero__lead, .hero__actions, .hero__note, .hero__claim,
  .s-protocolo__head > div, .s-protocolo__intro, .cards-4 > li,
  .s-diagnostico__text > .eyebrow, .s-diagnostico__text > .h2, .s-diagnostico__cta,
  .s-diagnostico__figure,
  .s-adaptado__text > *, .features-list__row, .cta__content > *, .r-top > .card, .r-h2, .r-email, .r-oferta, .r-counters > li) {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--d, 0ms);
}
.anim :is(.hero .eyebrow, .hero__title > span, .hero__lead, .hero__actions, .hero__note, .hero__claim,
  .s-protocolo__head > div, .s-protocolo__intro, .cards-4 > li,
  .s-diagnostico__text > .eyebrow, .s-diagnostico__text > .h2, .s-diagnostico__cta,
  .s-diagnostico__figure,
  .s-adaptado__text > *, .features-list__row, .cta__content > *, .r-top > .card, .r-h2, .r-email, .r-oferta, .r-counters > li).iv {
  opacity: 1; transform: none;
}

/* Hero: etiquetas flotantes (fundido y flotación lenta, desfasada) */
.anim .hero__tag { opacity: 0; transition: opacity .8s ease var(--d, 0ms); }
.anim .hero__tag.iv { opacity: 1; animation: flotar 6s ease-in-out infinite alternate; }
.anim .hero__tag--2.iv { animation-duration: 7s; animation-delay: -2.5s; }
.anim .hero__tag--3.iv { animation-duration: 6.5s; animation-delay: -4.5s; }
@keyframes flotar { from { transform: translateY(-4px); } to { transform: translateY(4px); } }

/* Sección 02: línea de pasos que se traza, puntos en orden y textos */
.anim .timeline::before { transform: scaleY(0); transform-origin: top; transition: transform 1.1s cubic-bezier(.4, 0, .2, 1) .1s; }
.anim .timeline.iv::before { transform: none; }
.anim .timeline__step::before { transform: scale(0); transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.anim .timeline__step > * { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.anim .timeline__step:nth-child(1)::before, .anim .timeline__step:nth-child(1) > * { transition-delay: .2s; }
.anim .timeline__step:nth-child(2)::before, .anim .timeline__step:nth-child(2) > * { transition-delay: .55s; }
.anim .timeline__step:nth-child(3)::before, .anim .timeline__step:nth-child(3) > * { transition-delay: .9s; }
.anim .timeline.iv .timeline__step::before, .anim .timeline.iv .timeline__step > * { opacity: 1; transform: none; }

/* Hero: el sello entra con una escala suave */
.anim .sello { opacity: 0; transform: scale(.82); transition: opacity .7s ease .35s, transform .8s cubic-bezier(.34, 1.4, .64, 1) .35s; }
.anim .sello.iv { opacity: 1; transform: none; }

/* Sección 02: mockup (donut que se dibuja y filas de la leyenda que aparecen) */
.donut__reveal { display: none; }
.anim .donut__reveal { display: inline; transition: stroke-dashoffset 1.4s cubic-bezier(.4, 0, .2, 1) .35s; }
.anim .s-diagnostico__figure.iv .donut__reveal { stroke-dashoffset: -100; }
.anim .mockup__legend li { opacity: 0; transform: translateX(-10px); transition: opacity .5s ease, transform .5s cubic-bezier(.2, .7, .2, 1); }
.anim .mockup__legend li:nth-child(1) { transition-delay: .9s; }
.anim .mockup__legend li:nth-child(2) { transition-delay: 1.05s; }
.anim .mockup__legend li:nth-child(3) { transition-delay: 1.2s; }
.anim .s-diagnostico__figure.iv .mockup__legend li { opacity: 1; transform: none; }

/* Resultado: contadores (el valor final, transparente, fija la maquetación; la capa cuenta encima) */
.cnt { position: relative; display: inline-block; }
.cnt__fin { color: transparent; }
.cnt__capa { position: absolute; top: 0; bottom: 0; left: -1em; right: -1em; text-align: center; white-space: nowrap; }
.cnt--fin .cnt__fin { color: inherit; }
.cnt--fin .cnt__capa { display: none; }

/* Resultado: píldora de orientación con fundido */
.anim .r-pill { opacity: 0; transition: opacity .6s ease .45s; }
.anim .r-orientacion.iv .r-pill { opacity: 1; }

/* Cuestionario: fundido al cambiar de paso, revisión o pantalla final */
.anim .entra { animation: entrar .45s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes entrar { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Hover: tarjetas que se elevan (sombra mayor con opacidad) y flecha de los botones primarios */
.btn__arrow { transition: transform .2s ease; }
.feature { position: relative; }
.feature::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 14px 34px rgba(23, 61, 107, .14); opacity: 0; transition: opacity .25s ease;
}
@media (hover: hover) {
  .feature { transition: transform .25s ease; }
  .anim .cards-4 > li.fin { transition: transform .25s ease; }
  .feature:hover, .anim .cards-4 > li.iv:hover { transform: translateY(-4px); }
  .feature:hover::after { opacity: 1; }
  .btn--primary:hover .btn__arrow { transform: translateX(4px); }
}

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