/* ==========================================================================
   BeZion Makers · Maqueta de landing (alta fidelidad)
   Móvil primero · contenedor de 1120 px · espaciado en múltiplos de 8 px
   ========================================================================== */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext-400-normal.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: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-400-normal.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: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext-500-normal.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: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-500-normal.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: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext-700-normal.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: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-700-normal.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 {
  --fondo: #FBF8F4;
  --fondo-banda: #F6F0E7;
  --fondo-pie: #F3ECE2;
  --superficie: #FFFFFF;
  --texto: #2B2A28;
  --texto-suave: #6B655E;
  --linea: #E8E1D8;
  --acento: #F07A1A;            /* naranja provisional del logo; código exacto pendiente */
  --acento-oscuro: #C95F0C;
  /* Variantes que sí cumplen contraste AA (4.5:1) */
  --acento-boton: #C2540A;      /* fondo de botón con texto blanco: 4.6:1 */
  --acento-boton-hover: #A64607;
  --acento-texto: #B8560A;      /* texto naranja sobre claro: 4.5:1 o más */
  --acento-profundo: #99470A;   /* texto sobre naranja muy claro */
  --acento-numero: #E06A10;     /* números grandes */
  --acento-tenue: #FDF0E4;
  --velas: #CFC6BA;

  --radio-tarjeta: 20px;
  --radio-imagen: 24px;
  --radio-campo: 12px;
  --pildora: 999px;
  --sombra-tarjeta: 0 10px 30px rgba(43, 42, 40, .08);
  --sombra-alta: 0 24px 64px rgba(43, 42, 40, .14);
  --sombra-boton: 0 8px 20px rgba(194, 84, 10, .26);

  --ancho: 1120px;
  --margen: 24px;
  --alto-banda: 0px;
  --alto-menu: 56px;
  --alto-encabezado: var(--alto-menu);
  --aire: 72px;                 /* aire entre secciones */
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--alto-banda) + var(--alto-menu) + 12px);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: break-word;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
.solo-definiciones { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }

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

h1, h2, h3 { font-weight: 700; text-wrap: balance; }
h1 { font-size: 36px; line-height: 1.1; letter-spacing: -.02em; }
h2 { font-size: 28px; line-height: 1.15; letter-spacing: -.02em; }
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -.01em; }
p { text-wrap: pretty; }

a { color: var(--acento-texto); }
a:hover { color: var(--acento-boton-hover); }

:focus-visible {
  outline: 3px solid var(--texto);
  outline-offset: 3px;
  border-radius: 6px;
}
.boton:focus-visible, .flotante-asesor:focus-visible, .opcion:focus-visible { border-radius: var(--pildora); outline-offset: 3px; }
.opcion:focus-visible { border-radius: 16px; }

.icono {
  flex: none;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--acento);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Banda de maqueta (se quita borrando la clase .maqueta del body) ---------- */
.banda-maqueta { display: none; }
.maqueta { --alto-banda: 32px; padding-top: var(--alto-banda); }
.maqueta .banda-maqueta {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 70;
  height: var(--alto-banda);
  padding: 0 16px;
  background: var(--texto);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  white-space: nowrap;
}

/* ---------- Estructura ---------- */
.contenedor { width: 100%; max-width: calc(var(--ancho) + 2 * var(--margen)); margin: 0 auto; padding: 0 var(--margen); }
.seccion { padding: 40px 0 32px; scroll-margin-top: calc(var(--alto-menu) + 12px); }                 /* 40 + 32 = 72 px de aire entre secciones */
.ancla-seccion { display: block; height: 0; overflow: hidden; pointer-events: none; scroll-margin-top: calc(var(--alto-menu) + 12px); }
.seccion-banda, .seccion-simulador { padding: var(--aire) 0; margin: 32px 0 40px; }

.logo {
  display: inline-block;
  color: var(--acento);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -.02em;
  text-decoration: none;
}
a.logo:hover { color: var(--acento-oscuro); }

.linea-superior {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 16px;
  background: var(--acento-tenue);
  border-radius: var(--pildora);
  color: var(--acento-profundo);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.entrada { font-size: 18px; color: var(--texto-suave); }
.subtitulo-bloque { margin-top: 64px; }

.imagen {
  width: 100%;
  border-radius: var(--radio-imagen);
  object-fit: cover;
  box-shadow: var(--sombra-tarjeta);
}

.pendiente {
  background: rgba(240, 122, 26, .12);
  background: color-mix(in srgb, var(--acento) 12%, transparent);
  color: var(--texto);
  padding: 1px 3px;
  border-radius: 4px;
  font-weight: 500;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Separador de velas ---------- */
.separador { display: flex; justify-content: center; color: var(--velas); height: 0; }
.separador svg { width: 168px; height: 40px; transform: translateY(-50%); }
.vela-acento { stroke: var(--acento); opacity: .75; }

/* ---------- Botones ---------- */
.botones { display: flex; flex-direction: column; gap: 16px; }

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 16px 32px;
  border: 1.5px solid transparent;
  border-radius: var(--pildora);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.005em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.boton-principal { background: var(--acento-boton); color: #fff; box-shadow: var(--sombra-boton); }
.boton-principal:hover { background: var(--acento-boton-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(166, 70, 7, .32); }
.boton-principal:active { transform: translateY(0); box-shadow: 0 4px 12px rgba(166, 70, 7, .28); }
.boton-secundario { background: transparent; border-color: var(--acento-texto); color: var(--acento-texto); }
.boton-secundario:hover { background: var(--acento-tenue); border-color: var(--acento-boton-hover); color: var(--acento-boton-hover); transform: translateY(-2px); }
.boton-chico { min-height: 40px; padding: 8px 20px; font-size: 14px; box-shadow: 0 4px 12px rgba(194, 84, 10, .22); }

.boton-texto {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 16px;
  background: none;
  border: 0;
  border-radius: var(--pildora);
  color: var(--texto-suave);
  font: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--velas);
  text-underline-offset: 4px;
  cursor: pointer;
}
.boton-texto:hover { color: var(--texto); text-decoration-color: currentColor; }

/* ---------- Menú superior fijo (R5 §4.2) ---------- */
.encabezado {
  position: fixed;
  inset: var(--alto-banda) 0 auto 0;
  z-index: 65;
  background: transparent;
  border: 0;
}
.encabezado::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
}
.encabezado.con-vidrio::before,
.encabezado.vidrio::before {
  opacity: 1;
}
html.menu-abierto .encabezado::before {
  opacity: 0;
}
.encabezado-fila {
  position: relative;
  z-index: 68;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--alto-menu);
}
.menu-logo {
  display: inline-flex;
  align-items: center;
  flex: none;
  text-decoration: none;
  border-radius: 10px;
}
.menu-logo img {
  width: 123px;
  height: 40px;
  display: block;
}
.menu-nav,
.menu-cta {
  display: none;
}
.menu-lista {
  display: flex;
  align-items: center;
  gap: 14px;
}
.menu-enlace {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 2px;
  color: var(--texto);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease;
}
.menu-enlace:hover {
  color: var(--acento-profundo);
}
.menu-enlace[aria-current="true"] {
  color: var(--acento-texto);
  font-weight: 700;
}
.menu-enlace[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--acento);
}
.menu-cta {
  flex: none;
  gap: 6px;
  min-height: 40px;
  padding: 8px 16px;
  font-size: 14px;
}
.menu-cta .icono,
.menu-movil-cta .icono {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}
.menu-hamburguesa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: color-mix(in srgb, var(--superficie) 84%, transparent);
  border: 1px solid var(--linea);
  border-radius: 12px;
  color: var(--texto);
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease;
}
.menu-hamburguesa:hover {
  background: var(--superficie);
  border-color: var(--acento-texto);
}
.menu-hamburguesa-icono {
  position: relative;
  width: 20px;
  height: 14px;
  display: block;
}
.menu-hamburguesa-icono i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s ease, top .2s ease, opacity .18s ease;
}
.menu-hamburguesa-icono i:nth-child(1) { top: 0; }
.menu-hamburguesa-icono i:nth-child(2) { top: 6px; }
.menu-hamburguesa-icono i:nth-child(3) { top: 12px; }
.menu-hamburguesa[aria-expanded="true"] .menu-hamburguesa-icono i:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}
.menu-hamburguesa[aria-expanded="true"] .menu-hamburguesa-icono i:nth-child(2) {
  opacity: 0;
}
.menu-hamburguesa[aria-expanded="true"] .menu-hamburguesa-icono i:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}
#menu-movil-panel {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 66;
  padding: calc(var(--alto-menu) + 16px) 24px calc(24px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(251, 248, 244, .96);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
}
#menu-movil-panel[hidden] {
  display: none !important;
}
.menu-movil-interior {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  min-height: 100%;
  padding-inline: 0;
}
.menu-movil-lista {
  display: grid;
  gap: 4px;
}
.menu-movil-lista .menu-enlace {
  width: 100%;
  min-height: 48px;
  padding: 10px 4px;
  font-size: 20px;
  font-weight: 700;
  border-bottom: 1px solid color-mix(in srgb, var(--linea) 70%, transparent);
}
.menu-movil-lista .menu-enlace[aria-current="true"]::after {
  width: 40px;
  right: auto;
  bottom: -1px;
}
.menu-movil-cta {
  width: 100%;
}
html.menu-abierto,
html.menu-abierto body {
  overflow: hidden !important;
}
html.menu-abierto .flotante-asesor,
html.menu-abierto .cookies {
  display: none !important;
}
@media (min-width: 961px) {
  :root {
    --alto-menu: 64px;
  }
  .menu-hamburguesa,
  .menu-movil {
    display: none !important;
  }
  .menu-nav {
    display: block;
  }
  .menu-cta {
    display: inline-flex;
  }
}
@media (min-width: 1180px) {
  .menu-lista {
    gap: 20px;
  }
}

/* ---------- Hero (R5 §5.1 · video vertical 9:16) ---------- */
.hero { padding-top: calc(var(--alto-menu) + 16px); }
.hero-rejilla { display: grid; gap: 28px; margin-top: 8px; }
.hero-media { position: relative; order: -1; display: flex; justify-content: center; width: 100%; }
.hero-video-tarjeta {
  position: relative;
  width: 100%;
  max-height: 65vh;
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  border: 1px solid color-mix(in srgb, var(--superficie) 72%, var(--linea));
  box-shadow: var(--sombra-alta);
  background: var(--fondo-banda);
  overflow: hidden;
}
.hero-video,
.hero-poster-respaldo,
.hero-poster-respaldo img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 65vh;
  object-fit: cover;
  object-position: center 60%;
}
html.hero-solo-poster .hero-video {
  display: none !important;
}
html.hero-solo-poster .hero-poster-respaldo {
  display: block !important;
}
.hero-video::cue {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.38;
  color: #fff;
  background-color: rgba(0, 0, 0, .55);
  border-radius: 6px;
}
@media (min-width: 480px) {
  .hero-video::cue {
    font-size: 16px;
  }
}
.hero-sonido {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px 8px 13px;
  border-radius: var(--pildora);
  color: var(--texto);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.005em;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.hero-sonido:hover {
  background: color-mix(in srgb, var(--superficie) 94%, transparent);
  border-color: color-mix(in srgb, var(--acento) 45%, var(--superficie));
  transform: translateY(-1px);
}
.hero-sonido:active {
  transform: translateY(0);
}
.hero-sonido:focus-visible {
  border-radius: var(--pildora);
  outline: 3px solid var(--texto);
  outline-offset: 3px;
}
.hero-sonido-icono {
  width: 20px;
  height: 20px;
  stroke: var(--acento-profundo);
  stroke-width: 1.75;
}
.hero-sonido-cruce {
  display: none;
}
.hero-sonido[aria-pressed="true"] .hero-sonido-ondas {
  display: none;
}
.hero-sonido[aria-pressed="true"] .hero-sonido-cruce {
  display: inline;
}
@media (prefers-reduced-motion: reduce) {
  .hero-sonido,
  .hero-sonido:hover {
    transition: none;
    transform: none;
  }
}
@media (min-width: 961px) {
  .hero-rejilla {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    gap: 64px;
    align-items: center;
    margin-top: 24px;
  }
  .hero-media {
    order: 2;
    justify-content: flex-end;
  }
  .hero-media::before {
    content: "";
    position: absolute;
    inset: -20px -24px -28px 24px;
    background: radial-gradient(circle at 60% 50%, color-mix(in srgb, var(--acento) 22%, var(--acento-tenue)) 0%, transparent 72%);
    border-radius: 40px;
    pointer-events: none;
    z-index: 0;
  }
  .hero-video-tarjeta {
    position: relative;
    z-index: 1;
    width: min(100%, 400px);
    max-height: none;
    aspect-ratio: 9 / 16;
    border-radius: 28px;
    border: 1px solid color-mix(in srgb, var(--superficie) 75%, var(--linea));
    box-shadow: var(--sombra-alta);
  }
  .hero-video,
  .hero-poster-respaldo,
  .hero-poster-respaldo img {
    max-height: none;
    object-position: center 50%;
  }
}
.hero-texto h1 { margin-top: 16px; }
.hero-texto .subtitulo { margin-top: 24px; font-size: 18px; }
.hero-texto .apoyo { margin-top: 16px; color: var(--texto-suave); }
.hero-texto .botones { margin-top: 32px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px 8px 12px;
  background: var(--superficie);
  border: 1px solid var(--linea);
  border-radius: var(--pildora);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}
.chips .icono { width: 20px; height: 20px; }

/* ---------- R5 §6 · Webinar del 5 de diciembre ---------- */
@media screen {
  html.evento-activo #webinar[hidden],
  html.evento-activo #evento[hidden] {
    display: block !important;
  }
}
.seccion-evento {
  margin: 16px 0 32px;
  padding: 48px 0;
  background-color: var(--fondo-banda);
  border-block: 1px solid var(--linea);
}
.seccion-evento.con-fondo {
  background-image:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--fondo) 85%, transparent) 0%,
      color-mix(in srgb, var(--fondo) 85%, transparent) 30%,
      color-mix(in srgb, var(--fondo) 35%, transparent) 45%,
      color-mix(in srgb, var(--fondo) 35%, transparent) 100%
    ),
    url("../img/evento-fondo.webp?v=r8");
  background-size: cover;
  background-position: center, 80% bottom;
  background-repeat: no-repeat;
}
.seccion-evento .linea-superior {
  color: var(--acento-profundo);
}
.evento-cabecera {
  display: grid;
  gap: 24px;
  align-items: start;
}
.evento-intro h2 {
  margin-top: 16px;
}
.webinar-frase {
  margin-top: 16px;
  color: var(--acento-profundo);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}
.evento-organizan {
  margin-top: 10px;
  color: color-mix(in srgb, var(--texto) 84%, var(--texto-suave));
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
}
.webinar-cuenta {
  padding: 12px 16px;
  background: color-mix(in srgb, var(--superficie) 66%, var(--acento-tenue));
  border: 1px solid color-mix(in srgb, var(--acento) 28%, var(--linea));
  border-radius: 12px;
  color: var(--acento-profundo);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}
.webinar-acciones {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.webinar-acciones .boton {
  width: 100%;
  min-height: 52px;
  padding: 12px 20px;
}
.webinar-acciones .boton-secundario {
  background: color-mix(in srgb, var(--superficie) 82%, transparent);
  border-color: var(--acento-profundo);
  color: var(--acento-profundo);
}
.webinar-acciones .boton-secundario:hover {
  background: var(--acento-tenue);
  border-color: var(--acento-boton-hover);
  color: var(--acento-boton-hover);
}
.webinar-acciones .boton .icono {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}
.webinar-temario {
  margin-top: 32px;
}
.evento-ficha-fecha {
  display: grid;
  gap: 16px;
  padding: 24px 20px;
  border-radius: var(--radio-tarjeta);
  border-color: color-mix(in srgb, var(--linea) 75%, var(--superficie));
}
.evento-pieza-fecha {
  display: flex;
  align-items: center;
  gap: 16px;
}
.evento-dia {
  color: var(--acento-profundo);
  font-size: 52px;
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.evento-mes-anio {
  padding-left: 16px;
  border-left: 1.5px solid var(--linea);
  color: var(--texto);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .07em;
}
.evento-horario {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--texto);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}
.evento-horario .icono {
  width: 20px;
  height: 20px;
}
.evento-cuenta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.evento-cuenta-celda {
  display: grid;
  gap: 2px;
  padding: 10px 8px;
  background: color-mix(in srgb, var(--superficie) 52%, transparent);
  border: 1px solid color-mix(in srgb, var(--linea) 80%, var(--superficie));
  border-radius: 12px;
  text-align: center;
}
.evento-cuenta-num {
  color: var(--texto);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.evento-cuenta-etiq {
  color: color-mix(in srgb, var(--texto) 62%, var(--texto-suave));
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .02em;
}
.evento-lugar {
  display: grid;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--linea);
}
.evento-direccion {
  color: color-mix(in srgb, var(--texto) 62%, var(--texto-suave));
  font-size: 15px;
  line-height: 1.45;
}
.evento-mapa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  min-height: 36px;
  color: var(--acento-profundo);
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--velas);
  text-underline-offset: 4px;
}
.evento-mapa:hover {
  color: var(--acento-boton-hover);
  text-decoration-color: currentColor;
}
.evento-mapa .icono {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}
.evento-cuerpo {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}
.evento-subtitulo {
  margin-bottom: 14px;
  color: var(--texto);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.evento-agenda {
  display: grid;
  gap: 12px;
  counter-reset: agenda;
}
.evento-agenda li {
  counter-increment: agenda;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 18px 20px;
  border-radius: 16px;
  border-color: color-mix(in srgb, var(--linea) 75%, var(--superficie));
}
.evento-agenda li::before {
  content: counter(agenda, decimal-leading-zero);
  color: var(--acento-profundo);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.evento-agenda p {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}
.evento-publico {
  display: grid;
  gap: 12px;
}
.evento-publico-tarjeta {
  padding: 20px;
  border-radius: 16px;
  border-color: color-mix(in srgb, var(--linea) 75%, var(--superficie));
}
.evento-publico-tarjeta h4 {
  margin: 0;
  color: var(--texto);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}
.evento-publico-tarjeta p {
  margin-top: 6px;
  color: color-mix(in srgb, var(--texto) 62%, var(--texto-suave));
  font-size: 15px;
  line-height: 1.45;
}
.evento-confirmacion {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  padding: 24px 20px;
  border-radius: var(--radio-tarjeta);
  border-color: color-mix(in srgb, var(--acento) 28%, var(--linea));
}
.evento-confirmacion-texto {
  color: var(--texto);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}
.evento-confirmacion-botones {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.evento-confirmacion-botones .boton {
  min-height: 52px;
  padding: 12px 24px;
  font-variant-numeric: tabular-nums;
}
.evento-confirmacion-botones .boton-secundario {
  background: color-mix(in srgb, var(--superficie) 82%, transparent);
  border-color: var(--acento-profundo);
  color: var(--acento-profundo);
}
.evento-confirmacion-botones .boton-secundario:hover {
  background: var(--acento-tenue);
  border-color: var(--acento-boton-hover);
  color: var(--acento-boton-hover);
}
.evento-confirmacion-botones .boton .icono {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}
@media (min-width: 640px) {
  .evento-ficha-fecha {
    padding: 28px;
  }
  .webinar-acciones {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .webinar-acciones .boton {
    width: auto;
    flex: 1 1 200px;
  }
  .evento-confirmacion {
    padding: 24px 28px;
  }
  .evento-confirmacion-botones {
    flex-direction: row;
    flex-wrap: wrap;
  }
}
@media (min-width: 960px) {
  .seccion-evento {
    margin: 24px 0 48px;
    padding: 64px 0;
  }
  .evento-cabecera {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 48px;
    align-items: center;
  }
  .webinar-frase {
    font-size: 24px;
  }
  .webinar-temario {
    margin-top: 40px;
  }
  .webinar-lista {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .evento-dia {
    font-size: 64px;
  }
  .evento-cuerpo {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 48px;
    margin-top: 40px;
    align-items: start;
  }
  .evento-confirmacion {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 32px;
    margin-top: 32px;
    padding: 28px 36px;
  }
}
@media (min-width: 1024px) {
  .seccion-evento.con-fondo {
    background-image:
      linear-gradient(
        90deg,
        color-mix(in srgb, var(--fondo) 80%, transparent) 0%,
        color-mix(in srgb, var(--fondo) 70%, transparent) 42%,
        color-mix(in srgb, var(--fondo) 15%, transparent) 62%,
        transparent 100%
      ),
      url("../img/evento-fondo.webp?v=r8");
    background-position: center, right bottom;
  }
}

/* ---------- Cómo funciona ---------- */
.dos-columnas { display: grid; gap: 32px; align-items: center; }
.columna-texto > * + * { margin-top: 24px; }
.dos-columnas .imagen { aspect-ratio: 16 / 10; }

.pasos { display: grid; gap: 16px; margin-top: 24px; counter-reset: paso; }
.pasos li {
  counter-increment: paso;
  padding: 32px 24px;
  background: var(--superficie);
  border: 1px solid var(--linea);
  border-radius: var(--radio-tarjeta);
  box-shadow: var(--sombra-tarjeta);
}
.pasos li::before {
  content: counter(paso, decimal-leading-zero);
  display: block;
  margin-bottom: 16px;
  color: var(--acento-numero);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
}

.liquidez { display: grid; gap: 16px; margin-top: 24px; }
.liquidez li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  background: var(--superficie);
  border: 1px solid var(--linea);
  border-radius: var(--radio-tarjeta);
}
.liquidez .icono { width: 48px; height: 48px; padding: 12px; background: var(--acento-tenue); border-radius: 16px; }
.liquidez p { font-size: 16px; }

.cierre-banda {
  display: grid;
  gap: 24px;
  margin-top: 48px;
  padding: 32px 24px;
  background: var(--acento-tenue);
  border-radius: var(--radio-imagen);
}
.cierre { font-size: 20px; font-weight: 500; line-height: 1.4; letter-spacing: -.01em; }

/* ---------- Simulador ---------- */
.seccion-simulador {
  background: var(--fondo) url("../img/fondo-simulador.webp") center / cover no-repeat;
  border-block: 1px solid var(--linea);
}
.sim-encabezado { max-width: 720px; margin: 0 auto; text-align: center; }
.sim-encabezado .entrada { margin-top: 16px; color: var(--texto); }
.sim {
  max-width: 720px;
  margin: 40px auto 0;
  padding: 32px 24px;
  background: var(--superficie);
  border: 1px solid var(--linea);
  border-radius: var(--radio-imagen);
  box-shadow: var(--sombra-alta);
}
.sim.sim-ancho { max-width: 880px; }
.sim-pantalla > * + * { margin-top: 24px; }
.sim-pantalla[data-pantalla="inicio"] { display: flex; justify-content: center; padding: 16px 0; }
.sim-pantalla[data-pantalla="inicio"] .boton { min-width: 216px; }

.avance-texto { font-size: 14px; font-weight: 700; color: var(--texto-suave); letter-spacing: .02em; }
.avance-barra { margin-top: 8px; height: 8px; background: var(--linea); border-radius: var(--pildora); overflow: hidden; }
.avance-barra span { display: block; height: 100%; width: 0; background: var(--acento); border-radius: var(--pildora); transition: width .3s ease; }

.sim-pregunta { font-size: 24px; line-height: 1.2; letter-spacing: -.02em; }
.sim-pregunta:focus { outline: none; }
.sim-opciones { display: grid; gap: 16px; }
.opcion {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 72px;
  padding: 16px 24px;
  background: var(--superficie);
  border: 1.5px solid var(--linea);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(43, 42, 40, .04);
  color: var(--texto);
  font: inherit;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.opcion::before {
  content: "";
  flex: none;
  width: 24px;
  height: 24px;
  border: 1.5px solid #A39B91;
  border-radius: 50%;
  background: var(--superficie);
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.opcion:hover { border-color: var(--acento-texto); transform: translateY(-2px); box-shadow: var(--sombra-tarjeta); }
.opcion:hover::before { border-color: var(--acento-texto); }
.opcion[aria-pressed="true"] { border-color: var(--acento-boton); background: var(--acento-tenue); box-shadow: 0 0 0 3px rgba(240, 122, 26, .18); font-weight: 700; }
.opcion[aria-pressed="true"]::before {
  border-color: var(--acento-boton);
  background: var(--acento-boton) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* ---------- Formularios ---------- */
.formulario { display: grid; gap: 24px; }
.campo label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.campo input[type="text"],
.campo input[type="email"],
.campo input[type="tel"],
.campo input[type="number"] {
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  background: var(--superficie);
  border: 1.5px solid #A39B91;
  border-radius: var(--radio-campo);
  color: var(--texto);
  font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.campo input:hover { border-color: var(--texto-suave); }
.campo input:focus-visible { outline: none; border-color: var(--acento-boton); box-shadow: 0 0 0 4px rgba(240, 122, 26, .25); }
.campo input[type="checkbox"]:focus-visible { outline: 3px solid var(--texto); outline-offset: 3px; box-shadow: none; }
.campo input[aria-invalid="true"] { border-color: #B3261E; }
.campo-casilla { display: grid; grid-template-columns: 24px 1fr; gap: 4px 16px; align-items: start; }
.campo-casilla input { width: 24px; height: 24px; margin: 0; accent-color: var(--acento-boton); }
.campo-casilla label { margin: 0; font-size: 15px; font-weight: 400; }
.campo-casilla .error { grid-column: 2; }
.error { margin-top: 8px; color: #B3261E; font-size: 14px; font-weight: 500; }

/* ---------- Resultado del simulador ---------- */
.resultado-titulo { font-size: 28px; line-height: 1.15; letter-spacing: -.02em; }
.resultado-titulo:focus { outline: none; }
.resultado-titulo span { color: var(--acento-texto); }
.resultado-puntaje { margin-top: 8px; font-size: 15px; font-weight: 500; color: var(--texto-suave); font-variant-numeric: tabular-nums; }
.resultado-puntaje .enlace-ajustar { font-weight: 700; text-underline-offset: 3px; }
#res-texto { font-size: 18px; color: var(--texto-suave); margin-top: 8px; }

.resultado-rejilla { display: grid; gap: 24px; margin-top: 32px; }
.barras-bloque { display: grid; gap: 10px; align-content: start; }
.barras-leyenda {
  font-size: 13px;
  color: var(--texto-suave);
  line-height: 1.45;
  margin-bottom: 4px;
}
.barras-leyenda strong {
  color: var(--texto);
  font-weight: 700;
}
.barras { display: grid; gap: 16px; align-content: start; }
.barra-fila {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 6px 16px;
}
.barra-nombre {
  font-size: 15px;
  font-weight: 700;
  color: var(--texto);
}
.barra-datos {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 2px 8px;
  font-variant-numeric: tabular-nums;
}
.barra-dato {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}
.calc-etq {
  font-size: 13px;
  font-weight: 500;
  color: var(--texto-suave);
}
.barra-dato strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--texto);
}
.barra-sep {
  color: var(--texto-suave);
  font-weight: 500;
}
@media (max-width: 480px) {
  .barra-fila {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .barra-datos {
    justify-content: flex-start;
    gap: 2px 5px;
    margin-bottom: 2px;
  }
  .barra-datos .calc-etq {
    font-size: 12px;
  }
  .barra-datos strong {
    font-size: 13.5px;
  }
}
@media (max-width: 360px) {
  .barra-datos {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .barra-sep {
    display: none;
  }
}
.barra-fila .barra-pista { grid-column: 1 / -1; height: 12px; background: var(--linea); border-radius: var(--pildora); overflow: hidden; }
.barra-fila .barra-relleno { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--acento), #F59A4A); border-radius: var(--pildora); transition: width .9s cubic-bezier(.2, .7, .2, 1); }
.barra-fila.vacia .barra-nombre,
.barra-fila.vacia .barra-dato strong { color: var(--texto-suave); font-weight: 500; }

.riesgos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.riesgos div { padding: 16px; background: var(--fondo); border: 1px solid var(--linea); border-radius: 16px; }
.riesgos dt { font-size: 13px; font-weight: 500; color: var(--texto-suave); line-height: 1.3; }
.riesgos dd { margin-top: 8px; font-size: 28px; font-weight: 700; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

.tabla-envoltura { margin: 32px -8px 0; overflow-x: auto; border-radius: 16px; }
.tabla-proyeccion { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.tabla-proyeccion th, .tabla-proyeccion td { padding: 12px 6px; text-align: right; white-space: nowrap; }
.tabla-proyeccion th:first-child, .tabla-proyeccion td:first-child { text-align: left; padding-left: 12px; }
.tabla-proyeccion th:last-child, .tabla-proyeccion td:last-child { padding-right: 12px; }
.tabla-proyeccion thead th { vertical-align: bottom; font-weight: 700; }
.tabla-proyeccion thead tr:first-child th[colspan] { text-align: center; padding-bottom: 4px; }
.tabla-proyeccion thead tr:first-child th[colspan] span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: var(--pildora);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: normal;
}
.col-perfil span { background: var(--acento-boton); color: #fff; }
.col-cetes span { background: var(--superficie); border: 1px solid #A39B91; color: var(--texto-suave); }
.tabla-proyeccion thead tr:last-child th { padding-top: 4px; font-size: 12px; font-weight: 500; color: var(--texto-suave); white-space: normal; line-height: 1.25; border-bottom: 1px solid var(--linea); }
.tabla-proyeccion tbody th { font-weight: 700; }
.tabla-proyeccion tbody tr:nth-child(even) > * { background: var(--fondo); }
.tabla-proyeccion td:nth-child(2), .tabla-proyeccion td:nth-child(3) { font-weight: 700; color: var(--texto); }
.tabla-proyeccion tbody td:nth-child(2), .tabla-proyeccion tbody td:nth-child(3) { background: var(--acento-tenue); }
.tabla-proyeccion tbody tr:nth-child(even) td:nth-child(2), .tabla-proyeccion tbody tr:nth-child(even) td:nth-child(3) { background: #FAE6D3; }
.tabla-proyeccion td:nth-child(4), .tabla-proyeccion td:nth-child(5) { color: var(--texto-suave); }
.tabla-proyeccion tbody tr:first-child td:nth-child(2) { border-top-left-radius: 12px; }
.tabla-proyeccion tbody tr:first-child td:nth-child(3) { border-top-right-radius: 12px; }
.tabla-proyeccion tbody tr:last-child td:nth-child(2) { border-bottom-left-radius: 12px; }
.tabla-proyeccion tbody tr:last-child td:nth-child(3) { border-bottom-right-radius: 12px; }

.aviso-chico { font-size: 14px; color: var(--texto-suave); }
.botones-columna { align-items: stretch; margin-top: 32px; }

/* ---------- R2.2 · Panel "Ajusta tu propuesta" ---------- */
.sim-pantalla[data-pantalla="resultado"].en-espera .resultado-rejilla,
.sim-pantalla[data-pantalla="resultado"].en-espera .grafica-bloque,
.sim-pantalla[data-pantalla="resultado"].en-espera .tabla-envoltura {
  opacity: .36;
  pointer-events: none;
  transition: opacity .2s ease;
}
.panel-propuesta {
  margin-top: 32px;
  padding: 24px 16px;
  background: var(--fondo);
  border: 1px solid var(--linea);
  border-radius: var(--radio-tarjeta);
  display: grid;
  gap: 20px;
}
.panel-propuesta-encabezado {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}
.panel-propuesta-titulo {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.prop-montos {
  display: grid;
  gap: 16px;
}
@media (min-width: 640px) {
  .panel-propuesta { padding: 28px 24px; }
  .prop-montos { grid-template-columns: 1fr 1fr; }
}
.prop-productos {
  display: grid;
  gap: 12px;
}
.prop-fila-producto {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  padding: 12px 14px;
  background: var(--superficie);
  border: 1px solid var(--linea);
  border-radius: 14px;
}
.prop-prod-info {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 108px;
}
.prop-prod-info label {
  font-size: 15px;
  font-weight: 700;
  color: var(--texto);
}
.prop-prod-tasa {
  font-size: 13px;
  font-weight: 500;
  color: var(--texto-suave);
  font-variant-numeric: tabular-nums;
}
.prop-controles {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.boton-paso {
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--fondo);
  border: 1.5px solid var(--linea);
  border-radius: 12px;
  color: var(--texto);
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.boton-paso:hover {
  border-color: var(--acento-texto);
  background: var(--acento-tenue);
}
.prop-input-pct {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0 8px;
  height: 40px;
  background: var(--superficie);
  border: 1.5px solid #A39B91;
  border-radius: 12px;
  font-variant-numeric: tabular-nums;
}
.prop-input-pct:focus-within {
  border-color: var(--acento-boton);
  box-shadow: 0 0 0 3px rgba(240, 122, 26, .22);
}
.prop-input-pct input {
  width: 44px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--texto);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-align: right;
  appearance: textfield;
  -moz-appearance: textfield;
}
.prop-input-pct input::-webkit-outer-spin-button,
.prop-input-pct input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.prop-input-pct input:focus {
  outline: none;
}
.prop-input-pct span {
  font-size: 14px;
  font-weight: 700;
  color: var(--texto-suave);
}
.prop-suma-estado {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding: 12px 14px;
  background: var(--superficie);
  border: 1px solid var(--linea);
  border-radius: 12px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.prop-suma-estado.es-invalida {
  border-color: var(--acento-oscuro);
  background: var(--acento-tenue);
  color: var(--acento-profundo);
}
.prop-suma-estado span {
  font-weight: 500;
}

/* ---------- R2.3 · Propuestas guardadas (A, B, C) ---------- */
.prop-bloque-guardar {
  padding-top: 16px;
  border-top: 1px solid var(--linea);
  display: grid;
  gap: 16px;
}
.prop-acciones-fila {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.prop-acciones-fila .boton {
  flex: 1 1 200px;
  min-height: 48px;
  padding: 10px 18px;
}
.prop-acciones-fila .boton:disabled {
  opacity: .52;
  cursor: not-allowed;
  transform: none;
}
.prop-tarjetas {
  display: grid;
  gap: 10px;
}
.prop-tarjetas:empty {
  display: none;
}
.prop-tarjeta-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 14px;
  background: var(--superficie);
  border: 1px solid var(--linea);
  border-radius: 14px;
}
.prop-tarjeta-titulo {
  font-size: 15px;
  font-weight: 700;
  color: var(--texto);
}
.prop-tarjeta-detalle {
  margin-top: 2px;
  font-size: 13px;
  color: var(--texto-suave);
  font-variant-numeric: tabular-nums;
}
.prop-tarjeta-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.boton-chico-accion {
  min-height: 36px;
  padding: 6px 12px;
  background: var(--fondo);
  border: 1px solid var(--linea);
  border-radius: var(--pildora);
  color: var(--texto);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.boton-chico-accion:hover:not(:disabled) {
  border-color: var(--acento-texto);
  background: var(--acento-tenue);
  color: var(--acento-profundo);
}
.boton-chico-accion:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.texto-opcional {
  font-weight: 400;
  color: var(--texto-suave);
}
.impresion-propuestas {
  display: none;
}

/* ---------- Catálogo ---------- */
.encabezado-seccion { display: grid; gap: 24px; justify-items: start; }
.encabezado-seccion .boton { width: 100%; }
.tarjetas { display: grid; gap: 24px; margin-top: 40px; }
.tarjetas-rejilla { display: grid; gap: 24px; }

.tarjeta {
  display: flex;
  flex-direction: column;
  background: var(--superficie);
  border: 1px solid var(--linea);
  border-radius: var(--radio-tarjeta);
  box-shadow: var(--sombra-tarjeta);
  overflow: hidden;
}
.tarjeta-imagen { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tarjeta-cuerpo { display: flex; flex-direction: column; gap: 16px; padding: 32px 24px; flex: 1; }
.tarjeta-cuerpo > p { color: var(--texto-suave); }
.tarjeta-cuerpo .boton { align-self: stretch; margin-top: auto; }
.tarjeta-cuerpo .ficha { margin-bottom: 8px; }
.tarjeta-estrella { border-color: #F3C9A3; }
.tarjeta-estrella h3 { font-size: 24px; letter-spacing: -.02em; }
.tarjeta-estrella .tarjeta-cuerpo > p { font-size: 18px; }

.etiqueta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 4px 16px;
  border-radius: var(--pildora);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.etiqueta-estrella { background: var(--acento-boton); color: #fff; }
.etiqueta-estrella::before { content: "★"; font-size: 13px; line-height: 1; }

.ficha { display: grid; border-top: 1px solid var(--linea); }
.ficha div { display: grid; grid-template-columns: 104px 1fr; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--linea); }
.ficha dt { color: var(--texto-suave); font-size: 14px; }
.ficha dd { font-weight: 700; font-size: 15px; line-height: 1.4; }

/* Riesgo: siempre con texto; el color solo acompaña */
.riesgo { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; padding: 2px 12px; border-radius: var(--pildora); font-size: 13px; font-weight: 700; white-space: nowrap; }
.riesgo::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.riesgo-bajo { color: #2A6336; background: #E7F3E9; }
.riesgo-medio { color: #7A4F00; background: #FFF1CC; }
.riesgo-medio-alto { color: #8A3A0A; background: #FDE7D6; }
.riesgo-alto { color: #9E261D; background: #FBE6E3; }

.banner-aprende {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 16px 24px;
  background: var(--fondo);
  border-top: 1px solid var(--linea);
  color: var(--texto-suave);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.banner-aprende .icono { width: 20px; height: 20px; transition: transform .18s ease; }
.banner-aprende:hover { background: var(--acento-tenue); color: var(--acento-profundo); }
.banner-aprende:hover .icono { transform: translateX(4px); }

/* ---------- Para quién es ---------- */
.seccion-banda { background: var(--fondo-banda); border-block: 1px solid var(--linea); }
.perfiles {
  display: flex;
  gap: 16px;
  margin: 32px calc(-1 * var(--margen)) -24px;
  padding: 8px var(--margen) 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--margen);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.perfiles::-webkit-scrollbar { display: none; }
.perfil { flex: 0 0 min(80%, 304px); scroll-snap-align: start; }
.perfil .tarjeta-cuerpo { padding: 24px; }
.perfil .tarjeta-cuerpo > p { flex: 1; font-size: 15px; }
.perfil .ficha div { grid-template-columns: 1fr auto; }
.perfil .ficha dt { font-size: 13px; line-height: 1.3; }
.perfil .ficha dd { font-variant-numeric: tabular-nums; white-space: nowrap; }
.perfil .ficha .ficha-dist { grid-template-columns: 1fr; gap: 4px; }
.perfil .ficha .ficha-dist dd { white-space: normal; font-size: 13px; font-weight: 500; color: var(--texto); }
.perfil .boton { min-height: 48px; padding: 12px 24px; }

.nivel { display: flex; align-items: flex-end; gap: 4px; height: 32px; }
.nivel i { width: 8px; border-radius: 2px; background: var(--linea); }
.nivel i:nth-child(1) { height: 30%; }
.nivel i:nth-child(2) { height: 45%; }
.nivel i:nth-child(3) { height: 62%; }
.nivel i:nth-child(4) { height: 80%; }
.nivel i:nth-child(5) { height: 100%; }
.nivel[data-nivel="1"] i:nth-child(-n+1),
.nivel[data-nivel="2"] i:nth-child(-n+2),
.nivel[data-nivel="3"] i:nth-child(-n+3),
.nivel[data-nivel="4"] i:nth-child(-n+4),
.nivel[data-nivel="5"] i:nth-child(-n+5) { background: var(--acento); }

/* ---------- Historia ---------- */
.historia-rejilla { display: grid; gap: 40px; }
.historia-intro .entrada { margin-top: 16px; }
.historia-intro .imagen { margin-top: 32px; aspect-ratio: 16 / 10; }

.linea-tiempo { position: relative; }
.linea-tiempo::before { content: ""; position: absolute; left: 7.5px; top: 8px; bottom: 8px; width: 1px; background: var(--velas); }
.linea-tiempo li { position: relative; padding: 0 0 32px 40px; }
.linea-tiempo li:last-child { padding-bottom: 0; }
.linea-tiempo li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--acento);
  box-shadow: 0 0 0 4px var(--fondo), 0 0 0 5px #F3C9A3;
}
.anio { display: block; color: var(--acento-texto); font-size: 20px; font-weight: 700; line-height: 1.4; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.linea-tiempo p { margin-top: 4px; }

.destacado {
  position: relative;
  padding: 32px 24px 32px 32px;
  background: var(--acento-tenue);
  border-radius: var(--radio-imagen);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -.01em;
  overflow: hidden;
}
.destacado::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--acento); }
.convenios { color: var(--texto-suave); padding-top: 32px; border-top: 1px solid var(--linea); }

/* ---------- Preguntas frecuentes ---------- */
.faq-rejilla { display: grid; gap: 32px; }
.acordeon { display: grid; gap: 12px; }
.acordeon details {
  background: var(--superficie);
  border: 1px solid var(--linea);
  border-radius: 16px;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.acordeon details[open] { border-color: #F3C9A3; box-shadow: var(--sombra-tarjeta); }
.acordeon summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 16px 16px 24px;
  border-radius: 16px;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.acordeon summary::-webkit-details-marker { display: none; }
.acordeon summary .icono { width: 32px; height: 32px; padding: 6px; background: var(--acento-tenue); border-radius: 50%; stroke: var(--acento-boton); transition: transform .25s ease, background-color .2s ease; }
.acordeon summary:hover .icono { background: #FAE0C8; }
.acordeon details[open] summary .icono { transform: rotate(45deg); }
.acordeon details > p { padding: 0 24px 24px; color: var(--texto-suave); max-width: 64ch; }
.acordeon details > p + p { margin-top: -8px; }
.acordeon details .boton { min-height: 48px; padding: 12px 24px; }
.faq-tabla-caja { padding: 0 16px 20px; }
.tabla-faq { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
@media (max-width: 639px) {
  .tabla-faq thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .tabla-faq,
  .tabla-faq tbody {
    display: grid;
    gap: 10px;
    width: 100%;
  }
  .tabla-faq tbody tr {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    background: var(--fondo);
    border: 1px solid var(--linea);
    border-radius: 12px;
  }
  .tabla-faq tbody th {
    font-weight: 700;
    color: var(--texto);
    text-align: left;
    line-height: 1.35;
  }
  .tabla-faq tbody td {
    color: var(--texto-suave);
    line-height: 1.45;
  }
}
@media (min-width: 640px) {
  .faq-tabla-caja { padding: 0 32px 28px; }
  .tabla-faq {
    border: 1px solid var(--linea);
    border-radius: 12px;
    overflow: hidden;
  }
  .tabla-faq th,
  .tabla-faq td {
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--linea);
  }
  .tabla-faq thead th {
    background: var(--fondo-pie);
    color: var(--texto);
    font-size: 13px;
    font-weight: 700;
  }
  .tabla-faq tbody tr:last-child th,
  .tabla-faq tbody tr:last-child td {
    border-bottom: 0;
  }
  .tabla-faq tbody th {
    width: 42%;
    font-weight: 700;
    color: var(--texto);
  }
  .tabla-faq tbody td {
    color: var(--texto-suave);
  }
}

/* ---------- Avisos y pie ---------- */
.pie { margin-top: 40px; padding: 72px 0 120px; background: var(--fondo-pie); border-top: 1px solid var(--linea); }
.pie-velas { color: var(--velas); margin-bottom: 32px; }
.pie-velas svg { width: 168px; height: 40px; }
.pie-rejilla { display: grid; gap: 32px; }
.aviso-riesgo { margin-top: 16px; max-width: 56ch; font-size: 16px; font-weight: 500; }
.enlaces-pie { display: grid; gap: 0; }
.enlaces-pie a { display: inline-flex; align-items: center; min-height: 48px; color: var(--texto); font-weight: 500; text-decoration: underline; text-decoration-color: var(--velas); text-underline-offset: 4px; }
.enlaces-pie a:hover { color: var(--acento-profundo); text-decoration-color: currentColor; }
.credito { margin-top: 40px; padding-top: 24px; border-top: 1px solid #E2D8CA; font-size: 13px; color: var(--texto-suave); }

/* ---------- Botón flotante ---------- */
.flotante-asesor {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 12px 24px 12px 16px;
  background: var(--superficie);
  border: 1px solid var(--linea);
  border-radius: var(--pildora);
  box-shadow: 0 12px 32px rgba(43, 42, 40, .18);
  color: var(--texto);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.flotante-asesor .icono { width: 32px; height: 32px; padding: 6px; background: var(--acento-boton); border-radius: 50%; stroke: #fff; }
.flotante-asesor:hover { transform: translateY(-2px); border-color: #F3C9A3; box-shadow: 0 16px 40px rgba(43, 42, 40, .22); color: var(--texto); }
.flotante-asesor.oculto-por-panel {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
}

/* ---------- Modal ---------- */
.modal {
  width: min(100% - 32px, 480px);
  max-height: calc(100dvh - 32px);
  padding: 32px 24px;
  background: var(--superficie);
  border: 0;
  border-radius: var(--radio-imagen);
  box-shadow: 0 32px 80px rgba(43, 42, 40, .32);
  color: var(--texto);
}
.modal.vidrio {
  background: color-mix(in srgb, var(--superficie) 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--linea) 75%, var(--superficie));
}
.modal-chico { width: min(100% - 32px, 400px); }
.modal::backdrop { background: rgba(43, 42, 40, .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
html:not(.js) .modal[open] { animation: entra-modal .22s ease; }
.modal h2 { font-size: 24px; margin-top: 10px; padding-right: 40px; }
.modal-subtexto { margin-top: 6px; margin-bottom: 4px; color: var(--texto-suave); font-size: 15px; font-weight: 500; }
.modal .linea-superior { justify-self: start; }
.modal .formulario { gap: 18px; margin-top: 16px; }
.formulario-webinar .campo input[type="text"],
.formulario-webinar .campo input[type="email"],
.formulario-webinar .campo input[type="tel"],
#aprende-nombre {
  min-height: 48px;
  height: 48px;
  padding: 10px 14px;
}
.formulario-webinar .boton-principal,
#aprende-enviar {
  width: 100%;
}
.boton:disabled {
  opacity: .52;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.campo-trampa {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.webinar-alerta-red {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: var(--acento-tenue);
  border: 1px solid color-mix(in srgb, var(--acento) 35%, var(--linea));
  border-radius: 14px;
  color: var(--texto);
  font-size: 14px;
  font-weight: 500;
}
.webinar-alerta-red .boton {
  width: 100%;
  min-height: 48px;
  padding: 10px 18px;
}
.webinar-gracias {
  display: grid;
  gap: 16px;
}
.webinar-gracias h2 {
  font-size: 22px;
  line-height: 1.25;
}
.webinar-gracias h2:focus {
  outline: none;
}
.webinar-gracias-botones {
  margin-top: 8px;
  flex-direction: column;
  align-items: stretch;
}
.webinar-gracias-botones .boton {
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
}
.modal-cerrar {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  background: none;
  border: 0;
  border-radius: 50%;
  color: var(--texto-suave);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.modal-cerrar:hover { background: var(--fondo); color: var(--texto); }
@keyframes entra-modal { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Cookies ---------- */
.cookies {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px;
  background: var(--superficie);
  border: 1px solid var(--linea);
  border-radius: var(--radio-tarjeta);
  box-shadow: 0 16px 48px rgba(43, 42, 40, .22);
  font-size: 15px;
}
.cookies p { flex: 1 1 240px; }
.cookies .boton { min-height: 48px; padding: 8px 24px; }
@media (min-width: 961px) {
  .cookies {
    left: max(24px, calc((100vw - var(--ancho)) / 2));
    right: auto;
    margin: 0;
    max-width: min(680px, calc(56vw - 24px));
  }
}

/* ---------- Aviso de maqueta ---------- */
.aviso-maqueta {
  position: fixed;
  left: 50%;
  top: calc(var(--alto-banda) + var(--alto-encabezado) + 16px);
  z-index: 2147483647;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 16px 24px;
  background: var(--texto);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(43, 42, 40, .3);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}

/* ---------- Animaciones de entrada (solo si JS las activa) ---------- */
.animar [data-revelar] { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.animar [data-revelar].visible { opacity: 1; transform: none; }
.animar .pasos li:nth-child(2), .animar .liquidez li:nth-child(2), .animar .tarjetas-rejilla > :nth-child(2) { transition-delay: .08s; }
.animar .pasos li:nth-child(3), .animar .liquidez li:nth-child(3), .animar .tarjetas-rejilla > :nth-child(3) { transition-delay: .16s; }
.animar .liquidez li:nth-child(4) { transition-delay: .24s; }

/* ==========================================================================
   Tableta
   ========================================================================== */
@media (min-width: 640px) {
  .botones { flex-direction: row; flex-wrap: wrap; }
  .botones-columna { align-items: center; }
  .encabezado-seccion .boton { width: auto; }
  .tarjeta-cuerpo .boton { align-self: flex-start; }
  .perfil .tarjeta-cuerpo .boton { align-self: stretch; }
  .liquidez { grid-template-columns: 1fr 1fr; }
  .sim { padding: 48px; }
  .tabla-proyeccion { font-size: 15px; }
  .tabla-proyeccion th, .tabla-proyeccion td { padding: 12px 16px; }
  .tabla-proyeccion thead tr:last-child th { font-size: 13px; }
  .tabla-envoltura { margin-inline: 0; }
  .resultado-rejilla { grid-template-columns: 3fr 2fr; gap: 40px; align-items: start; }
  .riesgos { grid-template-columns: 1fr; }
  .cierre-banda { padding: 40px; }
  .modal { padding: 40px; }
  .flotante-asesor { right: 24px; bottom: 24px; }
}

/* ==========================================================================
   Escritorio
   ========================================================================== */
@media (min-width: 960px) {
  :root { --margen: 32px; --aire: 120px; }
  body { font-size: 18px; }
  h1 { font-size: 56px; line-height: 1.05; }
  h2 { font-size: 40px; line-height: 1.1; }
  h3 { font-size: 22px; }
  .entrada { font-size: 20px; }
  .subtitulo-bloque { margin-top: 96px; font-size: 28px; letter-spacing: -.02em; }

  .seccion { padding: 64px 0 56px; }               /* 64 + 56 = 120 px de aire entre secciones */
  .seccion-banda, .seccion-simulador { padding: var(--aire) 0; margin: 56px 0 64px; }
  .logo { font-size: 22px; }
  .encabezado .logo { font-size: 20px; }
  .boton-chico { min-height: 48px; padding: 8px 24px; font-size: 15px; }
  .menu-cta.boton-chico { min-height: 40px; padding: 8px 18px; font-size: 14px; }

  /* Hero: texto a la izquierda, video a la derecha */
  .hero { padding-top: calc(var(--alto-menu) + 28px); }
  .hero-texto h1 { margin-top: 24px; }
  .hero-texto .subtitulo { font-size: 20px; }
  .hero-texto .apoyo { font-size: 17px; }
  .hero-texto .botones { margin-top: 40px; }
  .chips { margin-top: 40px; }

  .dos-columnas { grid-template-columns: 1fr 1fr; gap: 72px; }
  .dos-columnas .imagen { aspect-ratio: 4 / 3; }
  .pasos { grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
  .pasos li { padding: 40px 32px; }
  .pasos li::before { font-size: 56px; margin-bottom: 24px; }
  .pasos p, .liquidez p { font-size: 16px; }
  .liquidez { grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 32px; }
  .liquidez li { flex-direction: column; padding: 32px 24px; }
  .cierre-banda { grid-template-columns: 1fr auto; align-items: center; gap: 48px; margin-top: 72px; padding: 48px 56px; }
  .cierre { font-size: 24px; line-height: 1.35; }

  .sim { margin-top: 56px; padding: 56px; }
  .sim-pregunta { font-size: 28px; }
  .resultado-titulo { font-size: 36px; }
  .riesgos dd { font-size: 32px; }

  .encabezado-seccion { grid-template-columns: 1fr auto; align-items: end; }
  .tarjetas { gap: 32px; margin-top: 56px; }
  .tarjetas-rejilla { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .tarjeta-cuerpo { padding: 32px; }
  .tarjeta-cuerpo > p { font-size: 16px; }
  .banner-aprende { padding: 16px 32px; }
  .tarjetas-rejilla .ficha div { grid-template-columns: 88px 1fr; }

  /* Producto estrella a todo lo ancho, imagen a la izquierda */
  .tarjeta-estrella { display: grid; grid-template-columns: 1fr 1fr; }
  .tarjeta-estrella .tarjeta-imagen { grid-row: 1 / span 2; height: 100%; aspect-ratio: auto; min-height: 100%; }
  .tarjeta-estrella .tarjeta-cuerpo { padding: 48px; gap: 20px; }
  .tarjeta-estrella h3 { font-size: 32px; line-height: 1.15; }
  .tarjeta-estrella .ficha div { grid-template-columns: 128px 1fr; }
  .tarjeta-estrella .banner-aprende { padding: 16px 48px; }

  .historia-rejilla { grid-template-columns: 1fr 1fr; gap: 56px 96px; align-items: start; }
  .historia-intro { grid-column: 1; grid-row: 1; }
  .linea-tiempo { grid-column: 2; grid-row: 1 / span 2; padding-top: 8px; }
  .destacado { grid-column: 1; grid-row: 2; padding: 40px 40px 40px 48px; font-size: 24px; line-height: 1.35; }
  .convenios { grid-column: 1 / -1; padding-top: 40px; font-size: 20px; text-align: center; }
  .linea-tiempo li { padding-bottom: 40px; }
  .anio { font-size: 22px; }

  .faq-rejilla { grid-template-columns: 4fr 8fr; gap: 64px; align-items: start; }
  .faq-rejilla > h2 { position: sticky; top: calc(var(--alto-banda) + var(--alto-encabezado) + 32px); }
  .acordeon summary { min-height: 72px; padding: 16px 24px 16px 32px; }
  .acordeon details > p { padding: 0 32px 32px; font-size: 17px; }

  .pie { margin-top: 64px; padding: 96px 0 72px; }
  .pie-rejilla { grid-template-columns: 1fr auto; gap: 96px; align-items: start; }
  .credito { margin-top: 56px; }
  .flotante-asesor { right: 32px; bottom: 32px; }
}

/* Para quién es: rejilla de 5 cuando cabe; antes, carrusel con scroll-snap */
@media (min-width: 1120px) {
  .perfiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin: 56px 0 0; padding: 0; overflow: visible; }
  .perfil .tarjeta-cuerpo { padding: 24px 20px; }
  .perfil h3 { font-size: 20px; }
  .perfil .tarjeta-cuerpo > p { font-size: 15px; }
  .perfil .boton { font-size: 15px; padding: 12px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .boton:hover, .opcion:hover, .flotante-asesor:hover { transform: none; }
}

/* ==========================================================================
   Ajustes de la revisión de diseño (ronda 1)
   ========================================================================== */
.chips li { padding: 8px 12px 8px 8px; font-size: 13px; gap: 6px; }

/* Etiqueta "Producto estrella": texto blanco sobre naranja */
.tarjeta-cuerpo > p.etiqueta-estrella { color: #fff; font-size: 12px; }

/* Simulador: velo claro para que las velas del fondo no crucen el texto */
.seccion-simulador {
  background:
    linear-gradient(180deg, rgba(251, 248, 244, .94) 0, rgba(251, 248, 244, .86) 280px, rgba(251, 248, 244, .35) 520px, rgba(251, 248, 244, .35) 100%),
    var(--fondo) url("../img/fondo-simulador.webp") center / cover no-repeat;
}

/* Separador de velas dentro de la sección que abre */
.separador { height: 40px; margin-bottom: 32px; }
.separador svg { transform: none; }
.seccion.con-separador { padding-top: 0; }

.convenios { text-wrap: balance; }

@media (min-width: 960px) {
  .chips li { padding: 8px 16px 8px 12px; font-size: 14px; gap: 8px; }
  .separador { margin-bottom: 56px; }
  .historia-rejilla { gap: 40px 96px; }
  .convenios { max-width: 800px; margin: 0 auto; width: 100%; }
}

@media (min-width: 1120px) {
  /* Perfiles a 5 columnas: etiqueta arriba y cifra abajo para que nada se corte */
  .perfil .ficha div { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
  .perfil .ficha dd { font-size: 18px; }
}

/* ==========================================================================
   Ajustes de la revisión de diseño (ronda 2)
   ========================================================================== */
@media (max-width: 639px) {
  .flotante-asesor { min-height: 48px; padding: 8px 20px 8px 8px; font-size: 14px; }
}

/* Móvil: la tabla de proyección cabe completa en la tarjeta, sin scroll lateral */
@media (max-width: 639px) {
  .seccion-simulador {
    background: var(--fondo);
  }
  .resultado-titulo { text-wrap: wrap; }
  .resultado-titulo span { display: inline-block; }
  .tabla-envoltura { margin-inline: -16px; }
  .tabla-proyeccion { font-size: 12px; }
  .tabla-proyeccion th, .tabla-proyeccion td { padding: 12px 4px; }
  .tabla-proyeccion th:first-child, .tabla-proyeccion td:first-child { padding-left: 8px; }
  .tabla-proyeccion th:last-child, .tabla-proyeccion td:last-child { padding-right: 8px; }
  .tabla-proyeccion thead tr:last-child th { font-size: 11px; }
  .tabla-proyeccion thead tr:first-child th[colspan] span { font-size: 11px; padding: 2px 8px; }
}

/* ==========================================================================
   Ajustes posteriores
   ========================================================================== */

/* Cookies: Rechazar y Aceptar con el mismo peso visual + enlace Configurar y panel */
.cookies-botones { display: flex; gap: 8px; flex: 1 1 auto; }
.cookies-botones .boton { flex: 1; min-width: 128px; min-height: 48px; padding: 8px 24px; }
@media (min-width: 640px) { .cookies-botones { flex: 0 0 auto; } }

.enlace-cookies {
  display: inline;
  padding: 0;
  background: none;
  border: 0;
  color: var(--acento-texto);
  font: inherit;
  font-weight: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.enlace-cookies:hover { color: var(--acento-boton-hover); }

.modal-cookies { width: min(100% - 32px, 540px); }
.modal-cookies h2 { width: fit-content; max-width: calc(100% - 48px); padding-right: 0; }
.modal-cookies h2:focus {
  outline: 2px solid var(--texto);
  outline-offset: 4px;
  border-radius: 6px;
}
.cookies-lista { display: grid; gap: 16px; margin-top: 8px; }
.cookies-fila {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: var(--fondo);
  border: 1px solid var(--linea);
  border-radius: 16px;
}
.cookies-fila-titulo { font-size: 16px; font-weight: 700; color: var(--texto); }
.cookies-fila-desc { margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--texto-suave); }
.interruptor {
  position: relative;
  flex: none;
  width: 52px;
  height: 30px;
  padding: 0;
  background: var(--linea);
  border: 1.5px solid var(--texto-suave);
  border-radius: var(--pildora);
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease;
}
.interruptor::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 21px;
  height: 21px;
  background: var(--superficie);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(43, 42, 40, .24);
  transition: transform .18s ease;
}
.interruptor[aria-checked="true"] {
  background: var(--acento-boton);
  border-color: var(--acento-boton);
}
.interruptor[aria-checked="true"]::after {
  transform: translateX(22px);
}
.interruptor:disabled {
  opacity: .68;
  cursor: not-allowed;
}
.interruptor:focus-visible {
  outline: 3px solid var(--texto);
  outline-offset: 3px;
  border-radius: var(--pildora);
}
.modal-cookies-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.modal-cookies-acciones .boton {
  flex: 1 1 180px;
  min-height: 48px;
  padding: 12px 20px;
}

/* Páginas legales de lectura (sin animaciones de texto, sin vidrio sobre texto legal) */
.pagina-legal { padding: calc(var(--alto-menu) + 24px) 0 64px; }
.pagina-legal h1 { font-size: 28px; line-height: 1.15; letter-spacing: -.02em; }
.legal-cuerpo { max-width: 68ch; margin-top: 40px; }
.legal-actualizacion { margin-top: 16px; color: var(--texto-suave); font-size: 15px; }
.legal-indice {
  margin: 32px 0 40px;
  padding: 24px;
  background: var(--superficie);
  border: 1px solid var(--linea);
  border-radius: var(--radio-tarjeta);
}
.legal-indice-titulo {
  margin-bottom: 12px;
  color: var(--texto-suave);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.legal-indice ol { display: grid; gap: 6px; padding-left: 20px; list-style: decimal; }
.legal-indice a {
  display: inline-block;
  padding: 3px 0;
  color: var(--acento-texto);
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--velas);
  text-underline-offset: 4px;
}
.legal-indice a:hover { color: var(--acento-boton-hover); text-decoration-color: currentColor; }
.legal-seccion { margin-top: 48px; scroll-margin-top: calc(var(--alto-encabezado) + 24px); }
.legal-seccion h2 { margin-bottom: 16px; font-size: 20px; line-height: 1.25; letter-spacing: -.01em; }
.legal-seccion h3 { margin-top: 28px; margin-bottom: 8px; }
.legal-seccion p + p,
.legal-seccion p + ul,
.legal-seccion p + ol,
.legal-seccion ul + p,
.legal-seccion ol + p { margin-top: 16px; }
.legal-lista { margin-top: 12px; padding-left: 22px; display: grid; gap: 8px; }
ul.legal-lista { list-style: disc; }
ol.legal-lista { list-style: decimal; }
.legal-volver { margin-top: 48px; }
.legal-nota {
  color: var(--texto-suave);
  font-size: 15px;
  line-height: 1.55;
}
.legal-subtitulo-grupo {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--linea);
  color: var(--acento-texto);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  scroll-margin-top: calc(var(--alto-encabezado) + 24px);
}
.legal-subtitulo-grupo + .legal-seccion {
  margin-top: 20px;
}

.tabla-legal-envoltura {
  margin: 20px 0 0;
  border: 1px solid var(--linea);
  border-radius: 16px;
  background: var(--superficie);
}
.tabla-proyeccion.tabla-legal {
  font-size: 14px;
  font-variant-numeric: normal;
}
.tabla-proyeccion.tabla-legal th,
.tabla-proyeccion.tabla-legal td {
  padding: 12px 14px;
  text-align: left;
  white-space: normal;
  vertical-align: top;
  font-weight: 400;
  color: var(--texto);
  background: transparent;
  border-radius: 0;
}
.tabla-proyeccion.tabla-legal thead th {
  padding: 12px 14px;
  background: var(--fondo-pie);
  color: var(--texto);
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid var(--linea);
}
.tabla-proyeccion.tabla-legal tbody tr:nth-child(even) > * {
  background: var(--fondo);
}
.tabla-proyeccion.tabla-legal tbody td:first-child {
  font-weight: 700;
}
@media (min-width: 960px) {
  .pagina-legal { padding: calc(var(--alto-menu) + 32px) 0 80px; }
  .pagina-legal h1 { font-size: 40px; line-height: 1.1; }
  .legal-cuerpo { margin-top: 56px; }
  .legal-seccion h2 { font-size: 24px; line-height: 1.25; }
}

/* Página 404 */
.pagina-404 { padding: calc(var(--alto-menu) + 24px) 0 72px; }
.pagina-404-cuerpo { max-width: 560px; margin-top: 64px; display: grid; gap: 24px; justify-items: start; }

/* ---------- R9 · Solo celular (≤ 767 px): títulos sin split y póster del video desde t=0 ---------- */
@media (max-width: 767px) {
  h1 {
    text-wrap: wrap;
  }
  h2 {
    text-wrap: wrap;
    text-wrap: pretty;
  }
  .bz-linea-mask,
  .bz-linea {
    display: contents;
  }
  .hero-video-tarjeta .hero-poster-respaldo {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block !important;
    pointer-events: none;
  }
  .hero-video-tarjeta .hero-video {
    position: relative;
    z-index: 2;
  }
  html.hero-poster-fijo-movil .hero-video-tarjeta .hero-poster-respaldo {
    z-index: 3;
  }
  html.hero-poster-fijo-movil .hero-video-tarjeta .hero-video {
    display: none !important;
  }
}
