/* =============================================================
   Dr. Sosa · demo v2 cinemático — negro / azul profundo / aqua
   ============================================================= */
/* ---------- Fuentes autoalojadas (sin llamadas a Google) ---------- */
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/ibm-plex-mono-400.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/ibm-plex-mono-500.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: italic; font-weight: 500; font-display: swap; src: url(assets/fonts/plus-jakarta-sans-500-italic.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: italic; font-weight: 700; font-display: swap; src: url(assets/fonts/plus-jakarta-sans-700-italic.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: 400; font-display: swap; src: url(assets/fonts/plus-jakarta-sans-400.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(assets/fonts/plus-jakarta-sans-500.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: 600; font-display: swap; src: url(assets/fonts/plus-jakarta-sans-600.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(assets/fonts/plus-jakarta-sans-700.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: 800; font-display: swap; src: url(assets/fonts/plus-jakarta-sans-800.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 {
  --bg:      #050810;
  --bg-2:    #0a1322;
  --panel:   #0c1626;
  --navy:    #0e3a5c;
  --aqua:    #22d3ee;
  --aqua-soft: rgba(34, 211, 238, 0.12);
  --text:    #e6f0f6;
  --mute:    rgba(230, 240, 246, 0.58);
  --line:    rgba(230, 240, 246, 0.12);

  --serif: "Plus Jakarta Sans", -apple-system, "Segoe UI", sans-serif;
  --sans:  "Plus Jakarta Sans", -apple-system, "Segoe UI", sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, monospace;

  --gutter: clamp(1.2rem, 4vw, 3rem);
  --maxw: 1180px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 18px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
/* Sin overflow-x en html: en Safari iOS rompe el pintado de position:fixed (header invisible al cargar) */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--serif); font-weight: 800; text-wrap: balance; line-height: 1.08; letter-spacing: -0.02em; }
h1 em, h2 em, blockquote em { font-style: italic; color: var(--aqua); }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--aqua); color: var(--bg); }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--aqua); color: var(--bg); z-index: 9999; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 1rem; }
.svg-defs { position: absolute; }
.scrub-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.kicker {
  font-family: var(--sans); font-weight: 700; font-size: .72rem;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--aqua); margin-bottom: 1rem;
}
.section { max-width: var(--maxw); margin-inline: auto; padding: clamp(4.5rem, 10vw, 8rem) var(--gutter); }
.section-head { max-width: 720px; margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.section-sub { margin-top: 1rem; color: var(--mute); max-width: 54ch; }

/* Reveals */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .35s var(--ease-out), color .35s var(--ease-out), border-color .35s var(--ease-out);
}
.btn-primary { background: var(--aqua); color: #04222a; box-shadow: 0 8px 30px rgba(34, 211, 238, .3); }
.ico-wa { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* Widget flotante de WhatsApp (aparece al pasar el hero) */
.wa-float {
  position: fixed; z-index: 90;
  right: max(1.1rem, env(safe-area-inset-right));
  bottom: max(1.1rem, env(safe-area-inset-bottom));
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--aqua);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 32px rgba(0, 0, 0, .45), 0 4px 14px rgba(37, 211, 102, .35);
  opacity: 0; transform: translateY(16px) scale(.85); pointer-events: none;
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
}
.wa-float.is-on { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; fill: #04222a; }
.no-js .wa-float { opacity: 1; transform: none; pointer-events: auto; }

/* Pulso tipo radar detrás del botón (solo cuando está visible) */
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--aqua); z-index: -1; opacity: 0;
}
.wa-float.is-on::after { animation: waPulse 2.6s ease-out infinite; }
@keyframes waPulse {
  0%   { transform: scale(1); opacity: .45; }
  70%  { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}
/* Sacudida breve del icono cada ~7 s */
.wa-float.is-on svg { animation: waWiggle 7s ease-in-out 2s infinite; }
@keyframes waWiggle {
  0%, 86%, 100% { transform: rotate(0); }
  88% { transform: rotate(-14deg); }
  91% { transform: rotate(11deg); }
  94% { transform: rotate(-7deg); }
  97% { transform: rotate(3deg); }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float.is-on::after, .wa-float.is-on svg { animation: none; }
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(34, 211, 238, .42); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--aqua); color: var(--aqua); transform: translateY(-2px); }
.btn-big { padding: 1rem 2rem; font-size: 1.02rem; }

/* ---------- Preloader ---------- */
.splash {
  position: fixed; inset: 0; z-index: 300;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s var(--ease-out);
  animation: splashSafety .01s 3s forwards;
}
.splash.is-out { opacity: 0; pointer-events: none; }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; } }
.splash-logo { position: relative; }
.splash-logo img {
  filter: drop-shadow(0 0 24px rgba(34, 211, 238, .45));
  clip-path: inset(0 0 100% 0);
  animation: logoBuild 1.3s var(--ease-out) .1s forwards;
}
@keyframes logoBuild { to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) {
  .splash-logo img { clip-path: none; animation: none; }
}

/* ---------- Nav ---------- */
.nav {
  /* sticky en vez de fixed: Safari iOS a veces no pinta un fixed hasta el primer scroll */
  position: sticky; top: 0; z-index: 100;
  height: 64px; margin-bottom: -64px; /* no empuja al hero: se superpone igual que un fixed */
  /* Velo degradado para contraste sobre el hero desde el primer frame */
  background: linear-gradient(180deg, rgba(5, 8, 16, .82) 0%, rgba(5, 8, 16, .4) 62%, rgba(5, 8, 16, 0) 100%);
  transition: background .4s, box-shadow .4s;
}
.nav.is-solid { background: rgba(5, 8, 16, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav-inner { max-width: var(--maxw); margin-inline: auto; height: 100%; padding: 0 var(--gutter); display: flex; align-items: center; gap: 1.4rem; }
.nav-brand { display: flex; align-items: center; gap: .7rem; margin-right: auto; }
.nav-logo { width: 26px; height: auto; }
.nav-name { font-family: var(--serif); font-weight: 600; font-size: 1.02rem; }
.nav-links { display: none; gap: 1.4rem; font-size: .9rem; font-weight: 500; }
.nav-links a { position: relative; padding-block: .3rem; color: var(--mute); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--aqua); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out); }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: none; }
.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; padding: .5rem; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); transition: transform .3s var(--ease-out); }
.nav.is-open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.is-open .nav-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
@media (max-width: 959px) {
  /* CTA compacto en móvil: solo el icono, siempre a un toque */
  .nav-cta { display: inline-flex; width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; }
  .nav-cta .ico-wa { width: 20px; height: 20px; }
  .nav-cta-text { display: none; }
  .nav.is-open { background: var(--bg-2); }
  .nav.is-open .nav-links {
    display: flex; flex-direction: column; gap: .3rem;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-2); padding: 1rem var(--gutter) 1.4rem;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-links a { padding-block: .55rem; font-size: 1.05rem; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* ---------- ESC 1 · Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: clip; }
.hero-media, .hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img, .hero-media video { object-fit: cover; object-position: 72% center; }
.hero-media video { opacity: 0; transition: opacity 1s var(--ease-out); }
.hero-media video.is-playing { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero-media video { display: none; } }
[data-hero-media] { animation: heroDrift 24s ease-in-out infinite alternate; transform-origin: 70% 40%; }
@keyframes heroDrift { from { transform: scale(1); } to { transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) { [data-hero-media] { animation: none; } }
.hero-veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,8,16,.88) 0%, rgba(5,8,16,.55) 42%, rgba(5,8,16,.08) 70%), linear-gradient(0deg, rgba(5,8,16,.9) 0%, transparent 30%); }
.hero-inner { position: relative; z-index: 2; max-width: var(--maxw); margin-inline: auto; width: 100%; padding: 7rem var(--gutter) 5rem; }
.hero-title { font-size: clamp(2.3rem, 5.8vw, 4.2rem); max-width: 18ch; margin-bottom: 1.2rem; text-shadow: 0 2px 30px rgba(5, 8, 16, .8); }
.hero-sub { color: var(--mute); font-size: 1.08rem; max-width: 44ch; margin-bottom: 1.9rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.9rem; }
.hero-creds { display: flex; flex-wrap: wrap; gap: .5rem; }
.hero-creds li { font-family: var(--mono); font-size: .66rem; letter-spacing: .05em; color: var(--mute); border: 1px solid var(--line); background: rgba(5, 8, 16, .5); border-radius: 999px; padding: .34rem .8rem; }
.hero-hint { position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); z-index: 2; width: 22px; height: 36px; border: 1.5px solid var(--line); border-radius: 12px; }
.hero-hint span { position: absolute; left: 50%; top: 7px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--aqua); animation: hintDrop 1.8s ease-in-out infinite; }
@keyframes hintDrop { 0%, 100% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-hint span { animation: none; } }

/* ---------- ESC 2 · Scrub ---------- */
.scrub { position: relative; height: 420vh; background: var(--bg); }
.scrub-corta { height: 340vh; }
@media (max-width: 959px) {
  .scrub { height: 300vh; }
  .scrub-corta { height: 250vh; }
}
.scrub-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; }
.scrub-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.scrub-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--bg); transition: opacity .5s var(--ease-out); }
.scrub-loading.is-done { opacity: 0; pointer-events: none; }
.scrub-loading span { width: 42px; height: 42px; border-radius: 50%; border: 2px solid rgba(34, 211, 238, .2); border-top-color: var(--aqua); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.scrub-copy {
  position: absolute; max-width: 34rem; opacity: 0; transform: translateY(24px);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
  pointer-events: none;
  text-shadow: 0 2px 24px rgba(5, 8, 16, .92), 0 1px 4px rgba(5, 8, 16, .95);
}
.scrub-copy.is-on { opacity: 1; transform: none; }
.scrub-copy h2 { font-size: clamp(1.6rem, 4vw, 2.9rem); }
.copy-a { left: clamp(1.2rem, 6vw, 6rem); top: 16%; }
.copy-b { right: clamp(1.2rem, 6vw, 6rem); top: 16%; text-align: right; }
.copy-c { left: clamp(1.2rem, 6vw, 6rem); top: 16%; }
.scrub-progress { position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); width: 2px; height: 34vh; background: rgba(230, 240, 246, .14); border-radius: 2px; }
.scrub-progress span { display: block; width: 100%; height: 100%; background: linear-gradient(180deg, var(--aqua), var(--navy)); transform-origin: top; transform: scaleY(0); border-radius: 2px; }

/* ---------- ESC 3 · Padecimientos (columna protagonista) ---------- */
.ail { position: relative; height: 620vh; background: var(--bg); }
.ail-sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: clip;
}
.ail-head {
  position: absolute; z-index: 2;
  left: clamp(1.2rem, 6vw, 6rem); top: clamp(4.6rem, 9vh, 6.5rem);
  text-shadow: 0 2px 24px rgba(5, 8, 16, .92), 0 1px 4px rgba(5, 8, 16, .95);
}
.ail-head h2 { font-size: clamp(1.7rem, 3.8vw, 2.6rem); }
.ail-spine { position: absolute; inset: 4.2rem 0 3rem; }
.spine-img { mix-blend-mode: screen; }
.ail-slides { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.ail-slide {
  position: absolute; top: 54%; max-width: 30rem;
  opacity: 0; transform: translateY(calc(-50% + 24px));
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
  pointer-events: none;
  text-shadow: 0 2px 24px rgba(5, 8, 16, .92), 0 1px 4px rgba(5, 8, 16, .95);
}
.ail-slide.is-current { opacity: 1; transform: translateY(-50%); pointer-events: auto; }
.slide-l { left: clamp(1.2rem, 6vw, 6rem); }
.slide-r { right: clamp(1.2rem, 6vw, 6rem); text-align: right; }
.slide-r p { margin-left: auto; }
.ail-num { font-family: var(--mono); font-size: .7rem; letter-spacing: .18em; color: var(--aqua); display: block; margin-bottom: .6rem; }
.ail-slide h3 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); margin-bottom: .6rem; }
.ail-slide p { color: var(--mute); max-width: 34ch; }
.ail-go { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.1rem; padding: .62rem 1.1rem; border: 1.5px solid rgba(34, 211, 238, .45); border-radius: 999px; color: var(--aqua); font-size: .86rem; font-weight: 600; transition: border-color .2s, background .2s, transform .2s; }
.ail-go .ico-wa { width: 1rem; height: 1rem; }
.ail-go:hover { border-color: var(--aqua); background: rgba(34, 211, 238, .08); transform: translateY(-2px); }
.ail-cta { margin-top: 1rem; font-size: .84rem; font-style: italic; }
.ail-cta a { color: var(--aqua); border-bottom: 1px solid rgba(34, 211, 238, .4); }

@media (max-width: 959px) {
  .ail { height: 430vh; }
  .ail-spine { inset: 3.8rem 0 2.4rem; opacity: .75; }
  .ail-head { right: var(--gutter); }
  .ail-slide { left: var(--gutter); right: var(--gutter); max-width: none; }
  .slide-r { text-align: left; }
  .slide-r p { margin-left: 0; }
  .ail-slide h3 { font-size: 1.45rem; }
}

/* Sin JS: la secuencia cae a lista estática */
html:not(.is-ready) .ail { height: auto; }
html:not(.is-ready) .ail-sticky { position: static; height: auto; overflow: visible; max-width: var(--maxw); margin-inline: auto; padding: 5rem var(--gutter) 2rem; }
html:not(.is-ready) .ail-head { position: static; margin-bottom: 1.5rem; }
html:not(.is-ready) .ail-spine { position: relative; inset: auto; height: 320px; margin-block: 1.5rem; }
html:not(.is-ready) .ail-slides { position: static; }
html:not(.is-ready) .ail-slide { position: static; opacity: 1; transform: none; margin-bottom: 1.6rem; pointer-events: auto; text-align: left; max-width: none; }
.spine-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .5s var(--ease-out), filter .5s var(--ease-out); }
.spine-img.is-on { opacity: 1; }
.ail-spine.has-zone .spine-img { filter: brightness(.5) saturate(.75); }

/* Glow de zona sobre la columna (CSS puro, con pulso).
   El stage replica el área contain de la imagen (3:4) para que los % apunten a la columna. */
.spine-stage {
  position: absolute; top: 0; bottom: 0; left: 50%;
  transform: translateX(-50%);
  aspect-ratio: 3 / 4; height: 100%; max-width: 100%;
  pointer-events: none;
}
.zone-glow {
  position: absolute; width: 30%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(34, 211, 238, .9) 0%, rgba(34, 211, 238, .3) 42%, transparent 66%);
  filter: blur(5px); mix-blend-mode: screen;
  opacity: 0; transform: translate(-50%, -50%) scale(.75);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
  pointer-events: none;
}
.zone-glow.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); animation: zonePulse 2.2s ease-in-out infinite; }
@keyframes zonePulse { 50% { transform: translate(-50%, -50%) scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .zone-glow.is-on { animation: none; } }
.zone-glow[data-zone-glow="cervical"] { left: 50%; top: 16%; }
.zone-glow[data-zone-glow="toracica"] { left: 52%; top: 39%; }
.zone-glow[data-zone-glow="lumbar"]   { left: 48%; top: 62%; }
.spine-tag { position: absolute; left: 50%; bottom: .2rem; transform: translateX(-50%); font-family: var(--sans); font-weight: 700; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--aqua); white-space: nowrap; text-shadow: 0 1px 10px rgba(5, 8, 16, .9); }

/* ---------- ESC 4 · Quirófano ---------- */
.teatro { position: relative; min-height: 92vh; display: flex; align-items: flex-end; overflow: clip; }
.teatro-media, .teatro-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.teatro-media img { object-fit: cover; }
[data-teatro] { animation: teatroPush 26s ease-in-out infinite alternate; transform-origin: 55% 45%; }
@keyframes teatroPush { from { transform: scale(1); } to { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { [data-teatro] { animation: none; } }
.teatro-veil { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,8,16,.92) 0%, rgba(5,8,16,.35) 40%, rgba(5,8,16,.15) 100%); }
.teatro-inner { position: relative; z-index: 2; max-width: var(--maxw); margin-inline: auto; width: 100%; padding: 6rem var(--gutter) 4rem; }
.teatro-copy { max-width: 560px; }
.teatro-copy h2 { font-size: clamp(1.9rem, 4.6vw, 3.2rem); margin-bottom: 1.4rem; text-shadow: 0 2px 26px rgba(5, 8, 16, .85); }
.check-list { display: grid; gap: .65rem; }
.check-list li { position: relative; padding-left: 1.8rem; color: var(--text); font-size: .98rem; text-shadow: 0 1px 12px rgba(5, 8, 16, .8); }
.check-list li::before { content: ""; position: absolute; left: 0; top: .32rem; width: .95rem; height: .95rem; border-radius: 50%; border: 1.5px solid var(--aqua); background: rgba(34, 211, 238, .12); }
.check-list li::after { content: ""; position: absolute; left: .27rem; top: .55rem; width: .38rem; height: .2rem; border-left: 2px solid var(--aqua); border-bottom: 2px solid var(--aqua); transform: rotate(-45deg); }

/* ---------- ESC 5 · Trayectoria ---------- */
.tray { background: var(--bg); }
.tray-wrap { display: grid; gap: 3rem; align-items: start; }
.timeline { position: relative; max-width: 640px; }
.timeline-line { position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); border-radius: 2px; }
.timeline-progress { display: block; width: 100%; height: 100%; background: linear-gradient(180deg, var(--aqua), var(--navy)); transform-origin: top; transform: scaleY(0); border-radius: 2px; }
.no-js .timeline-progress, .timeline-progress.is-static { transform: none; }
.timeline-list { display: grid; gap: 1.9rem; }
.tl-item {
  position: relative; padding-left: 2.5rem;
  opacity: .28; transform: translateX(-10px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.tl-item.is-lit { opacity: 1; transform: none; }
html:not(.is-ready) .tl-item { opacity: 1; transform: none; }
.tl-item::before {
  content: ""; position: absolute; left: 0; top: .4rem; width: 16px; height: 16px;
  border-radius: 50%; background: var(--bg);
  border: 2.5px solid rgba(34, 211, 238, .35);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, .06);
  transition: border-color .5s var(--ease-out), box-shadow .5s var(--ease-out), background .5s var(--ease-out);
}
.tl-item.is-lit::before {
  border-color: var(--aqua);
  background: rgba(34, 211, 238, .25);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, .16), 0 0 18px rgba(34, 211, 238, .5);
}
.tl-year { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; color: var(--aqua); text-transform: uppercase; }
.tl-item h3 { font-size: 1.16rem; margin: .25rem 0 .3rem; }
.tl-item p { color: var(--mute); font-size: .92rem; max-width: 52ch; }
.tray-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; align-content: start; }
.tray-photos figure { border-radius: 14px; overflow: hidden; background: var(--panel); }
.tray-photos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .7s var(--ease-out); }
.tray-photos figure:hover img { transform: scale(1.05); }
.tray-photos figcaption { font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); padding: .55rem .7rem; }
@media (min-width: 960px) {
  .tray-wrap { grid-template-columns: 1.1fr .9fr; gap: 4rem; }
}

/* ---------- ESC 6 · El doctor ---------- */
.doctor { max-width: var(--maxw); margin-inline: auto; padding: clamp(4.5rem, 10vw, 8rem) var(--gutter); display: grid; gap: 2.6rem; align-items: center; }
.doctor-figure { max-width: 400px; width: 100%; justify-self: center; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.doctor-figure img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.doctor-copy blockquote { font-family: var(--serif); font-size: clamp(1.35rem, 3vw, 2rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; max-width: 24ch; margin-bottom: 1.4rem; }
.doctor-note { color: var(--mute); font-size: .95rem; max-width: 46ch; margin-bottom: 1.8rem; }
.doctor-reel { max-width: 560px; }
.doctor-reel video {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 14px; box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: #000;
}
.doctor-reel figcaption { margin-top: .6rem; font-family: var(--sans); font-weight: 700; font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
@media (min-width: 960px) {
  .doctor { grid-template-columns: .8fr 1.2fr; gap: 4.5rem; }
  .doctor-figure { justify-self: start; }
}

/* ---------- ESC 7 · Contacto ---------- */
.contacto { padding-bottom: clamp(4rem, 8vw, 6rem); }
.contacto-grid { display: grid; gap: 1.2rem; }
.c-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.6rem; display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; }
.c-card h3 { font-size: 1.25rem; }
.c-card p { color: var(--mute); font-size: .94rem; }
.c-card address { font-style: normal; }
.c-alt { font-size: .86rem; }
.c-alt a { color: var(--aqua); border-bottom: 1px solid rgba(34, 211, 238, .35); }
@media (min-width: 960px) { .contacto-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: #030509; }
.footer-inner { max-width: var(--maxw); margin-inline: auto; padding: clamp(2.6rem, 6vw, 4rem) var(--gutter); display: grid; gap: 1.1rem; }
.footer-lockup { display: flex; align-items: center; gap: 1rem; }
.footer-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; display: block; }
.footer-sub { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.footer-creds, .footer-legal { font-size: .8rem; color: var(--mute); max-width: 72ch; }
.footer-copy { font-size: .76rem; color: rgba(230, 240, 246, .35); margin-top: .5rem; }

/* ---------- Páginas legales / 404 ---------- */
.legal-wrap { max-width: 760px; margin-inline: auto; padding: 8rem var(--gutter) 5rem; }
.legal-wrap h1 { font-size: clamp(1.8rem, 4.4vw, 2.6rem); margin-bottom: .6rem; }
.legal-updated { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: 2.4rem; display: block; }
.legal-wrap h2 { font-size: 1.15rem; margin: 2rem 0 .7rem; }
.legal-wrap p, .legal-wrap li { color: var(--mute); font-size: .95rem; line-height: 1.7; }
.legal-wrap ul { padding-left: 1.2rem; display: grid; gap: .4rem; margin-block: .6rem; }
.legal-wrap a { color: var(--aqua); border-bottom: 1px solid rgba(34, 211, 238, .35); }
.legal-wrap .btn { margin-top: 1.6rem; }
