/* =====================================================================
   Elige Tu Plan Salud · Versión B (7-11-2026), inspirada en multisic.cl
   Bloques de color sólido, foto a todo el ancho, esquinas casi rectas
   (4 px), títulos gruesos en Figtree. Misma lógica y datos que la A.
   1. Colores y medidas   2. Base   3. Botones   4. Cabecera
   5. Portada (foto + caja azul + cifras)   6. Pasos en banda oscura
   7. Formulario sobre foto   8. Beneficios en mosaico   9. Banda $0
   10. Equipo   11. Preguntas   12. Pie celeste   13. Flotantes
   14. Animaciones   15. Tablet y celular
   ===================================================================== */

/* 1. Colores y medidas ------------------------------------------------ */
:root {
  --blanco:      #ffffff;
  --celeste-50:  #f1f8fc;   /* fondo de secciones alternas */
  --celeste-100: #e2f1fa;
  --celeste-200: #c5e3f6;
  --celeste-400: #4fb0e6;
  --celeste-pie: #e4f4fb;   /* pie, como el de multisic.cl */
  --azul:        #0a6fc2;   /* botones y enlaces (cercano al azul CruzBlanca #006DC4) */
  --azul-osc:    #08599d;   /* hover */
  --azul-caja:   #06579c;   /* caja de la portada y banda $0: texto blanco a 7,5:1 */
  --marino:      #0d2540;   /* banda de pasos, fondo del formulario, franja legal */
  --titulos:     #0f2742;
  --texto:       #263a50;
  --suave:       #56697f;
  --linea:       #dbe6ef;
  --borde:       #c9d9e6;
  --wsp:         #15803d;   /* verde WhatsApp oscurecido: texto blanco legible */
  --wsp-osc:     #116a32;
  --error:       #c62f3a;
  --clara:       #bfe3fa;   /* etiquetas sobre azul o marino */

  --r: 4px;        /* botones, campos y tarjetas */
  --sombra: 0 10px 30px rgba(13, 37, 64, .12);

  --fuente: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ancho: 1240px;
  --gut: 80px;
  --cabecera: 80px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-entra: cubic-bezier(.22, 1, .36, 1);
}

/* 2. Base ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-padding-top: var(--cabecera); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--fuente); font-size: 17px; line-height: 1.65; color: var(--texto);
  background: var(--blanco); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--azul); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--azul-osc); }
h1, h2, h3, h4 { color: var(--titulos); margin: 0; text-wrap: balance; }
h1, h2 { font-weight: 700; letter-spacing: -0.025em; }
h1 { line-height: 1.08; }
h2 { line-height: 1.14; font-size: clamp(30px, 3vw, 42px); }
h3, h4 { font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
.contenedor { width: min(100% - 2 * var(--gut), var(--ancho)); margin-inline: auto; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic--chico { width: 14px; height: 14px; vertical-align: -2px; }
.oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--azul); outline-offset: 3px; }
::selection { background: var(--celeste-200); color: var(--titulos); }
input, select, textarea { caret-color: var(--azul); }
/* Etiqueta corta sobre cada título (como la línea azul de multisic.cl) */
.etiqueta { font-size: 15px; font-weight: 700; color: var(--azul); margin-bottom: 10px; letter-spacing: 0; }
.etiqueta--clara { color: var(--clara); }

/* 3. Botones ---------------------------------------------------------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r); border: 2px solid transparent;
  font: 700 16px/1 var(--fuente); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s var(--ease), background-color .15s ease, border-color .15s ease, color .15s ease;
}
.boton:active { transform: scale(.97); transition-duration: .09s; }
.boton--primario { background: var(--azul); color: #fff; }
.boton--primario:hover { background: var(--azul-osc); color: #fff; }
.boton--borde { background: #fff; color: var(--titulos); border-color: var(--borde); }
.boton--borde:hover { border-color: var(--titulos); color: var(--titulos); }
.boton--suave { background: var(--celeste-100); color: var(--azul-osc); }
.boton--suave:hover { background: var(--celeste-200); color: var(--azul-osc); }
.boton--wsp { background: var(--wsp); color: #fff; }
.boton--wsp:hover { background: var(--wsp-osc); color: #fff; }
.boton--blanco { background: #fff; color: var(--azul-caja); }
.boton--blanco:hover { background: var(--celeste-100); color: var(--azul-caja); }
.boton--contorno-blanco { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.boton--contorno-blanco:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.boton--chico { min-height: 44px; padding: 0 18px; font-size: 15px; }
.boton--grande { min-height: 54px; padding: 0 26px; font-size: 16.5px; }
.boton--ancho { width: 100%; }
.ic--wsp { color: var(--wsp); }
.boton > .ic:last-child:not(:first-child) { transition: transform .2s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .boton:hover { transform: translateY(-1px); }
  .boton:active { transform: scale(.97); }
  .boton:hover > .ic:last-child:not(:first-child) { transform: translateX(3px); }
}
.boton-redondo { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex: none; transition: transform .15s var(--ease), background-color .15s ease; }
.boton-redondo--wsp { background: var(--wsp); color: #fff; }
.boton-redondo--wsp:hover { background: var(--wsp-osc); color: #fff; }
.boton-redondo:active { transform: scale(.94); }
.enlace-boton { background: none; border: 0; color: var(--suave); font: 600 14.5px var(--fuente); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; padding: 12px 8px; min-height: 44px; }
.enlace-boton:hover { color: var(--azul); }

/* 4. Cabecera --------------------------------------------------------- */
.cabecera { position: sticky; top: 0; z-index: 50; height: var(--cabecera); background: var(--blanco); border-bottom: 1px solid var(--linea); }
.cabecera__fila { position: relative; height: 100%; display: flex; align-items: center; gap: 28px; }
.saltar { position: absolute; left: 0; top: 16px; z-index: 2; background: var(--marino); color: #fff; padding: 10px 16px; border-radius: var(--r); }
.saltar:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.saltar:focus { color: #fff; }
.marca { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.marca__emblema { width: 54px; height: auto; }
.marca__texto { display: flex; flex-direction: column; line-height: 1.05; white-space: nowrap; }
.marca__texto strong { color: var(--titulos); font-size: 21px; font-weight: 800; letter-spacing: -0.03em; }
.marca__texto small { color: var(--azul); font-size: 13px; font-weight: 600; margin-top: 3px; }
.menu { display: flex; align-items: center; gap: 4px; }
.menu a { position: relative; color: var(--texto); text-decoration: none; font-weight: 600; font-size: 15.5px; padding: 12px 12px; white-space: nowrap; transition: color .15s ease; }
.menu a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 5px; height: 2px; background: var(--azul); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .menu a:hover { color: var(--azul); }
  .menu a:hover::after { transform: scaleX(1); }
}
.menu .menu__cotizar { display: none; }
.cabecera__acciones { display: flex; align-items: center; gap: 10px; }
.cabecera__menu { display: none; width: 44px; height: 44px; border: 2px solid var(--borde); background: #fff; border-radius: var(--r); color: var(--titulos); cursor: pointer; align-items: center; justify-content: center; }

/* 5. Portada: foto a todo el ancho, caja azul y cifras --------------- */
.portada { position: relative; padding-bottom: 0; }
.portada__foto { height: clamp(340px, 60svh, 660px); overflow: hidden; background: var(--celeste-100); }
.portada__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
/* La caja y las cifras suben sobre la foto para que título y botón se vean en la primera pantalla */
.portada__franja { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); margin-top: -120px; align-items: stretch; }
.portada__caja { grid-column: 1 / span 7; background: var(--azul-caja); color: #fff; padding: 44px 56px 48px; }
.sello { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; font-weight: 600; color: var(--clara); }
.sello__chip { display: inline-flex; align-items: center; background: #fff; border-radius: var(--r); padding: 5px 9px; }
.sello__chip img { height: 20px; width: auto; }
.sello__texto { color: #fff; }
.portada h1 { margin-top: 20px; color: #fff; font-size: clamp(36px, 3.9vw, 56px); }
.portada__bajada { margin-top: 18px; font-size: 19px; line-height: 1.55; color: #fff; max-width: 34em; }
.portada__botones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cifras { grid-column: 8 / span 5; display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 0; list-style: none; background: #fff; box-shadow: var(--sombra); }
.cifra { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 28px 30px; border-bottom: 1px solid var(--linea); }
.cifra:nth-child(odd) { border-right: 1px solid var(--linea); }
.cifra:nth-child(n+3) { border-bottom: 0; }
.cifra .ic { width: 26px; height: 26px; color: var(--azul); margin-bottom: 4px; }
.cifra strong { font-size: 42px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; color: var(--titulos); }
.cifra span { font-size: 15.5px; line-height: 1.4; color: var(--suave); max-width: 18ch; }

/* 5b. Cinta de clínicas bajo la portada ------------------------------ */
.clinicas { padding: 40px 0 36px; background: var(--blanco); }
.clinicas__titulo { margin: 0 var(--gut) 18px; text-align: center; font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--suave); }
.cinta { overflow: hidden; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.cinta__pista { display: flex; width: max-content; animation: cinta var(--duracion, 40s) linear infinite; }
.cinta__grupo { display: flex; align-items: center; gap: 56px; margin: 0; padding: 0 56px 0 0; list-style: none; }
.clinica { flex: none; display: flex; align-items: center; height: 48px; }
.clinica img { display: block; height: var(--alto, 36px); width: auto; max-width: 180px; object-fit: contain; filter: grayscale(1); opacity: .7; pointer-events: none; -webkit-user-drag: none; }
.clinica__nombre { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; color: #6f8197; white-space: nowrap; }
.clinicas__nota { margin: 14px var(--gut) 0; text-align: center; font-size: 13px; color: var(--suave); }
@keyframes cinta { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .cinta { -webkit-mask-image: none; mask-image: none; }
  .cinta__pista { animation: none; width: auto; justify-content: center; }
  .cinta__grupo { flex-wrap: wrap; justify-content: center; gap: 8px 40px; padding: 0 var(--gut); }
  .cinta__grupo[aria-hidden="true"] { display: none; }
}
@media (max-width: 600px) {
  .clinicas { padding: 28px 0 24px; }
  .cinta__grupo { gap: 40px; padding-right: 40px; }
  .clinica__nombre { font-size: 17px; }
  .clinica img { height: calc(var(--alto, 36px) * .84); }
}

/* 6. Cómo funciona: banda oscura con pasos 01 a 04 ------------------- */
.pasos-banda { background: var(--marino); color: #d5e0ea; padding: 56px 0 60px; margin-top: 48px; }
.pasos-banda h2 { color: #fff; }
.pasos-banda__lista { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.pasos-banda__lista li { padding-top: 24px; border-top: 1px solid rgba(255,255,255,.2); }
.pasos-banda__numero { display: block; font-size: 38px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; color: var(--celeste-400); }
.pasos-banda h3 { margin: 16px 0 8px; color: #fff; font-size: 20px; }
.pasos-banda p { font-size: 16.5px; }

/* 7. Formulario sobre foto -------------------------------------------- */
.cotizar { position: relative; padding: 56px 0; overflow: hidden; background: var(--marino); isolation: isolate; }
.cotizar__fondo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.cotizar::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(10, 31, 56, .86); }
.cotizar__contenido { display: grid; justify-items: center; }
.cotizar__cabeza { text-align: center; color: #e7f0f8; max-width: 760px; }
.cotizar__cabeza h2 { color: #fff; }
.cotizar__cabeza > p:not(.etiqueta) { margin-top: 14px; font-size: 18.5px; }
.cotizar__datos { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; list-style: none; padding: 0; margin: 28px 0 0; font-size: 15.5px; }
.cotizar__datos li { display: flex; align-items: center; gap: 8px; }
.cotizar__datos .ic { color: var(--clara); width: 18px; height: 18px; }
.cotizar__datos a { color: #fff; font-weight: 600; }
.cotizar__datos a:hover { color: var(--clara); }

.tarjeta-form { position: relative; width: min(100%, 680px); margin-top: 48px; background: #fff; border-radius: 6px; padding: 40px; box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.form__cabeza { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--linea); }
.form__titulo { font-size: 22px; }
.form__sub { font-size: 14.5px; color: var(--suave); margin-top: 2px; }
.pasos { width: 72px; height: 5px; background: var(--celeste-100); overflow: hidden; flex: none; margin-bottom: 9px; }
.pasos__barra { display: block; height: 100%; width: 100%; background: var(--azul); transform: scaleX(.5); transform-origin: left; transition: transform .4s var(--ease); }
.paso { border: 0; padding: 0; margin: 0; min-width: 0; }
.paso.entra { animation: entrar .28s var(--ease) both; }
.paso.entra-atras { animation: entrar-atras .28s var(--ease) both; }
.campo { margin-bottom: 18px; }
.campo-doble { display: grid; grid-template-columns: 1fr 1.25fr; gap: 12px; }
.campo__etiqueta { display: block; font-size: 14.5px; font-weight: 700; color: var(--titulos); margin-bottom: 8px; }
.campo__ayuda { display: block; font-size: 13.5px; font-weight: 400; color: var(--suave); margin-top: 1px; }
.campo__error { display: flex; gap: 6px; align-items: flex-start; color: var(--error); font-size: 14px; font-weight: 600; margin-top: 6px; line-height: 1.4; animation: aparecer-error .2s var(--ease) both; }
.campo__error::before { content: "!"; flex: none; display: grid; place-items: center; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; background: var(--error); color: #fff; font-size: 11px; font-weight: 800; line-height: 1; }
.campo__error:empty { display: none; }
.entrada {
  width: 100%; height: 50px; padding: 0 14px; border: 1.5px solid var(--borde); border-radius: var(--r);
  font: 400 16px var(--fuente); color: var(--titulos); background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none; appearance: none;
}
select.entrada {
  padding-right: 40px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2356697f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
}
.entrada::placeholder { color: #66798e; opacity: 1; }
.entrada:hover { border-color: #a9c3d8; }
.entrada:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 4px rgba(10,111,194,.14); }
.entrada.con-error { border-color: var(--error); }
.entrada.con-error:focus { box-shadow: 0 0 0 4px rgba(198,47,58,.14); }
.entrada-prefijo { display: flex; }
.entrada-prefijo span { display: flex; align-items: center; padding: 0 12px; border: 1.5px solid var(--borde); border-right: 0; border-radius: var(--r) 0 0 var(--r); background: var(--celeste-50); font-weight: 600; color: var(--titulos); }
.entrada-prefijo .entrada { border-radius: 0 var(--r) var(--r) 0; }
.entrada-prefijo:focus-within span { border-color: var(--azul); }
.entrada-prefijo:has(.con-error) span { border-color: var(--error); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
/* El campo mismo es la caja visible: el foco del teclado se ve sobre él */
/* La caja visible es el texto (span); el radio queda oculto pero accesible.
   Así iPhone/Safari no dibuja su propio cuadrito encima. */
.chip { position: relative; display: inline-flex; cursor: pointer; transition: transform .16s var(--ease); -webkit-tap-highlight-color: transparent; }
.chip input {
  position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; padding: 0;
  opacity: 0; pointer-events: none; -webkit-appearance: none; appearance: none;
}
.chip span {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 44px; padding: 0 16px;
  border: 1.5px solid var(--borde); border-radius: var(--r); background: #fff;
  font-weight: 600; font-size: 15.5px; line-height: 1.2; color: var(--texto); user-select: none; -webkit-user-select: none;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}
.chips--numeros .chip span { min-width: 52px; }
.chips.con-error .chip span { border-color: #e6a3a8; }
@media (hover: hover) and (pointer: fine) { .chip:hover span { border-color: var(--titulos); } }
.chip:active { transform: scale(.96); }
.chip input:checked + span { background: var(--azul-caja); border-color: var(--azul-caja); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--azul); outline-offset: 3px; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consentimiento { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; cursor: pointer; margin: 4px 0; }
.consentimiento input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--azul); flex: none; cursor: pointer; }
.form__botones { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 18px; }
.form__nota { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 16px; font-size: 14px; color: var(--suave); }
.form__nota .ic { width: 15px; height: 15px; }
.boton[disabled] { opacity: .85; pointer-events: none; }
.girando { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: girar .7s linear infinite; }

/* Resultado: "Te va a atender…" */
.resultado { text-align: center; padding: 6px 4px 0; animation: aparecer .4s var(--ease) both; }
.resultado__check { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: #e3f4e8; color: var(--wsp-osc); display: grid; place-items: center; animation: pop .45s .08s var(--ease-entra) both; }
.resultado__check .ic { width: 28px; height: 28px; stroke-width: 2.6; stroke-dasharray: 24; stroke-dashoffset: 24; animation: trazar .4s .3s var(--ease) forwards; }
.resultado__titulo { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.resultado__texto { margin-top: 6px; color: var(--suave); }
.resultado__texto--chico { font-size: 15px; margin: 18px 0 14px; }
.asesor-asignado {
  display: flex; align-items: center; gap: 14px; text-align: left; margin-top: 16px; padding: 16px;
  background: var(--celeste-50); border: 1px solid var(--celeste-200); border-radius: var(--r);
}
.resultado .asesor-asignado { animation: aparecer .4s .16s var(--ease) both; }
.asesor-asignado strong { display: block; color: var(--titulos); font-size: 18px; font-weight: 700; }
.asesor-asignado__cargo { display: block; font-size: 14.5px; color: var(--suave); }
.resultado .enlace-boton { margin-top: 10px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; flex: none; overflow: hidden; display: grid; place-items: center; color: #fff; font-size: 18px; font-weight: 700; background: var(--azul); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--grande { width: 64px; height: 64px; font-size: 22px; }

/* 8. Secciones y beneficios en mosaico -------------------------------- */
.seccion { padding: 56px 0 60px; }
.seccion--celeste { background: var(--celeste-50); }
.seccion__cabeza { max-width: 760px; margin: 0 0 32px; }
.seccion__cabeza > p:not(.etiqueta) { margin-top: 14px; font-size: 18.5px; max-width: 36em; }

.mosaico { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.baldosa { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--linea); }
.baldosa__foto { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--celeste-100); }
.baldosa__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.baldosa__foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 24, 44, .88) 0%, rgba(8, 24, 44, .5) 28%, rgba(8, 24, 44, 0) 56%); }
.baldosa__foto h3 { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1; color: #fff; font-size: 23px; line-height: 1.15; }
@media (hover: hover) and (pointer: fine) { .baldosa:hover .baldosa__foto img { transform: scale(1.03); } }
.baldosa__cuerpo { padding: 20px 22px 18px; }
.baldosa__cuerpo > p { font-size: 16px; }
.beneficio__mas { margin-top: 6px; }
.beneficio__mas summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  color: var(--azul); font-weight: 700; font-size: 15.5px; min-height: 44px; padding: 6px 0;
}
.beneficio__mas summary:hover { color: var(--azul-osc); }
.beneficio__mas summary::-webkit-details-marker { display: none; }
.beneficio__mas summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .25s var(--ease); }
.beneficio__mas[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.beneficio__mas ul, .beneficio__mas ol { margin: 4px 0 0; padding-left: 20px; font-size: 15.5px; }
.beneficio__mas li { margin: 4px 0; }
.beneficio__mas li::marker { color: var(--azul); }
.beneficio__condicion { margin-top: 10px !important; font-size: 14.5px; color: var(--suave); padding-left: 12px; border-left: 2px solid var(--celeste-400); }
.tambien { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.tambien__item { display: flex; gap: 18px; padding: 26px 28px; background: var(--celeste-50); border: 1px solid var(--linea); }
.tambien__icono { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--azul); color: #fff; }
.tambien__item h3 { font-size: 19px; margin-bottom: 6px; }
.tambien__item p { font-size: 16px; }
.nota-legal { margin: 32px 0 0; max-width: 760px; font-size: 14.5px; color: var(--texto); }

/* 9. Banda azul $0 ---------------------------------------------------- */
.banda { padding: 56px 0; background: var(--azul-caja); color: #fff; }
.banda__grilla { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.banda__cabeza { grid-column: 1 / span 6; padding-right: 32px; }
.banda h2 { color: #fff; font-size: clamp(26px, 2.5vw, 36px); line-height: 1.2; }
.banda__cifra { display: block; font-size: clamp(88px, 10vw, 148px); line-height: .9; font-weight: 800; letter-spacing: -0.05em; margin-bottom: 14px; }
.banda__cabeza > p:not(.etiqueta) { margin-top: 14px; font-size: 18px; }
.banda__cabeza .boton { margin-top: 32px; }
.banda__promos { grid-column: 7 / span 6; display: grid; gap: 16px; }
.promo { display: flex; gap: 18px; padding: 28px; background: #fff; color: var(--texto); border-radius: var(--r); }
.promo__icono { width: 48px; height: 48px; border-radius: 50%; background: var(--azul); color: #fff; display: grid; place-items: center; flex: none; }
.promo h3 { font-size: 20px; margin-bottom: 8px; }
.promo p { font-size: 16px; line-height: 1.55; }
.promo__condicion { margin-top: 12px !important; padding-top: 12px; border-top: 1px solid var(--linea); font-size: 14.5px !important; color: var(--suave); }

/* 10. Equipo ---------------------------------------------------------- */
/* 3 columnas para el equipo de 3 asesores. Si el equipo crece, subir el número (y revisar los cortes de tablet). */
.equipo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 16px; }
.asesor__foto { aspect-ratio: 4 / 5; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--azul); color: #fff; font-size: 46px; font-weight: 800; letter-spacing: -0.04em; }
.asesor:nth-child(3n+2) .asesor__foto { background: var(--azul-caja); }
.asesor:nth-child(3n) .asesor__foto { background: var(--marino); }
.asesor__foto img { width: 100%; height: 100%; object-fit: cover; }
.asesor h3 { margin-top: 14px; font-size: 18px; }
.asesor__cargo { font-size: 14.5px; color: var(--suave); margin-top: 2px; }
.asesor__detalle { font-size: 15.5px; color: var(--texto); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--borde); line-height: 1.45; }
.asesor--pausa { opacity: .55; }
.asesor__pausa { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--suave); background: #eef3f7; padding: 3px 10px; border-radius: 99px; }
/* Con 3 asesores, en computador el título va a la izquierda y las tarjetas a la derecha (si no, quedan enormes). */
@media (min-width: 1024px) {
  #equipo .contenedor { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 56px; align-items: start; }
  #equipo .seccion__cabeza { grid-column: 1; grid-row: 1; margin: 0; }
  #equipo .equipo { grid-column: 2; grid-row: 1; }
  #equipo .verificar { grid-column: 1 / -1; }
}
.verificar { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--borde); font-size: 16px; color: var(--texto); }
.verificar a { font-weight: 700; }

/* 11. Preguntas ------------------------------------------------------- */
.preguntas { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.preguntas__cabeza { grid-column: 1 / span 5; }
.preguntas__cabeza > p:not(.etiqueta) { margin: 16px 0 28px; font-size: 18.5px; }
.acordeon { grid-column: 7 / span 6; border-top: 2px solid var(--titulos); }
.acordeon details { border-bottom: 1px solid var(--borde); }
.acordeon summary {
  list-style: none; cursor: pointer; padding: 22px 52px 22px 0; position: relative;
  font-weight: 700; color: var(--titulos); font-size: 18.5px; transition: color .15s ease;
}
@media (hover: hover) and (pointer: fine) { .acordeon summary:hover { color: var(--azul); } }
.acordeon summary::-webkit-details-marker { display: none; }
.acordeon summary::before, .acordeon summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 2px; background: var(--azul); transition: transform .3s var(--ease); }
.acordeon summary::after { transform: rotate(90deg); }
.acordeon details[open] summary { color: var(--azul); }
.acordeon details[open] summary::before { transform: rotate(45deg); }
.acordeon details[open] summary::after { transform: rotate(135deg); }
.acordeon details p { padding: 0 52px 24px 0; max-width: 62ch; }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .acordeon details::details-content, .beneficio__mas::details-content {
    block-size: 0; overflow: hidden; opacity: 0;
    transition: block-size .3s var(--ease), opacity .25s ease, content-visibility .3s allow-discrete;
  }
  .acordeon details[open]::details-content, .beneficio__mas[open]::details-content { block-size: auto; opacity: 1; }
}

/* 12. Pie celeste ----------------------------------------------------- */
.pie { background: var(--celeste-pie); color: var(--texto); font-size: 16px; }
.pie__llamado { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding: 48px 0 40px; border-bottom: 1px solid #c4e1ef; }
.pie__llamado h2 { font-size: clamp(26px, 2.6vw, 36px); max-width: 20ch; }
.pie__botones { display: flex; flex-wrap: wrap; gap: 12px; }
.pie__grilla { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; padding: 40px 0 48px; align-items: start; }
.pie__somos { grid-column: 1 / span 4; }
.pie__grilla > div:nth-child(2) { grid-column: 6 / span 3; }
.pie__grilla > div:nth-child(3) { grid-column: 9 / span 2; }
.pie__emblema { grid-column: 11 / span 2; justify-self: end; width: 150px; }
.pie__titulo { color: var(--titulos); font-size: 17px; font-weight: 800; margin-bottom: 14px; }
.pie__lista { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
/* :not(.boton): los botones del llamado del pie conservan sus colores (antes el texto del botón azul quedaba oscuro) */
.pie a:not(.boton) { color: var(--titulos); text-decoration: none; }
.pie a:not(.boton):hover { color: var(--azul); text-decoration: underline; }
.pie__legal { background: var(--marino); color: #c3d0dd; font-size: 14px; }
.pie__legal-fila { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 18px 0; }
.pie .pie__legal a { color: #fff; }
.pie .pie__legal a:hover { color: var(--clara); }

/* 13. Flotantes ------------------------------------------------------- */
.flotante { position: fixed; right: 22px; bottom: 22px; z-index: 40; display: flex; align-items: center; gap: 10px; text-decoration: none; animation: aparecer-flotante .5s 1s var(--ease-entra) both; }
.flotante__texto { background: #fff; color: var(--titulos); font-size: 14.5px; font-weight: 700; padding: 9px 14px; border-radius: 99px; box-shadow: 0 6px 20px rgba(13,37,64,.18); }
.flotante__boton { width: 58px; height: 58px; border-radius: 50%; background: var(--wsp); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(13,37,64,.22); transition: transform .2s var(--ease), background-color .2s ease; }
.flotante__boton .ic { width: 28px; height: 28px; }
@media (hover: hover) and (pointer: fine) { .flotante:hover .flotante__boton { transform: scale(1.06); background: var(--wsp-osc); } }
.flotante:active .flotante__boton { transform: scale(.95); }
.barra-movil { display: none; }

/* 14. Animaciones ----------------------------------------------------- */
@keyframes entrar { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes entrar-atras { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
@keyframes aparecer { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
@keyframes trazar { to { stroke-dashoffset: 0; } }
@keyframes girar { to { transform: rotate(360deg); } }
@keyframes aparecer-error { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
@keyframes subir { from { opacity: .3; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes asentar { from { transform: scale(1.06); } to { transform: none; } }
@keyframes aparecer-flotante { from { opacity: 0; transform: scale(.85) translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes sacudir { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.sacudir { animation: sacudir .3s ease; }

/* Entrada de la portada, una vez al cargar: la foto se asienta y la caja y
   las cifras suben a su lugar. Nada más en la página aparece al bajar. */
.portada__foto img { animation: asentar 1.4s var(--ease-entra) both; }
.portada__caja { animation: subir .7s .1s var(--ease-entra) both; }
.cifras { animation: subir .7s .22s var(--ease-entra) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .girando { animation-duration: 1.4s !important; }
  .resultado__check .ic { stroke-dashoffset: 0; }
}

/* 15. Tablet y celular ------------------------------------------------ */
/* Menú en hoja de pantalla completa */
@media (max-width: 1180px) {
  .cabecera__menu { display: inline-flex; }
  .menu {
    position: fixed; top: var(--cabecera); left: 0; right: 0; bottom: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 8px var(--gut) 32px; overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s var(--ease), visibility .2s;
  }
  .menu.abierto { transform: none; opacity: 1; visibility: visible; }
  .menu a { padding: 18px 2px; font-size: 20px; border-bottom: 1px solid var(--linea); }
  .menu a::after { display: none; }
  .menu .menu__cotizar { display: flex; justify-content: center; margin-top: 24px; min-height: 54px; align-items: center; border: 0; border-radius: var(--r); background: var(--azul); color: #fff; font-size: 17px; }
  .menu .menu__cotizar:hover { background: var(--azul-osc); color: #fff; }
  body.menu-abierto { overflow: hidden; }
}

@media (max-width: 1023px) {
  :root { --gut: 40px; }
  .portada__franja { grid-template-columns: 1fr; margin-top: -72px; }
  .portada__caja { grid-column: 1; }
  .cifras { grid-column: 1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cifra { border-bottom: 0; border-right: 1px solid var(--linea); padding: 24px 22px; }
  .cifra:nth-child(odd) { border-right: 1px solid var(--linea); }
  .cifra:last-child { border-right: 0; }
  .cifra strong { font-size: 36px; }
  .pasos-banda { margin-top: 40px; }
  .pasos-banda__lista { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .mosaico { grid-template-columns: 1fr 1fr; }
  .tambien { grid-template-columns: 1fr; }
  .banda__grilla { grid-template-columns: 1fr; row-gap: 48px; }
  .banda__cabeza, .banda__promos { grid-column: 1; padding-right: 0; }
  .equipo { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .preguntas { grid-template-columns: 1fr; row-gap: 40px; }
  .preguntas__cabeza, .acordeon { grid-column: 1; }
  .pie__somos { grid-column: 1 / span 6; }
  .pie__grilla > div:nth-child(2) { grid-column: 7 / span 6; }
  .pie__grilla > div:nth-child(3) { grid-column: 1 / span 6; }
  .pie__emblema { grid-column: 7 / span 6; width: 120px; }
}

@media (max-width: 860px) {
  :root { --cabecera: 68px; }
  .marca__emblema { width: 46px; }
  .marca__texto strong { font-size: 19px; }
  .flotante { display: none; }
  .cifras { grid-template-columns: 1fr 1fr; }
  .cifra { border-bottom: 1px solid var(--linea); }
  .cifra:nth-child(2n) { border-right: 0; }
  .cifra:nth-child(n+3) { border-bottom: 0; }
  .pie__lista { gap: 0; }
  .pie__lista li { min-height: 44px; display: flex; align-items: center; }
  .pie__lista a { display: inline-flex; align-items: center; min-height: 44px; }
}

@media (max-width: 600px) {
  :root { --gut: 20px; }
  body { font-size: 16.5px; padding-bottom: 72px; }
  .cabecera__cotizar { display: none; }
  .marca__texto small { font-size: 12.5px; }
  .seccion { padding: 44px 0; }
  .portada__foto { height: auto; aspect-ratio: 4 / 3; }
  .portada__franja { margin-top: -40px; }
  .portada__caja { padding: 28px 22px 30px; }
  .portada h1 { font-size: 34px; }
  .portada__bajada { font-size: 17.5px; }
  .portada__botones .boton { width: 100%; }
  .cifra { padding: 20px 18px; }
  .cifra strong { font-size: 32px; }
  .cifra span { font-size: 14.5px; }
  .pasos-banda { margin-top: 32px; padding: 44px 0; }
  .pasos-banda__lista { grid-template-columns: 1fr; gap: 28px; margin-top: 40px; }
  .cotizar { padding: 44px 0; }
  .cotizar__cabeza { text-align: left; }
  .cotizar__datos { flex-direction: column; align-items: flex-start; }
  .tarjeta-form { padding: 24px 20px; margin-top: 36px; }
  .campo-doble { grid-template-columns: 1fr 1.3fr; gap: 10px; }
  .chips--numeros { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 6px; }
  .chips--numeros .chip { display: flex; }
  .chips--numeros .chip span { min-width: 0; width: 100%; padding: 0 6px; }
  .form__botones .boton { padding: 0 16px; }
  h2, .seccion__cabeza h2 { font-size: 30px; }
  .mosaico { grid-template-columns: 1fr; gap: 20px; }
  .baldosa__foto { aspect-ratio: 4 / 3; }
  .tambien__item { padding: 22px 20px; }
  .banda { padding: 44px 0; }
  .banda h2 { font-size: 26px; }
  .banda__cabeza .boton { width: 100%; white-space: normal; text-align: center; padding: 14px 18px; }
  .promo { padding: 22px 20px; }
  .equipo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; }
  .asesor__foto { aspect-ratio: 1 / 1; font-size: 36px; }
  .acordeon summary { font-size: 17.5px; padding: 20px 40px 20px 0; }
  .acordeon details p { padding-right: 0; }
  .pie__llamado { padding: 40px 0 32px; }
  .pie__botones, .pie__botones .boton { width: 100%; }
  .pie__grilla > * { grid-column: 1 / -1 !important; }
  .pie__emblema { justify-self: start; width: 96px; }
  .barra-movil {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--linea);
    transform: translateY(110%); transition: transform .3s var(--ease); visibility: hidden;
  }
  .barra-movil.visible { transform: none; visibility: visible; }
  .barra-movil .boton { min-height: 48px; padding: 0 12px; }
}

/* Sin flechas en el campo de edad (Safari/Chrome escritorio) */
.entrada[type="number"] { -moz-appearance: textfield; }
.entrada[type="number"]::-webkit-inner-spin-button,
.entrada[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* ===== Revisión del 8-11-2026 ===== */

/* Cómo funciona en celeste: el formulario (sobre foto oscura) queda como el único bloque oscuro
   de esa parte de la página y se lleva la atención. Antes eran dos bloques oscuros seguidos. */
.pasos-banda { background: var(--celeste-pie); color: var(--texto); }
.pasos-banda h2, .pasos-banda h3 { color: var(--titulos); }
.pasos-banda__lista li { border-top-color: rgba(13, 37, 64, .16); }
.pasos-banda__numero { color: var(--azul); }

/* 7% calculado al elegir el rango de sueldo (main.js, sección 6) */
.campo__siete { margin-top: 8px; padding: 8px 12px; border-radius: var(--r); background: var(--celeste-50); color: var(--titulos); font-size: 14.5px; line-height: 1.45; }

/* Vista previa del mensaje que se abre en WhatsApp, en la tarjeta del asesor asignado */
.mensaje-wsp { margin: 0 0 14px; text-align: left; }
.mensaje-wsp__burbuja { margin: 0 0 0 auto; max-width: 94%; padding: 10px 12px; border-radius: 8px 2px 8px 8px; background: #e3f4e8; color: var(--texto); font-size: 15px; line-height: 1.45; }
.mensaje-wsp__nota { display: block; margin-top: 6px; font-size: 13.5px; color: var(--suave); text-align: right; }

/* Preguntas: en computador el título acompaña la lista al bajar, sin dejar la columna vacía */
@media (min-width: 1024px) {
  .preguntas__cabeza { position: sticky; top: calc(var(--cabecera) + 40px); }
}

/* Equipo sin fotos todavía: en celular, lista compacta con iniciales (main.js pone la clase).
   Cuando lleguen las fotos vuelve sola la grilla de 2 columnas. */
@media (max-width: 600px) {
  .equipo--sin-fotos { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--borde); }
  .equipo--sin-fotos .asesor { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--borde); }
  .equipo--sin-fotos .asesor > :not(.asesor__foto) { grid-column: 2; }
  .equipo--sin-fotos .asesor__foto { grid-row: 1 / span 3; width: 52px; height: 52px; aspect-ratio: auto; border-radius: 50%; font-size: 18px; letter-spacing: -0.02em; }
  .equipo--sin-fotos .asesor h3 { margin-top: 2px; font-size: 17px; }
  .equipo--sin-fotos .asesor__cargo { margin-top: 0; }
  .equipo--sin-fotos .asesor__detalle { margin-top: 4px; padding-top: 0; border-top: 0; font-size: 15px; }
  .equipo--sin-fotos + .verificar { margin-top: 32px; }
}

/* Foco del teclado en blanco sobre los fondos azules y oscuros (en azul no se veía: 1,4:1) */
.portada__caja :focus-visible, .banda__cabeza :focus-visible, .cotizar__cabeza :focus-visible { outline-color: #fff; }

/* ===== Cambios de la reunión con los asesores (9-11-2026) ===== */

/* Atención en todo momento, bajo los botones de la portada */
.portada__atencion { display: flex; align-items: flex-start; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.22); font-size: 15.5px; line-height: 1.5; color: #e7f0f8; }
.portada__atencion .ic { width: 18px; height: 18px; margin-top: 3px; color: var(--clara); }
.portada__atencion strong { color: #fff; font-weight: 700; }

/* Clínicas de preferencia: chips de selección múltiple + campo "¿Otra?" */
.chips--clinicas .chip span { min-height: 40px; padding: 0 13px; font-size: 15px; }
.entrada--otra { margin-top: 10px; height: 46px; font-size: 15.5px; }

/* Asesoría sin fotos: tres puntos de servicio con línea fina arriba (en vez de las tarjetas del equipo) */
.compromisos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; }
.compromisos li { padding-top: 20px; border-top: 2px solid var(--titulos); }
.compromisos h3 { font-size: 19px; margin-bottom: 8px; }
.compromisos p { font-size: 16px; }
.compromisos[hidden] { display: none; }
@media (min-width: 1024px) {
  #asesoria .contenedor { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 56px; align-items: start; }
  #asesoria .seccion__cabeza { grid-column: 1; grid-row: 1; margin: 0; }
  #asesoria .compromisos, #asesoria .equipo { grid-column: 2; grid-row: 1; }
  #asesoria .verificar { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .compromisos { grid-template-columns: 1fr; gap: 24px; }
}
/* Ícono en lugar de la foto del asesor al enviar el formulario */
.avatar .ic { width: 28px; height: 28px; }
.equipo[hidden] { display: none; }

/* La cinta de clínicas ya separa la portada de la banda de pasos */
.clinicas + .pasos-banda { margin-top: 0; }

/* Aviso de cookies del Píxel de Meta (js/medicion.js, 25-11-2026) */
.aviso-cookies {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  max-width: 560px; margin: 0 auto; padding: 16px 18px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  background: #fff; color: var(--texto); border: 1px solid var(--linea);
  border-radius: var(--r); box-shadow: var(--sombra);
}
.aviso-cookies[hidden] { display: none; }
.aviso-cookies p { flex: 1 1 260px; margin: 0; font-size: 15px; line-height: 1.45; }
.aviso-cookies__botones { display: flex; gap: 8px; margin-left: auto; }
