/* ==========================================================================
   Medsol RX · Florida GLP-1 landing  ·  v3

   La idea: la pagina no abre como un folleto, abre como un instrumento.
   Lo primero que ve el visitante es su propia curva calculada en vivo sobre
   fondo oscuro. Despues la pagina se calienta (pacientes reales, Florida,
   precio) y cierra en dorado con la Promesa.

   Acentos, y solo hay dos:
     aqua  · el dato vivo, lo que se calcula, la tecnologia
     sol   · se gasta entero en la Promesa del final
   Los dos son de Florida: oceano y sol.
   ========================================================================== */

:root {
  color-scheme: light;

  --void:     #050B16;
  --navy-950: #0A1424;
  --navy-900: #102039;
  --navy-800: #16305A;
  --navy:     #1C3D6E;
  --blue-700: #2F5FA3;
  --blue:     #4F7FC7;
  --blue-400: #7BA3DC;
  --blue-200: #BDD3EE;
  --blue-100: #DCE7F5;
  --blue-50:  #F0F5FC;

  --aqua:     #3FD9C0;
  --aqua-400: #6FE6D2;

  --sun:      #E7A33C;
  --sun-600:  #C4821F;
  --sun-200:  #F6DEB0;
  --sun-50:   #FDF6E9;

  --cream:    #FBF7F0;
  --sand:     #F5EFE4;
  --ink:      #0A1726;
  --text:     #3B4B60;
  --muted:    #6C7D93;
  --line:     #E2EAF4;
  --white:    #FFFFFF;
  --green:    #1B9E68;
  --green-50: #E8F7F0;

  /* sobre fondo oscuro */
  --d-text:   #A9BDD6;
  --d-dim:    #6E85A3;
  --d-line:   rgba(255,255,255,.1);

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans:  "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --r-sm: 12px; --r: 18px; --r-lg: 26px; --r-xl: 34px; --pill: 999px;

  --sh-sm: 0 1px 2px rgba(10,23,38,.05), 0 2px 8px rgba(10,23,38,.05);
  --sh:    0 14px 36px -16px rgba(10,23,38,.26), 0 2px 6px rgba(10,23,38,.05);
  --sh-lg: 0 38px 76px -28px rgba(10,23,38,.38), 0 12px 26px -12px rgba(10,23,38,.13);
  --glow-aqua: 0 0 0 1px rgba(63,217,192,.22), 0 18px 48px -14px rgba(63,217,192,.4);
  --glow-sun:  0 18px 48px -16px rgba(196,130,31,.55);

  --container: 1200px;
  --gutter: 20px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --spring: cubic-bezier(.34,1.42,.5,1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--white); color: var(--text);
  font-family: var(--font-sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-serif); color: var(--ink); font-weight: 600;
  letter-spacing: -.02em; text-wrap: balance; margin: 0;
  font-variation-settings: "opsz" 120, "SOFT" 0, "WONK" 0;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -.032em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.06; letter-spacing: -.026em; }
h3 { font-size: clamp(1.12rem, 1.7vw, 1.42rem); line-height: 1.24; letter-spacing: -.014em; }
p  { margin: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
:focus-visible { outline: 2.5px solid var(--aqua); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ==========================================================================
   Piezas compartidas
   ========================================================================== */

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .745rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-700);
}
.eyebrow svg { width: 15px; height: 15px; fill: currentColor; flex: none; }
.eyebrow--sun { color: var(--sun-600); }
.eyebrow--aqua { color: var(--aqua); }

.lead { font-size: clamp(1.04rem, 1.5vw, 1.22rem); color: var(--text); line-height: 1.56; max-width: 60ch; }
.muted { color: var(--muted); }
.nums { font-variant-numeric: tabular-nums; }

/* el subrayado del hero se dibuja solo al cargar */
.accent { position: relative; color: inherit; white-space: nowrap; }
.accent svg { position: absolute; left: -1%; bottom: -.1em; width: 102%; height: .3em; overflow: visible; }
.accent path {
  fill: none; stroke: var(--aqua); stroke-width: 4.5; stroke-linecap: round; opacity: .92;
  stroke-dasharray: 420; stroke-dashoffset: 420;
}
.js .accent path { animation: draw 1.1s var(--ease) .55s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .accent path { stroke-dashoffset: 0; animation: none; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-sans); font-size: 1rem; font-weight: 700; letter-spacing: -.004em;
  padding: 15px 27px; border: 0; border-radius: var(--pill); cursor: pointer;
  background: var(--navy); color: var(--white); text-decoration: none; box-shadow: var(--sh);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  position: relative; overflow: hidden; text-align: center; isolation: isolate;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); background: var(--navy-900); }
.btn:active { transform: translateY(0) scale(.99); }
.btn svg { width: 17px; height: 17px; fill: currentColor; flex: none; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--lg { font-size: 1.08rem; padding: 18px 34px; }

/* el principal: aqua con resplandor */
.btn--go { background: linear-gradient(135deg, var(--aqua), #27B9A4); color: #04231E; box-shadow: var(--glow-aqua); }
.btn--go:hover { background: linear-gradient(135deg, var(--aqua-400), #2FC7B0); box-shadow: 0 0 0 1px rgba(63,217,192,.3), 0 24px 60px -14px rgba(63,217,192,.58); }
.btn--sun { background: linear-gradient(135deg, var(--sun), var(--sun-600)); color: #2A1B05; box-shadow: var(--glow-sun); }
.btn--sun:hover { background: linear-gradient(135deg, #F0B053, var(--sun-600)); }
.btn--ghost { background: var(--white); color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line), var(--sh-sm); }
.btn--ghost:hover { background: var(--blue-50); box-shadow: inset 0 0 0 1.5px var(--blue-200), var(--sh); }
.btn--outline { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.26); }
.btn--outline:hover { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }
.btn--block { width: 100%; }

/* destello que recorre el boton, con pausa larga para que no canse */
.btn--shine::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.4) 50%, transparent 62%);
  transform: translateX(-130%); animation: shine 6s var(--ease) 2.4s infinite;
}
@keyframes shine { 0% { transform: translateX(-130%); } 20%, 100% { transform: translateX(130%); } }
@media (prefers-reduced-motion: reduce) { .btn--shine::after { animation: none; } }

.check { display: inline-grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: var(--pill); background: var(--green-50); color: var(--green); }
.check svg { width: 12px; height: 12px; fill: currentColor; }
.check--d { background: rgba(63,217,192,.15); color: var(--aqua); }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.ticks li { display: flex; align-items: flex-start; gap: 11px; font-size: .99rem; }
.ticks li strong { color: var(--ink); font-weight: 700; }
.ticks--d li { color: var(--d-text); }
.ticks--d li strong { color: #fff; }

.section { padding: clamp(66px, 8.6vw, 116px) 0; }
.section--tight { padding: clamp(48px, 6vw, 78px) 0; }
.bg-blue50 { background: var(--blue-50); }
.bg-cream { background: var(--cream); }
.bg-sand { background: var(--sand); }

.shead { max-width: 64ch; margin-bottom: clamp(32px, 4.2vw, 54px); display: grid; gap: 14px; }
.shead--c { margin-inline: auto; text-align: center; justify-items: center; }
.shead--c .lead { margin-inline: auto; }

/* ==========================================================================
   Barra de progreso y barra superior
   ========================================================================== */

.prog {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 90; width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--aqua));
  box-shadow: 0 0 12px rgba(63,217,192,.6);
}

.topbar {
  position: sticky; top: 0; z-index: 70;
  /* En reposo va oscura como el hero, no transparente: la barra vive ARRIBA
     del hero en el flujo, asi que transparente dejaba el logo blanco sobre
     blanco. Al pasar el hero se vuelve clara. */
  background: var(--void); border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.topbar.is-dark { background: rgba(5,11,22,.78); backdrop-filter: saturate(170%) blur(16px); border-bottom-color: rgba(255,255,255,.08); }
.topbar.is-light { background: rgba(255,255,255,.9); backdrop-filter: saturate(170%) blur(16px); border-bottom-color: var(--line); box-shadow: 0 6px 24px -16px rgba(10,23,38,.35); }
.topbar__in { display: flex; align-items: center; gap: 18px; min-height: 70px; }
.topbar__logo img { width: 142px; filter: brightness(0) invert(1); transition: filter .3s var(--ease); }
.topbar.is-light .topbar__logo img { filter: none; }
.topbar__spacer { flex: 1; }
.topbar__tel { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: .94rem; color: #fff; white-space: nowrap; transition: color .3s var(--ease); }
.topbar.is-light .topbar__tel { color: var(--navy); }
.topbar__tel svg { width: 16px; height: 16px; fill: var(--aqua); }
.topbar .btn { padding: 11px 21px; font-size: .93rem; }
.topbar__cta-min { display: none; }
@media (max-width: 720px) { .topbar__tel span { display: none; } .topbar__logo img { width: 118px; } }
@media (max-width: 560px) {
  .topbar__in { gap: 10px; min-height: 62px; }
  .topbar__logo img { width: 104px; }
  .topbar .btn { padding: 10px 17px; font-size: .88rem; }
  .topbar__cta-full { display: none; } .topbar__cta-min { display: inline; }
}

/* ==========================================================================
   Hero: fondo vivo
   ========================================================================== */

.hero { position: relative; background: var(--void); color: var(--d-text); overflow: hidden; isolation: isolate; }

/* tres manchas de luz que se mueven lento. Es lo que hace que la pagina
   parezca encendida en vez de impresa. */
.hero__aurora { position: absolute; inset: -20% -10%; z-index: -2; pointer-events: none; filter: blur(64px); opacity: 1; }
.hero__aurora i { position: absolute; display: block; border-radius: 50%; mix-blend-mode: screen; }
.hero__aurora i:nth-child(1) { width: 52vw; height: 52vw; left: -8%; top: -14%; background: radial-gradient(circle, rgba(47,95,163,.9), transparent 66%); animation: drift1 24s ease-in-out infinite; }
.hero__aurora i:nth-child(2) { width: 46vw; height: 46vw; right: -6%; top: 2%;  background: radial-gradient(circle, rgba(63,217,192,.5), transparent 66%); animation: drift2 30s ease-in-out infinite; }
.hero__aurora i:nth-child(3) { width: 40vw; height: 40vw; left: 30%; bottom: -26%; background: radial-gradient(circle, rgba(123,163,220,.55), transparent 68%); animation: drift3 27s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(7%,9%) scale(1.14); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1.08); } 50% { transform: translate(-9%,7%) scale(1); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(6%,-11%) scale(1.18); } }
@media (prefers-reduced-motion: reduce) { .hero__aurora i { animation: none !important; } }

/* reticula tenue, da sensacion de instrumento */
.hero__mesh {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 85% 72% at 50% 38%, #000 22%, transparent 78%);
          mask-image: radial-gradient(ellipse 85% 72% at 50% 38%, #000 22%, transparent 78%);
}

.hero__in {
  position: relative; display: grid; grid-template-columns: 1fr 1.05fr;
  gap: clamp(30px, 4.4vw, 62px); align-items: center;
  padding: clamp(42px, 5.6vw, 78px) 0 clamp(52px, 6vw, 84px);
}
.hero__copy { display: grid; gap: 22px; justify-items: start; }
.hero__copy h1 { color: #fff; max-width: 13ch; }
.hero__copy .lead { color: var(--d-text); max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero__note { font-size: .88rem; color: var(--d-dim); display: flex; align-items: center; gap: 7px; }
.hero__note svg { width: 14px; height: 14px; fill: var(--aqua); }

.hero__proof { display: flex; align-items: center; gap: 14px; padding-top: 2px; }
.hero__faces { display: flex; flex: none; }
.hero__faces img { width: 42px; height: 42px; border-radius: var(--pill); object-fit: cover; object-position: 50% 14%; border: 2.5px solid var(--void); margin-left: -13px; background: var(--blue-100); }
.hero__faces img:first-child { margin-left: 0; }
.hero__proof p { font-size: .85rem; color: var(--d-dim); line-height: 1.35; }
.hero__proof b { color: #fff; display: block; font-size: .92rem; }

@media (max-width: 960px) {
  .hero__in { grid-template-columns: 1fr; padding-top: 30px; }
  .hero__copy { justify-items: center; text-align: center; }
  .hero__copy h1, .hero__copy .lead { max-width: 100%; }
  .hero__cta, .hero__proof { justify-content: center; }
}

/* ==========================================================================
   El instrumento: curva en vivo
   ========================================================================== */

.scope {
  position: relative; border-radius: var(--r-xl); padding: clamp(20px, 2.3vw, 28px);
  background: linear-gradient(165deg, rgba(22,48,90,.72), rgba(10,20,36,.88));
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.72), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
}
.scope__top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.scope__k { font-size: .7rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: var(--d-dim); }
.scope__live { display: inline-flex; align-items: center; gap: 7px; font-size: .7rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--aqua); }
.scope__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--aqua); animation: pulse 2.1s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(63,217,192,.6); } 70% { box-shadow: 0 0 0 9px rgba(63,217,192,0); } 100% { box-shadow: 0 0 0 0 rgba(63,217,192,0); } }
@media (prefers-reduced-motion: reduce) { .scope__dot { animation: none; } }

.scope__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 12px 0 2px; }
.scope__big { display: flex; align-items: baseline; gap: 9px; }
.scope__big b { font-family: var(--font-serif); font-size: clamp(3.1rem, 7vw, 4.5rem); font-weight: 600; line-height: .86; color: #fff; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.scope__big span { font-size: 1.1rem; font-weight: 800; color: var(--aqua); }
.scope__sub { font-size: .88rem; color: var(--d-dim); text-align: right; line-height: 1.4; }
.scope__sub b { color: #fff; font-variant-numeric: tabular-nums; }

.chart { position: relative; width: 100%; margin: 4px 0 0; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart__line { fill: none; stroke: url(#gLine); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; filter: url(#glow); }
.chart__area { fill: url(#gArea); }
.chart__grid { stroke: rgba(255,255,255,.07); stroke-width: 1; }
.chart__dot { fill: var(--void); stroke: var(--aqua); stroke-width: 3; }
.chart__halo { fill: var(--aqua); opacity: .15; }
.chart__lab { font: 800 13px var(--font-sans); fill: #fff; font-variant-numeric: tabular-nums; }
.chart__sub { font: 700 10px var(--font-sans); fill: var(--d-dim); letter-spacing: .07em; }
.js .chart__draw { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 1.7s var(--ease) .3s forwards; }
@media (prefers-reduced-motion: reduce) { .js .chart__draw { stroke-dashoffset: 0; animation: none; } }

.scope__slider { display: grid; gap: 9px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--d-line); }
.scope__srow { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.scope__srow label { font-size: .84rem; font-weight: 700; color: var(--d-text); }
.scope__srow b { font-size: 1.18rem; color: #fff; font-variant-numeric: tabular-nums; }
.scope__ends { display: flex; justify-content: space-between; font-size: .74rem; color: var(--d-dim); font-variant-numeric: tabular-nums; }

input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: var(--pill); background: rgba(255,255,255,.14); outline: none; cursor: pointer; }
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: var(--pill);
  background: #fff; border: 4px solid var(--aqua); cursor: grab;
  box-shadow: 0 0 0 7px rgba(63,217,192,.13), 0 6px 16px rgba(0,0,0,.4);
  transition: transform .16s var(--spring), box-shadow .16s var(--ease);
}
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.1); box-shadow: 0 0 0 11px rgba(63,217,192,.18), 0 6px 16px rgba(0,0,0,.4); }
input[type=range]::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.04); }
input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border-radius: var(--pill); background: #fff; border: 4px solid var(--aqua); cursor: grab; box-shadow: 0 0 0 7px rgba(63,217,192,.13); }

.scope__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; margin-top: 16px; }
.scope__bmi { font-size: .82rem; color: var(--d-dim); }
.scope__bmi b { color: #fff; font-variant-numeric: tabular-nums; }
.scope__fn { font-size: .71rem; color: #5B718C; line-height: 1.5; margin-top: 13px; }

.hin { display: inline-flex; align-items: center; gap: 7px; }
.hin > span:first-child { font-size: .82rem; color: var(--d-text); font-weight: 700; margin-right: 2px; }
.hin input {
  width: 54px; font-family: var(--font-sans); font-size: .94rem; font-weight: 700; color: #fff;
  padding: 8px 9px; border-radius: 10px; border: 1.5px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06); text-align: center; font-variant-numeric: tabular-nums; -moz-appearance: textfield;
}
.hin input::-webkit-outer-spin-button, .hin input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hin input:focus { outline: none; border-color: var(--aqua); background: rgba(63,217,192,.1); }
.hin input::placeholder { color: var(--d-dim); font-weight: 600; }
.hin u { text-decoration: none; font-size: .8rem; color: var(--d-dim); font-weight: 700; }

/* ==========================================================================
   Cinta de confianza que corre
   ========================================================================== */

.mq { background: var(--navy-950); border-top: 1px solid rgba(255,255,255,.07); border-bottom: 1px solid rgba(255,255,255,.07); overflow: hidden; padding: 15px 0; }
.mq__t { display: flex; width: max-content; animation: slide 36s linear infinite; }
.mq:hover .mq__t { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .mq__t { animation: none; } }
@keyframes slide { to { transform: translateX(-50%); } }
.mq__g { display: flex; align-items: center; gap: 46px; padding-right: 46px; }
.mq__i { display: inline-flex; align-items: center; gap: 9px; font-size: .84rem; font-weight: 700; color: var(--d-text); white-space: nowrap; }
.mq__i svg { width: 17px; height: 17px; fill: var(--aqua); flex: none; }
.mq__i img { width: 24px; flex: none; }

/* ==========================================================================
   Numeros
   ========================================================================== */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  background: var(--white); border-radius: var(--r-lg); padding: 32px 22px; text-align: center;
  box-shadow: var(--sh-sm); border: 1px solid var(--line); position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.stat::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--blue), var(--aqua)); }
.stat:last-child::before { background: linear-gradient(90deg, var(--sun), var(--sun-200)); }
.stat__n { font-family: var(--font-serif); font-size: clamp(2.1rem, 4.1vw, 3.1rem); font-weight: 600; color: var(--navy); line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.stat:last-child .stat__n { color: var(--sun-600); }
.stat__l { margin-top: 12px; font-size: .9rem; color: var(--muted); line-height: 1.42; }
.fnote { margin-top: 22px; font-size: .78rem; color: var(--muted); line-height: 1.55; max-width: 92ch; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   Before y after: arrastrar para revelar
   ========================================================================== */

.bas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 920px) { .bas { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }

.bac { background: var(--white); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); display: flex; flex-direction: column; }
.bac:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }

/* La caja toma su alto de la foto "before", que va en flujo normal. Asi la
   persona nunca se recorta por mucho que cambie el ancho de la columna.
   La foto "after" se superpone encima, exactamente del mismo tamaño. */
.ba { position: relative; background: var(--blue-100); overflow: hidden; cursor: ew-resize; touch-action: pan-y; user-select: none; }
.ba__before { display: block; width: 100%; height: auto; pointer-events: none; }
.ba__after { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; clip-path: inset(0 0 0 var(--x, 68%)); }
.ba__tag { position: absolute; top: 12px; z-index: 3; font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 5px 11px; border-radius: var(--pill); backdrop-filter: blur(6px); pointer-events: none; }
.ba__tag--b { left: 12px; background: rgba(10,23,38,.6); color: #fff; }
.ba__tag--a { right: 12px; background: rgba(63,217,192,.92); color: #04231E; }

.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--x, 68%); width: 3px; z-index: 4; background: #fff; box-shadow: 0 0 14px rgba(0,0,0,.45); transform: translateX(-50%); pointer-events: none; }
.ba__grip { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 46px; height: 46px; border-radius: var(--pill); background: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.32); display: grid; place-items: center; }
.ba__grip svg { width: 22px; height: 22px; fill: var(--navy); }

@keyframes nudge { 0%,100% { transform: translate(-50%,-50%); } 30% { transform: translate(calc(-50% - 10px),-50%); } 62% { transform: translate(calc(-50% + 10px),-50%); } }
@media (prefers-reduced-motion: reduce) { .js .ba__grip { animation: none; } }

.ba__hint { position: absolute; left: 50%; bottom: 13px; transform: translateX(-50%); z-index: 3; font-size: .72rem; font-weight: 700; color: #fff; background: rgba(10,23,38,.62); padding: 6px 13px; border-radius: var(--pill); backdrop-filter: blur(6px); white-space: nowrap; pointer-events: none; transition: opacity .3s var(--ease); }
.ba.touched .ba__hint { opacity: 0; }

.bac__b { padding: 20px 22px 24px; display: grid; gap: 12px; flex: 1; align-content: start; }
.bac__r { display: flex; align-items: baseline; gap: 9px; }
.bac__r b { font-family: var(--font-serif); font-size: 1.7rem; font-weight: 600; color: var(--navy); letter-spacing: -.03em; }
.bac__r span { font-size: .85rem; color: var(--muted); font-weight: 600; }
.bac__q { font-size: .93rem; line-height: 1.56; color: var(--text); }
.bac__w { display: flex; align-items: center; gap: 11px; padding-top: 2px; }
.bac__av { width: 36px; height: 36px; border-radius: var(--pill); background: var(--blue-100); color: var(--navy); display: grid; place-items: center; font-weight: 800; font-size: .92rem; flex: none; }
.bac__who { display: grid; }
.bac__n { font-weight: 800; color: var(--ink); font-size: .93rem; line-height: 1.25; }
.bac__t { font-size: .79rem; color: var(--muted); }

/* ==========================================================================
   Seccion oscura: como actua
   ========================================================================== */

.sci { position: relative; background: var(--void); color: var(--d-text); overflow: hidden; isolation: isolate; }
.sci__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sci__glow i { position: absolute; border-radius: 50%; filter: blur(80px); }
.sci__glow i:nth-child(1) { width: 44vw; height: 44vw; left: -10%; top: 8%; background: radial-gradient(circle, rgba(63,217,192,.26), transparent 66%); }
.sci__glow i:nth-child(2) { width: 42vw; height: 42vw; right: -8%; bottom: -12%; background: radial-gradient(circle, rgba(47,95,163,.55), transparent 66%); }
.sci h2, .sci h3 { color: #fff; }
.sci .lead { color: var(--d-text); }

.path { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 4vw, 56px); align-items: center; }
@media (max-width: 880px) { .path { grid-template-columns: 1fr; } }

.diag { width: 100%; height: auto; overflow: visible; }
.diag .wire { fill: none; stroke: rgba(255,255,255,.13); stroke-width: 2; }
.diag .flow { fill: none; stroke-width: 2.8; stroke-linecap: round; stroke-dasharray: 10 16; filter: url(#glow2); }
.js .diag .flow { animation: flow 2.3s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -52; } }
@media (prefers-reduced-motion: reduce) { .js .diag .flow { animation: none; } }
.diag .node { fill: rgba(10,20,36,.96); stroke-width: 2; }
.diag .nlab { font: 800 13px var(--font-sans); fill: #fff; }
.diag .nsub { font: 700 9.5px var(--font-sans); fill: var(--d-dim); letter-spacing: .09em; }

.pcards { display: grid; gap: 14px; }
.pcard { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; padding: 20px 22px; border-radius: var(--r-lg); background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.09); transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease); }
.pcard:hover { background: rgba(255,255,255,.08); border-color: rgba(63,217,192,.32); transform: translateX(5px); }
.pcard__i { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: rgba(63,217,192,.13); color: var(--aqua); flex: none; }
.pcard__i svg { width: 21px; height: 21px; fill: currentColor; }
.pcard h3 { font-size: 1.06rem; margin-bottom: 5px; }
.pcard p { font-size: .92rem; line-height: 1.55; color: var(--d-text); }

/* ==========================================================================
   Pilares y bloque partido
   ========================================================================== */

.pil { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pil__c { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 26px 30px; display: grid; gap: 13px; align-content: start; box-shadow: var(--sh-sm); transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease); }
.pil__c:hover { transform: translateY(-5px); box-shadow: var(--sh); border-color: var(--blue-200); }
.pil__i { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-700); }
.pil__i svg { width: 23px; height: 23px; fill: currentColor; }
.pil__c--sun .pil__i { background: var(--sun-50); color: var(--sun-600); }
.pil__c p { font-size: .95rem; line-height: 1.58; }
@media (max-width: 900px) { .pil { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .pil { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4.6vw, 64px); align-items: center; }
.split__fig img { border-radius: var(--r-xl); box-shadow: var(--sh-lg); aspect-ratio: 4 / 3.1; object-fit: cover; width: 100%; }
.split__c { display: grid; gap: 18px; justify-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ==========================================================================
   Pasos
   ========================================================================== */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.steps::before { content: ""; position: absolute; top: 31px; left: 14%; right: 14%; height: 2px; background: repeating-linear-gradient(90deg, var(--blue-200) 0 7px, transparent 7px 15px); }
.step { position: relative; display: grid; gap: 13px; justify-items: center; text-align: center; }
.step__n { width: 62px; height: 62px; border-radius: var(--pill); display: grid; place-items: center; background: var(--white); border: 2px solid var(--blue-200); color: var(--navy); font-family: var(--font-serif); font-size: 1.45rem; font-weight: 600; box-shadow: var(--sh-sm); position: relative; z-index: 1; transition: transform .3s var(--spring); }
.step:hover .step__n { transform: scale(1.08); }
.step:last-child .step__n { background: linear-gradient(135deg, var(--aqua), #27B9A4); border-color: transparent; color: #04231E; }
.step p { font-size: .95rem; max-width: 30ch; margin-inline: auto; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 28px; } .steps::before { display: none; } }

/* ==========================================================================
   Precios
   ========================================================================== */

.tabs { display: inline-flex; padding: 5px; background: var(--blue-50); border-radius: var(--pill); border: 1px solid var(--line); margin-inline: auto; position: relative; }
.tab { font-family: var(--font-sans); font-size: .95rem; font-weight: 700; color: var(--muted); padding: 11px 24px; border: 0; border-radius: var(--pill); background: transparent; cursor: pointer; transition: color .22s var(--ease); white-space: nowrap; position: relative; z-index: 1; }
.tab[aria-selected="true"] { color: var(--navy); }
.tabs__pill { position: absolute; top: 5px; bottom: 5px; left: 5px; width: 0; border-radius: var(--pill); background: var(--white); box-shadow: var(--sh-sm); transition: left .34s var(--spring), width .34s var(--spring); }

.plans { display: grid; gap: 14px; max-width: 780px; margin: 32px auto 0; }
.plan { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 18px; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 20px 24px; box-shadow: var(--sh-sm); position: relative; transition: border-color .24s var(--ease), box-shadow .24s var(--ease), transform .24s var(--ease); animation: pop .4s var(--ease) backwards; }
@keyframes pop { from { opacity: 0; transform: translateY(12px); } }
.plan:nth-child(2) { animation-delay: .06s } .plan:nth-child(3) { animation-delay: .12s } .plan:nth-child(4) { animation-delay: .18s }
.plan:hover { border-color: var(--blue-200); box-shadow: var(--sh); transform: translateY(-2px); }
.plan--best { border-color: var(--aqua); box-shadow: var(--glow-aqua); }
.plan__flag { position: absolute; top: -11px; left: 24px; background: linear-gradient(135deg, var(--aqua), #27B9A4); color: #04231E; font-size: .67rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 4px 12px; border-radius: var(--pill); }
.plan__len { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.plan__meta { font-size: .85rem; color: var(--muted); }
.plan__p { text-align: right; white-space: nowrap; }
.plan__p b { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 600; color: var(--navy); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.plan__p i { font-style: normal; font-size: .88rem; color: var(--muted); font-weight: 600; }
.plan .btn { padding: 11px 21px; font-size: .9rem; }
@media (max-width: 720px) {
  .plan { grid-template-columns: 1fr auto; gap: 10px 14px; padding-top: 24px; }
  .plan__meta { grid-column: 1 / -1; order: 3; }
  .plan .btn { grid-column: 1 / -1; order: 4; width: 100%; }
}

.incl { margin: 30px auto 0; max-width: 780px; background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--r-lg); padding: 24px 26px; }
.incl h3 { font-size: 1.02rem; margin-bottom: 15px; }
.incl ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px 22px; }
@media (max-width: 620px) { .incl ul { grid-template-columns: 1fr; } }

.pays { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 20px; }
.pays span { font-size: .8rem; font-weight: 700; color: var(--muted); background: var(--white); border: 1px solid var(--line); border-radius: var(--pill); padding: 7px 15px; }

.brandnote { max-width: 780px; margin: 22px auto 0; text-align: center; font-size: .9rem; color: var(--muted); background: var(--white); border: 1px dashed var(--line); border-radius: var(--r); padding: 16px 20px; }
.brandnote b { color: var(--ink); }

/* ==========================================================================
   Preguntas
   ========================================================================== */

.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 11px; }
.qa { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .22s var(--ease), box-shadow .22s var(--ease); }
.qa[open] { border-color: var(--blue-200); box-shadow: var(--sh-sm); }
.qa summary { list-style: none; cursor: pointer; padding: 19px 54px 19px 22px; position: relative; font-weight: 700; font-size: 1rem; color: var(--ink); line-height: 1.45; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -6px; border-right: 2.2px solid var(--blue); border-bottom: 2.2px solid var(--blue); transform: rotate(45deg); transition: transform .25s var(--ease); }
.qa[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.qa summary:hover { background: var(--blue-50); }
.qa__b { padding: 0 22px 21px; font-size: .95rem; line-height: 1.62; color: var(--text); }
.qa__b p + p { margin-top: 10px; }

/* ==========================================================================
   La Promesa
   ========================================================================== */

.promise { background: linear-gradient(168deg, var(--sun-50) 0%, var(--sand) 100%); position: relative; overflow: hidden; }
.promise::before { content: ""; position: absolute; top: -34%; left: 50%; transform: translateX(-50%); width: 940px; height: 940px; background: radial-gradient(circle, rgba(231,163,60,.2), transparent 64%); pointer-events: none; }
.promise__card { position: relative; max-width: 760px; margin-inline: auto; text-align: center; background: var(--white); border: 1px solid var(--sun-200); border-radius: var(--r-xl); padding: clamp(38px, 5vw, 60px) clamp(26px, 4.4vw, 58px); box-shadow: var(--sh-lg); display: grid; gap: 18px; justify-items: center; }
.promise__i { width: 68px; height: 68px; border-radius: var(--pill); display: grid; place-items: center; background: linear-gradient(135deg, var(--sun), var(--sun-600)); color: #fff; box-shadow: var(--glow-sun); }
.promise__i svg { width: 32px; height: 32px; fill: currentColor; }
.promise__card h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.promise__card .lead { margin-inline: auto; }
.promise__ticks { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; }
.promise__ticks li { font-size: .92rem; }

/* ==========================================================================
   Pie y barra fija
   ========================================================================== */

.foot { background: var(--void); color: #8EA4C0; font-size: .86rem; line-height: 1.62; }
.foot__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 34px; padding: clamp(44px, 5vw, 64px) 0 34px; }
.foot__logo { width: 152px; filter: brightness(0) invert(1); opacity: .95; margin-bottom: 14px; }
.foot h4 { color: #fff; font-family: var(--font-sans); font-size: .8rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; margin: 0 0 13px; }
.foot a { color: #B9CCE4; text-decoration: none; transition: color .2s var(--ease); }
.foot a:hover { color: var(--aqua); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot__legal { border-top: 1px solid rgba(255,255,255,.09); padding: 26px 0 40px; display: grid; gap: 13px; font-size: .77rem; color: #63789A; }
.foot__legal p { max-width: 100ch; }
@media (max-width: 800px) { .foot__top { grid-template-columns: 1fr; gap: 28px; } }

.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: none; background: rgba(255,255,255,.95); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 11px 14px calc(11px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 26px -18px rgba(10,23,38,.4); transform: translateY(110%); transition: transform .32s var(--ease); }
.sticky.on { transform: translateY(0); }
.sticky__in { display: flex; align-items: center; gap: 12px; }
.sticky__p { flex: 1; min-width: 0; line-height: 1.25; }
.sticky__p b { display: block; font-size: .95rem; color: var(--ink); font-weight: 800; }
.sticky__p span { font-size: .78rem; color: var(--muted); }
.sticky .btn { padding: 13px 22px; font-size: .94rem; flex: none; }
@media (max-width: 760px) { .sticky { display: block; } body { padding-bottom: 78px; } }

/* aparicion al hacer scroll, con escalonado.
   El contenido es visible por defecto: la clase .js la pone el script del head,
   asi que si el JS falla la pagina se lee igual. */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv-s > * { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .rv-s.in > * { opacity: 1; transform: none; }
.js .rv-s.in > *:nth-child(1) { transition-delay: 0s }
.js .rv-s.in > *:nth-child(2) { transition-delay: .07s }
.js .rv-s.in > *:nth-child(3) { transition-delay: .14s }
.js .rv-s.in > *:nth-child(4) { transition-delay: .21s }
.js .rv-s.in > *:nth-child(5) { transition-delay: .28s }
.js .rv-s.in > *:nth-child(6) { transition-delay: .35s }
@media (prefers-reduced-motion: reduce) { .js .rv, .js .rv-s > * { opacity: 1; transform: none; transition: none; } }
