:root {
  --navy: #0b1f3a;
  --navy-2: #13325c;
  --deep: #06142a;
  --blue: #2563eb;
  --blue-light: #60a5fa;
  --teal: #0f766e;
  --teal-light: #5eead4;
  --teal-soft: #e3f6f3;
  --gold: #c9a45c;
  --bg: #f6f8fb;
  --white: #ffffff;
  --ink: #0f1b2d;
  --muted: #56657a;
  --line: #e2e8f0;
  --wa: #15803d;
  --radius: 16px;
  /* Escala tipográfica (6 pasos) y pesos: 400 · 600 · 800 */
  --fs-xs: .8125rem;
  --fs-sm: .875rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: 1.5rem;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 .1 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --shadow: 0 10px 30px rgba(11, 31, 58, .08);
  --glow: 0 10px 28px -6px rgba(37, 99, 235, .55);
  --glow-strong: 0 0 0 4px rgba(59, 130, 246, .28), 0 16px 40px -6px rgba(37, 99, 235, .85);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: var(--fs-base);
  -webkit-font-smoothing: antialiased;
}
b, strong { font-weight: 800; }
html { overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: var(--fs-md); font-weight: 800; }
p { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section.alt { background: var(--bg); }
.section.dark { background: var(--grain), var(--navy); color: #dbe5f3; }
.section.dark h2, .section.dark h3 { color: #fff; }
.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs); font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 14px;
}
.dark .eyebrow, .hero .eyebrow { color: var(--gold); }
.lead { font-size: var(--fs-md); color: var(--muted); max-width: 640px; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .lead { margin: 0 auto; }

/* ===== Botones: movimiento, brillo azul y resaltado ===== */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px; border-radius: 999px; font-weight: 800; font-size: var(--fs-base);
  text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit;
  box-shadow: var(--glow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s ease, color .25s ease;
}
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: shine 4.8s ease-in-out infinite;
}
.btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: var(--glow-strong); }
.btn:active, .btn.is-active { transform: scale(.97); box-shadow: var(--glow-strong); }
.btn:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 3px; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.dark .btn-outline { border-color: rgba(147, 197, 253, .55); color: #fff; background: rgba(255, 255, 255, .04); }
.dark .btn-outline:hover { background: var(--blue); border-color: var(--blue); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
@keyframes shine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }

/* ===== Encabezado ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 46px; height: 46px; }
.brand span { font-weight: 800; font-size: var(--fs-base); line-height: 1.1; color: var(--navy); }
.brand small { display: block; font-weight: 600; font-size: var(--fs-xs); color: var(--muted); letter-spacing: .04em; }
#nav { display: flex; align-items: center; gap: 8px; }
#nav .nav-link {
  text-decoration: none; font-weight: 600; font-size: var(--fs-sm); color: var(--navy);
  padding: 13px 14px; border-radius: 999px;
  transition: background .25s ease, color .25s ease, box-shadow .25s ease, opacity .35s ease, transform .35s var(--ease);
}
#nav .nav-link:hover, #nav .nav-link.is-active { background: var(--blue); color: #fff; box-shadow: var(--glow); }
.lang { border: 1px solid var(--line); border-radius: 999px; padding: 11px 14px; font-size: var(--fs-sm); font-weight: 600; text-decoration: none; color: var(--navy); margin: 0 6px; }
.lang:hover { border-color: var(--blue); color: var(--blue); }
#nav .nav-cta { padding: 12px 18px; font-size: var(--fs-sm); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }
/* En computadora, los enlaces viven sobre el implante; aparecen arriba al bajar */
@media (min-width: 821px) {
  body:not(.scrolled) #nav .nav-link { opacity: 0; transform: translateY(-8px); pointer-events: none; }
}

/* ===== Inicio: fondo blanco, implante 3D al centro ===== */
.hero {
  position: relative; overflow: hidden; color: var(--ink);
  min-height: calc(100svh - 72px);
  display: grid; grid-template-rows: auto 1fr; gap: 0;
  padding: 26px 0 0;
  background:
    radial-gradient(38% 48% at 50% 54%, rgba(37, 99, 235, .14), transparent 70%),
    radial-gradient(60% 40% at 50% 112%, rgba(96, 165, 250, .22), transparent 70%),
    #fff;
}
.hook { margin: 0 auto; padding: 0 20px; text-align: center; letter-spacing: normal; }
.hook-line {
  display: block; color: var(--blue); font-weight: 800; line-height: 1.1; letter-spacing: -.03em;
  font-size: clamp(1.7rem, 3.4vw, 3.1rem);
}
.hook-line .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .16em; margin-bottom: -.1em; }
.hook-line .w > span { display: inline-block; transform: translateY(110%); animation: wordUp .8s var(--ease) forwards; animation-delay: calc(.15s + var(--i) * 70ms); }
.hook-sub { display: block; margin-top: 10px; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); letter-spacing: .02em; opacity: 0; animation: fadeUp .7s var(--ease) .9s forwards; }
@keyframes wordUp { to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.hero-stage { position: relative; }
.hero-3d { position: relative; height: clamp(420px, calc(100svh - 72px - 118px), 860px); max-width: 1100px; margin: 0 auto; }
@media (min-width: 900px) { .hook-line { white-space: nowrap; } }
.hero-3d canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y;
  filter: drop-shadow(0 26px 34px rgba(37, 99, 235, .38));
}
.hero-3d canvas:active { cursor: grabbing; }
.hero-3d .fallback {
  position: absolute; left: 50%; top: 50%; height: 92%; width: auto; transform: translate(-50%, -50%);
  filter: drop-shadow(0 30px 40px rgba(37, 99, 235, .45));
}
.hero-3d.is-3d .fallback { display: none; }

.hero-foot {
  position: absolute; left: 0; right: 0; bottom: 26px; z-index: 2; pointer-events: none;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 20px;
  width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 28px;
}
.hero-foot > * { pointer-events: auto; }
.hero-foot > * { opacity: 0; animation: fadeUp .8s var(--ease) forwards; }
.hero-foot > :nth-child(1) { animation-delay: 1.1s; }
.hero-foot > :nth-child(2) { animation-delay: 1.6s; }
.hero-foot > :nth-child(3) { animation-delay: 1.3s; }
.stats { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.stats li { display: flex; flex-direction: column; }
.stats strong { font-size: clamp(1.9rem, 2.8vw, 2.6rem); font-weight: 800; color: var(--navy); line-height: 1; font-variant-numeric: tabular-nums; }
.stats li > span { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); margin-top: 6px; }
.hero .hint {
  margin: 0 0 6px; text-align: center; white-space: nowrap;
  font-size: var(--fs-sm); font-weight: 600; letter-spacing: .04em; color: rgba(86, 101, 122, .8);
}
.hero .hint.on { animation: blink 2.4s ease-in-out infinite; opacity: .3; }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: .9; } }
.hero-cta { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
/* Botones sobre el implante */
.hotspots { position: absolute; inset: 0; pointer-events: none; }
.hotspot { position: absolute; left: var(--x); top: var(--y); pointer-events: auto; text-decoration: none; transition: opacity .35s ease; }
.hero-3d.is-3d .hotspot { left: 0; top: 0; will-change: transform; }
.hotspot .pos { display: block; transform: translate(-9px, -50%); }
.hotspot.left .pos { transform: translate(calc(-100% + 9px), -50%); }
.hotspot .float { display: flex; align-items: center; gap: 10px; animation: bob 3.4s ease-in-out infinite; animation-delay: var(--d, 0s); }
.hotspot.left .float { flex-direction: row-reverse; }
.hotspot .dot {
  position: relative; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: radial-gradient(circle, #fff 0 25%, var(--blue-light) 30%);
  box-shadow: 0 0 0 4px rgba(96, 165, 250, .25), 0 0 20px #3b82f6;
}
.hotspot .dot::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--blue-light);
  animation: ping 2.4s var(--ease) infinite; animation-delay: var(--d, 0s);
}
.hotspot .label {
  color: #fff; font-weight: 800; font-size: var(--fs-sm); white-space: nowrap;
  padding: 12px 18px; border-radius: 999px;
  background: rgba(11, 31, 58, .72); backdrop-filter: blur(8px);
  border: 1px solid rgba(147, 197, 253, .4);
  box-shadow: 0 10px 28px -4px rgba(37, 99, 235, .7);
  transition: background .25s ease, transform .25s var(--ease), box-shadow .25s ease, border-color .25s ease;
}
.hotspot:hover .label, .hotspot:focus-visible .label, .hotspot.is-active .label {
  background: var(--blue); border-color: #bfdbfe; transform: scale(1.1);
  box-shadow: 0 0 0 5px rgba(59, 130, 246, .3), 0 12px 36px rgba(37, 99, 235, .95);
}
.hotspot:focus-visible { outline: none; }
.hotspot.behind { opacity: .38; }
.hotspot.clicked .label { animation: pop .5s var(--ease); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1.1); } }

/* ===== Animación al aparecer ===== */
.js-reveal .reveal {
  opacity: 0; transform: translateY(36px) scale(.98);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
  transition-delay: var(--rd, 0s);
}
.js-reveal .reveal.in { opacity: 1; transform: none; }

/* ===== Tratamientos ===== */
.treat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px -18px rgba(37, 99, 235, .45); border-color: #bfdbfe; }
.card p { color: var(--muted); margin: 0; }
.card .icon {
  width: 48px; height: 48px; border-radius: var(--radius); background: var(--teal-soft); color: var(--teal);
  display: grid; place-items: center; margin-bottom: 16px; transition: transform .35s var(--ease);
}
.card:hover .icon { transform: rotate(-8deg) scale(1.1); }
.card .icon svg { width: 26px; height: 26px; }
.card.featured { grid-column: span 2; grid-row: span 2; background: var(--navy); color: #c9d6e8; border: 0; display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: center; }
.card.featured h3 { color: #fff; font-size: var(--fs-lg); }
.card.featured p { color: #c9d6e8; }
.card.featured .icon { background: rgba(255, 255, 255, .1); color: var(--gold); }
.card.featured img { border-radius: var(--radius); width: 100%; height: auto; }
.tag { display: inline-block; background: var(--gold); color: var(--navy); font-weight: 800; font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.center-cta { text-align: center; margin-top: 40px; }

/* ===== Especialidad: antes y después que se pinta ===== */
.smile-reveal { background: var(--bg); }
.smile-reveal.revealed .sr-title { display: none; }
.sr-stage { position: relative; max-width: 1000px; margin: 0 auto; }
.sr-paint {
  position: relative; aspect-ratio: 971 / 390; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 30px 60px -28px rgba(37, 99, 235, .65); touch-action: none;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Ccircle cx='28' cy='28' r='24' fill='rgba(255,255,255,.18)' stroke='white' stroke-width='3'/%3E%3Ccircle cx='28' cy='28' r='3' fill='%232563eb'/%3E%3C/svg%3E") 28 28, crosshair;
  transition: opacity .6s ease, transform .6s var(--ease);
}
.sr-paint img, .sr-paint canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sr-paint img { object-fit: cover; }
@media (max-width: 640px) { .sr-paint { aspect-ratio: 4 / 3; } }
.sr-paint canvas { transition: opacity .7s ease; }
.sr-hand {
  position: absolute; top: 50%; left: 22%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, .9) 0 18%, rgba(96, 165, 250, .55) 22%, rgba(37, 99, 235, 0) 70%);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .8); animation: swipe 2.6s ease-in-out infinite;
}
@keyframes swipe { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(min(52vw, 520px)); } }
.sr-paint.painting .sr-hand { opacity: 0; transition: opacity .3s ease; }
.sr-meter { position: absolute; left: 16px; right: 16px; bottom: 14px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.sr-meter span { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, var(--blue-light), #fff); box-shadow: 0 0 12px var(--blue-light); transition: width .2s ease; }
.sr-result { display: none; }
.sr-stage.done .sr-paint { display: none; }
.sr-stage.done .sr-result { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sr-fig { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 48px -26px rgba(11, 31, 58, .6); }
.sr-fig img { width: 100%; height: auto; }
.sr-fig figcaption {
  position: absolute; top: 12px; left: 12px; padding: 6px 14px; border-radius: 999px;
  font-size: var(--fs-xs); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: rgba(11, 31, 58, .75);
}
.sr-fig.after figcaption { background: var(--blue); box-shadow: var(--glow); }
.sr-stage.done .sr-fig.before { animation: fromLeft .9s var(--ease) both; }
.sr-stage.done .sr-fig.after { animation: fromRight .9s var(--ease) .12s both; }
.sr-copy { grid-column: 1 / -1; text-align: center; padding-top: 18px; }
.sr-stage.done .sr-copy { animation: fadeUp .8s var(--ease) .5s both; }
.sr-copy h3 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); color: var(--navy); margin-bottom: 8px; }
.sr-copy p { color: var(--muted); margin-bottom: 22px; }
.sr-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.sr-skip-wrap { text-align: center; margin: 18px 0 0; }
.sr-skip { background: none; border: 0; font: inherit; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 12px; }
.sr-skip:hover { color: var(--blue); }
.sr-stage.done + .sr-skip-wrap { display: none; }
@keyframes fromLeft { from { opacity: 0; transform: translateX(-60px) rotate(-2deg); } to { opacity: 1; transform: none; } }
@keyframes fromRight { from { opacity: 0; transform: translateX(60px) rotate(2deg); } to { opacity: 1; transform: none; } }

/* ===== Tratamientos: presentación con video de fondo ===== */
.treat-show { position: relative; height: calc(6 * 80vh + 100vh); background: var(--deep); }
.ts-sticky { position: sticky; top: 72px; height: calc(100vh - 72px); overflow: hidden; }
.ts-slide {
  position: absolute; inset: 0; display: flex; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s .7s;
}
.ts-slide.is-active { opacity: 1; visibility: visible; transition: opacity .7s ease; }
.ts-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); transition: transform 7s ease-out; }
.ts-slide.is-active .ts-bg { transform: scale(1); }
.ts-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6, 20, 42, .94) 0%, rgba(6, 20, 42, .7) 42%, rgba(6, 20, 42, .2) 100%), var(--grain);
}
.ts-copy { position: relative; z-index: 3; width: 100%; color: #dbe5f3; }
/* En computadora el video vertical va en una tarjeta nítida y su foto difuminada llena el fondo */
@media (min-width: 900px) {
  .ts-slide::before {
    content: ''; position: absolute; inset: -60px; z-index: 0;
    background: var(--poster) center / cover; filter: blur(42px) saturate(1.2); opacity: .45;
  }
  .ts-slide::after { z-index: 1; background: radial-gradient(40% 60% at 74% 50%, rgba(37, 99, 235, .35), transparent 70%), linear-gradient(90deg, rgba(6, 20, 42, .95) 0%, rgba(6, 20, 42, .75) 50%, rgba(6, 20, 42, .55) 100%), var(--grain); }
  .ts-bg {
    z-index: 2; inset: auto; top: 50%; right: max(72px, calc((100vw - var(--max)) / 2 + 40px));
    width: auto; height: 80%; aspect-ratio: 9 / 16; border-radius: 26px;
    box-shadow: 0 40px 90px -30px rgba(37, 99, 235, .9), 0 0 0 1px rgba(255, 255, 255, .14);
    transform: translateY(-42%) rotate(4deg) scale(.9); opacity: .4;
    transition: transform 1s var(--ease), opacity .8s ease;
  }
  .ts-slide.is-active .ts-bg { transform: translateY(-50%) rotate(0deg); opacity: 1; }
}
.ts-title { font-size: clamp(2.6rem, 6.4vw, 5.8rem); line-height: 1; color: #fff; max-width: 12ch; margin: 0 0 22px; letter-spacing: -.035em; }
.ts-title .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .16em; margin-bottom: -.08em; }
.ts-title .w > span { display: inline-block; transform: translateY(110%); transition: transform .8s var(--ease); transition-delay: calc(.1s + var(--i) * 80ms); }
.ts-slide.is-active .ts-title .w > span { transform: none; }
.ts-copy p { font-size: var(--fs-md); max-width: 32ch; margin-bottom: 26px; }
.ts-copy p, .ts-copy .btn, .ts-copy .tag { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s var(--ease); }
.ts-slide.is-active .ts-copy p { opacity: 1; transform: none; transition-delay: .45s; }
.ts-slide.is-active .ts-copy .btn { opacity: 1; transform: none; transition-delay: .6s; }
.ts-slide.is-active .ts-copy .tag { opacity: 1; transform: none; }
.ts-ui {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 max(20px, calc((100vw - var(--max)) / 2 + 20px)); color: #9fb1c8; font-size: var(--fs-sm); font-weight: 600;
}
.ts-count { white-space: nowrap; }
.ts-count b { color: #fff; font-size: var(--fs-lg); font-weight: 800; }
.ts-nav { display: flex; gap: 4px; }
.ts-dot { position: relative; width: 52px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.ts-dot::before, .ts-dot i { content: ''; position: absolute; left: 4px; top: 20px; height: 4px; border-radius: 4px; }
.ts-dot::before { right: 4px; background: rgba(255, 255, 255, .22); transition: background .25s ease; }
.ts-dot i { width: calc((100% - 8px) * var(--f, 0)); background: var(--blue-light); box-shadow: 0 0 10px var(--blue); }
.ts-dot:hover::before { background: rgba(255, 255, 255, .5); }
.ts-dot:focus-visible { outline: 2px solid var(--blue-light); border-radius: 6px; }
.ts-caption { text-transform: uppercase; letter-spacing: .14em; font-size: var(--fs-xs); }

/* ===== Navegación lateral y barra de progreso ===== */
/* Resultados: comparador que se arrastra */
.compare-wrap { display: grid; grid-template-columns: minmax(0, 480px) 1fr; gap: 56px; align-items: center; }
.compare {
  --pos: 50%; position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  background: var(--navy); box-shadow: 0 30px 60px -28px rgba(37, 99, 235, .65);
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmp-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp-tag { position: absolute; top: 14px; padding: 6px 14px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; pointer-events: none; }
.cmp-tag.before { left: 14px; background: rgba(11, 31, 58, .75); }
.cmp-tag.after { right: 14px; background: var(--blue); box-shadow: var(--glow); }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 14px rgba(37, 99, 235, .9); pointer-events: none; }
.cmp-handle::after {
  content: '\2039\00a0\203A'; position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; transform: translate(-50%, -50%);
  display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; font-size: 1.4rem; font-weight: 800; line-height: 1;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .85), var(--glow);
}
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.compare:focus-within .cmp-handle::after { box-shadow: 0 0 0 4px var(--blue-light), var(--glow-strong); }
.cmp-side h3 { font-size: var(--fs-lg); color: var(--navy); }
.cmp-side p { color: var(--muted); margin-bottom: 12px; }
.cmp-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 28px; }
.cmp-thumbs button { position: relative; aspect-ratio: 4 / 5; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer; background: var(--line); opacity: .65; transition: opacity .25s ease, transform .25s var(--ease), box-shadow .25s ease; }
.cmp-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.cmp-thumbs button:hover { opacity: 1; transform: translateY(-3px); }
.cmp-thumbs button[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 3px var(--blue), var(--glow); }
.cmp-thumbs button:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 2px; }

/* Por qué y pasos: luz que sigue al cursor */
.why:hover { background-image: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(96, 165, 250, .28), transparent 70%); }
.step:hover { background-image: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(96, 165, 250, .16), transparent 70%); }

/* Pasos: la línea se llena al bajar */
.steps { position: relative; padding-top: 28px; }
.steps::before, .steps::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 4px; background: var(--line); }
.steps::after { background: linear-gradient(90deg, var(--blue), var(--blue-light)); box-shadow: 0 0 12px rgba(37, 99, 235, .7); transform-origin: 0 50%; transform: scaleX(var(--p, 1)); }
.steps.js-scrub .step:not(.on)::before { background: #94a3b8; box-shadow: none; }
.step::before { transition: background .35s ease, box-shadow .35s ease; }
.step.on { border-color: #bfdbfe; }

/* Doctor: línea de tiempo */
.doc-grid .creds { position: relative; padding-left: 28px; }
.creds::before, .creds::after { content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--line); }
.creds::after { background: var(--blue); transform-origin: 50% 0; transform: scaleY(var(--p, 1)); }
.creds li { position: relative; }
.creds li::before { content: ''; position: absolute; left: -28px; top: 7px; width: 13px; height: 13px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px #fff; z-index: 1; transition: background .3s ease; }
.creds.js-scrub li:not(.on)::before { background: #94a3b8; }

/* Contacto: opciones que se tocan y horario en vivo */
.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0 0 16px; }
.chips legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: var(--fs-sm); color: var(--navy); }
form .chips label { position: relative; display: block; margin: 0; font-weight: 600; cursor: pointer; }
form .chips input { position: absolute; left: 0; top: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chips span { display: flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; transition: background .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease; }
.chips label:hover span { border-color: var(--blue); }
.chips input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: var(--glow); }
.chips input:focus-visible + span { outline: 3px solid var(--blue-light); outline-offset: 2px; }
.open-now { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: var(--fs-sm); font-weight: 600; color: #fff; }
.open-now::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .25); }
.open-now.closed::before { background: var(--gold); box-shadow: 0 0 0 4px rgba(201, 164, 92, .25); }

@media (max-width: 960px) {
  .compare-wrap { grid-template-columns: 1fr; gap: 28px; justify-items: stretch; }
  .compare { width: 100%; max-width: 480px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .steps { padding-top: 0; padding-left: 20px; }
  .steps::before, .steps::after { right: auto; bottom: 0; width: 4px; height: auto; }
  .steps::after { transform-origin: 50% 0; transform: scaleY(var(--p, 1)); background: linear-gradient(180deg, var(--blue), var(--blue-light)); }
  .cmp-side .btn { width: 100%; }
}

.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; pointer-events: none; }
.progress span { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--blue), var(--teal-light)); box-shadow: 0 0 10px rgba(37, 99, 235, .7); }
.side-dots { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 40; display: none; flex-direction: column; gap: 4px; }
.side-dots a { position: relative; display: grid; place-items: center; width: 28px; height: 28px; text-decoration: none; }
.side-dots a::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: rgba(148, 163, 184, .75); box-shadow: 0 0 0 3px rgba(255, 255, 255, .75); transition: transform .25s var(--ease), background .25s ease, box-shadow .25s ease; }
.side-dots a:hover::before, .side-dots a.is-active::before { background: var(--blue); transform: scale(1.45); box-shadow: 0 0 0 3px #fff, 0 0 14px rgba(37, 99, 235, .9); }
.side-dots span {
  position: absolute; right: 34px; white-space: nowrap; padding: 6px 12px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 800;
  color: #fff; background: var(--navy); box-shadow: var(--glow); opacity: 0; transform: translateX(8px); transition: opacity .2s ease, transform .2s var(--ease); pointer-events: none;
}
.side-dots a:hover span, .side-dots a:focus-visible span { opacity: 1; transform: none; }
@media (min-width: 1100px) { .side-dots { display: flex; } }
/* ===== Por qué ===== */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why { padding: 26px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); transition: background .3s ease, transform .35s var(--ease), box-shadow .35s ease; }
.why:hover { background: rgba(37, 99, 235, .14); transform: translateY(-4px); box-shadow: 0 18px 40px -16px rgba(37, 99, 235, .8); }
.why .icon { color: var(--gold); margin-bottom: 14px; }
.why .icon svg { width: 30px; height: 30px; }
.why p { margin: 0; color: #b8c7db; }

/* ===== Resultados ===== */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.ba-grid figure { margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s ease; }
.ba-grid figure:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -18px rgba(37, 99, 235, .45); }
.ba-grid img { width: 100%; height: auto; }
.ba-grid figcaption { padding: 10px 14px; font-size: var(--fs-sm); color: var(--muted); font-weight: 600; display: flex; justify-content: space-between; }
.ba-grid figcaption b { color: var(--teal); }
.video-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-top: 48px; align-items: start; }
.video-card { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--glow); }
.video-card img { width: 100%; height: auto; opacity: .92; transition: transform .6s var(--ease); }
.video-card:hover img { transform: scale(1.04); }
.video-card video { width: 100%; height: auto; }
.video-card button {
  position: absolute; inset: 0; border: 0; background: linear-gradient(0deg, rgba(11, 31, 58, .75), rgba(11, 31, 58, 0) 55%);
  cursor: pointer; display: flex; align-items: flex-end; justify-content: space-between; padding: 20px; color: #fff; text-align: left;
  font-family: inherit;
}
.video-card .play { width: 60px; height: 60px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; box-shadow: var(--glow); transition: transform .25s var(--ease), box-shadow .25s ease; }
.video-card button:hover .play { transform: scale(1.12); box-shadow: var(--glow-strong); }
.video-card .play svg { width: 24px; height: 24px; color: var(--navy); margin-left: 4px; }
.video-card .who b { display: block; font-size: var(--fs-md); }
.video-card .who span { font-size: var(--fs-sm); opacity: .85; }
.video-card.vertical { max-width: 340px; justify-self: center; }

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; align-items: start; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin: 0; transition: transform .35s var(--ease), box-shadow .35s ease; }
.review:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -18px rgba(37, 99, 235, .45); }
.stars { display: flex; gap: 2px; color: #f5b301; margin-bottom: 12px; }
.stars svg { width: 18px; height: 18px; }
.review blockquote { margin: 0 0 16px; color: var(--ink); }
.review figcaption { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); }
.review figcaption .g { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); font-weight: 800; color: var(--blue); }
.review figcaption b { display: block; color: var(--navy); }
.review figcaption span { color: var(--muted); font-size: var(--fs-xs); }
.reviews-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 28px; padding: 24px 28px; border-radius: var(--radius); background: var(--teal-soft); }
.reviews-cta p { margin: 0; font-weight: 600; color: var(--navy); }

/* ===== Doctor ===== */
.doc-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.doc-photo { border-radius: var(--radius); overflow: hidden; background: #8e9296; box-shadow: 0 30px 60px -24px rgba(37, 99, 235, .55); max-width: 420px; }
.doc-photo img { width: 100%; height: auto; }
.creds { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.creds li { display: flex; gap: 12px; align-items: baseline; }
.creds b { color: var(--teal); min-width: 92px; font-size: var(--fs-sm); }

/* ===== Pasos ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; transition: transform .35s var(--ease), box-shadow .35s ease; }
.step:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -18px rgba(37, 99, 235, .45); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 800; margin-bottom: 14px; box-shadow: var(--glow);
}
.step p { color: var(--muted); margin: 0; }

/* ===== Visita desde EE. UU. + mapa 3D ===== */
.visit-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; margin-top: 72px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; }
.checks svg { width: 22px; height: 22px; color: var(--teal); flex: none; margin-top: 3px; }

.map3d {
  position: relative; height: 560px; perspective: 1300px; display: grid; place-items: center;
  border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(60% 60% at 50% 55%, rgba(37, 99, 235, .16), transparent 70%);
}
.map3d-stage {
  position: relative; width: min(82%, 420px); aspect-ratio: 760 / 855; transform-style: preserve-3d;
  transform: rotateX(calc(52deg + var(--ry, 0deg))) rotateZ(calc(-20deg + var(--rx, 0deg)));
  transition: transform .8s var(--ease);
}
.map3d-plane { position: absolute; inset: 0; transform-style: preserve-3d; animation: drift 14s ease-in-out infinite; }
.map3d-plane img {
  width: 100%; height: 100%; border-radius: var(--radius); object-fit: cover;
  box-shadow: 0 0 0 1px rgba(11, 31, 58, .08), 0 50px 70px -10px rgba(11, 31, 58, .45), 0 0 80px rgba(37, 99, 235, .25);
}
.map3d .route { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map3d .route .line { fill: none; stroke: var(--blue); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 5s var(--ease) infinite; filter: drop-shadow(0 0 8px rgba(37, 99, 235, .9)); }
.map3d .route .car { fill: #fff; stroke: var(--blue); stroke-width: 5; }
.map3d .base {
  position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%;
  background: rgba(37, 99, 235, .35); animation: ping 2.2s var(--ease) infinite;
}
.map3d .base.clinic { background: rgba(201, 164, 92, .55); }
.map3d .pin {
  position: absolute; transform-style: preserve-3d; transform-origin: 0 0;
  transform: rotateZ(calc(20deg - var(--rx, 0deg))) rotateX(calc(-52deg - var(--ry, 0deg)));
}
.map3d .pin .stand { position: absolute; left: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; transform: translateX(-50%); animation: bob 3s ease-in-out infinite; }
.map3d .pin .bubble {
  background: var(--navy); color: #fff; font-weight: 800; font-size: var(--fs-sm); white-space: nowrap;
  padding: 8px 14px; border-radius: var(--radius); box-shadow: var(--glow);
}
.map3d .pin.clinic .bubble { background: var(--blue); box-shadow: var(--glow-strong); }
.map3d .pin .bubble small { display: block; font-weight: 600; opacity: .8; font-size: var(--fs-xs); }
.map3d .pin .stem { width: 2px; height: 46px; background: linear-gradient(var(--navy), transparent); }
.map3d .pin.clinic .stem { background: linear-gradient(var(--blue), transparent); height: 40px; }
.map3d .pin.border .stem { height: 100px; }
@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) rotateZ(0deg); }
  50% { transform: translate3d(-14px, 10px, 0) rotateZ(5deg); }
}
@keyframes draw { 0% { stroke-dashoffset: 900; } 60%, 100% { stroke-dashoffset: 0; } }

/* ===== FAQ ===== */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; transition: box-shadow .3s ease, border-color .3s ease; }
.faq details:hover, .faq details[open] { border-color: #bfdbfe; box-shadow: 0 14px 30px -18px rgba(37, 99, 235, .6); }
.faq summary { cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--blue); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* ===== Contacto ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; }
.contact-list svg { width: 24px; height: 24px; color: var(--gold); flex: none; margin-top: 2px; }
.contact-list a { color: #fff; font-weight: 800; }
.contact-list small { display: block; color: #9fb1c8; }
.hours { width: 100%; border-collapse: collapse; margin-top: 4px; }
.hours td { padding: 4px 0; }
.hours td:last-child { text-align: right; color: #fff; font-weight: 600; }
form.card { color: var(--ink); }
form.card:hover { transform: none; }
form label { display: block; font-weight: 600; font-size: var(--fs-sm); margin-bottom: 6px; color: var(--navy); }
form input, form select, form textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; font-size: var(--fs-base); margin-bottom: 16px; background: #fff; color: var(--ink);
  transition: box-shadow .25s ease;
}
form input:focus, form select:focus, form textarea:focus { outline: 2px solid var(--blue); border-color: transparent; box-shadow: var(--glow); }
form .btn { width: 100%; }
form .note { font-size: var(--fs-xs); color: var(--muted); margin: 12px 0 0; text-align: center; }
.map { margin-top: 40px; border-radius: var(--radius); overflow: hidden; border: 0; width: 100%; height: 340px; }

/* ===== Pie ===== */
.site-footer { background: var(--deep); color: #8fa3bd; padding: 40px 0 110px; font-size: var(--fs-sm); }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.site-footer a { color: #c9d6e8; text-decoration: none; margin-left: 18px; }
.site-footer a:hover { color: #fff; }

/* ===== Barra fija de contacto en celular ===== */
.mobile-bar { display: none; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero { grid-template-rows: auto auto auto; padding-bottom: 22px; }
  .hero-foot { position: static; grid-template-columns: 1fr; justify-items: center; gap: 14px; }
  .hero-3d { height: clamp(400px, 58svh, 620px); }
  .hero-foot .hint { order: -1; }
  .stats { justify-content: center; }
  .hero-cta { justify-content: center; }
  .doc-grid, .contact-grid, .visit-grid, .video-grid { grid-template-columns: 1fr; }
  .treat-grid, .why-grid { grid-template-columns: 1fr 1fr; }
  .reviews { grid-template-columns: 1fr; }
  .card.featured { grid-column: span 2; grid-row: auto; }
  .steps { grid-template-columns: 1fr 1fr; }
  .doc-photo { margin: 0 auto; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  #nav {
    position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 4px; padding: 8px 20px 20px; display: none;
  }
  #nav.open { display: flex; }
  #nav .nav-link { padding: 12px 14px; }
  #nav .lang { margin: 6px 0; text-align: center; }
  #nav .nav-cta { margin-top: 8px; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .section { padding: 64px 0; }
  .container { padding: 0 16px; }
  .treat-show { height: calc(6 * 70vh + 100vh); }
  .ts-slide { align-items: flex-end; padding-bottom: 150px; }
  .ts-slide::after { background: linear-gradient(0deg, rgba(6, 20, 42, .95) 0%, rgba(6, 20, 42, .75) 45%, rgba(6, 20, 42, .15) 100%); }
  .ts-title { font-size: clamp(2.2rem, 10.5vw, 3.2rem); }
  .ts-copy p { font-size: var(--fs-base); }
  .ts-ui { bottom: 82px; }
  .ts-caption { display: none; }
  .ts-dot { width: 40px; }
  .sr-stage.done .sr-result { grid-template-columns: 1fr; }
  .hero { padding: 20px 0 18px; min-height: calc(100svh - 72px - 64px); }
  .hook-line { font-size: clamp(1.55rem, 7.4vw, 2rem); }
  .hook-sub { font-size: var(--fs-xs); }
  .hero-3d { height: clamp(340px, 50svh, 520px); }
  .hero-cta { display: none; }
  .stats { gap: 22px; }
  .stats strong { font-size: 1.75rem; }
  .hotspot .label { font-size: var(--fs-xs); padding: 13px 14px; }
  .brand small { white-space: nowrap; }
  .hotspot .dot { width: 14px; height: 14px; }
  .treat-grid, .why-grid, .ba-grid, .steps { grid-template-columns: 1fr; }
  .card.featured { grid-column: auto; grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
  .map3d { height: 440px; }
  .map3d .pin .bubble { font-size: var(--fs-xs); padding: 6px 10px; }
  .site-footer a { margin: 0 14px 0 0; }
  .mobile-bar {
    display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(11, 31, 58, .08);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: 6px; padding: 13px 6px; border-radius: var(--radius);
    font-weight: 800; font-size: var(--fs-sm); text-decoration: none; background: var(--bg); color: var(--navy);
    box-shadow: 0 6px 16px -8px rgba(37, 99, 235, .6); transition: transform .2s var(--ease), background .2s ease;
  }
  .mobile-bar a:active { transform: scale(.95); background: var(--blue); color: #fff; }
  .mobile-bar a:first-child { background: var(--wa); color: #fff; }
  .mobile-bar svg { width: 18px; height: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .hook-line .w > span, .ts-title .w > span { transform: none; }
  .hero-foot > *, .hook-sub { opacity: 1; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}

/* ===== Continuidad: cada sección sube sobre la anterior ===== */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
main > section:not(.hero) { position: relative; background-color: #fff; border-radius: 32px 32px 0 0; margin-top: -32px; overflow: clip; box-shadow: 0 -24px 60px -20px rgba(37, 99, 235, .28); }
.section.smile-reveal { background-color: var(--bg); }
.treat-show { background: var(--deep) !important; }
.treat-show.why-show { background: #eef4ff !important; }
.hero > * { transform: scale(calc(1 - var(--hs, 0) * .1)); opacity: calc(1 - var(--hs, 0) * 1.1); }
.hero > .hero-foot { transform: none; }
@media (min-width: 900px) and (min-height: 620px) {
  .hero { position: sticky; top: 72px; }
}

/* ===== Cifras de la portada ===== */
.stats { flex-direction: column; gap: 10px; }
.stats li {
  position: relative; overflow: hidden; flex-direction: row; align-items: center; gap: 14px;
  min-width: 248px; padding: 10px 18px; border-radius: var(--radius); background: rgba(255, 255, 255, .86);
  border: 1px solid #dbeafe; box-shadow: 0 16px 34px -18px rgba(37, 99, 235, .6); backdrop-filter: blur(8px);
}
.stats strong {
  min-width: 96px; font-size: clamp(2.3rem, 3.6vw, 3.1rem);
  background: linear-gradient(120deg, var(--blue), #38bdf8); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats li > span { max-width: 96px; margin: 0; line-height: 1.25; color: var(--navy); }
.stats li::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .9) 50%, transparent 65%); transform: translateX(-120%); }
.stats li.done { animation: statHit .55s var(--ease); box-shadow: 0 0 0 2px rgba(37, 99, 235, .25), 0 18px 40px -14px rgba(37, 99, 235, .85); }
.stats li.done::after { animation: statShine .9s ease; }
@keyframes statHit { 0% { transform: scale(1); } 35% { transform: scale(1.09); } 100% { transform: scale(1); } }
@keyframes statShine { to { transform: translateX(120%); } }

/* ===== Presentaciones: se deslizan de lado con el scroll ===== */
.treat-show { height: calc(5 * 62vh + 100vh); }
.ts-sticky { background: inherit; }
.ts-slide, .ts-slide.is-active { opacity: 1; visibility: visible; transition: none; will-change: transform; }
.ts-copy p, .ts-copy .btn, .ts-copy .tag { transition-delay: 0s; }
.ts-caption { display: inline-flex; align-items: center; gap: 8px; }
@media (min-width: 900px) {
  .ts-bg, .ts-slide.is-active .ts-bg {
    opacity: 1; transition: box-shadow .4s ease;
    transform: translate3d(calc(var(--d, 0) * -8vw), -50%, 0) rotate(calc(var(--d, 0) * 7deg)) scale(calc(1 - min(1, max(var(--d, 0), calc(var(--d, 0) * -1))) * .14));
  }
  .why-show .ts-slide::before { opacity: .16; }
  .why-show .ts-slide::after { background: radial-gradient(40% 60% at 74% 50%, rgba(37, 99, 235, .2), transparent 70%); }
  .why-show .ts-copy { color: var(--ink); }
  .why-show .ts-title { color: var(--navy); }
  .why-show .ts-ui { color: var(--muted); }
  .why-show .ts-count b { color: var(--navy); }
  .why-show .ts-dot::before { background: rgba(11, 31, 58, .16); }
  .why-show .ts-dot i { background: var(--blue); }
  .why-show img.ts-bg { object-fit: cover; object-position: top; background: #8e9296; }
}
.why-show .tag { background: var(--blue); color: #fff; }

/* ===== Pasos: uno protagonista, los demás a un costado ===== */
.steps-pin { position: relative; height: calc(100vh + 4 * 42vh); margin-top: 64px; }
.steps-sticky { position: sticky; top: 72px; height: calc(100vh - 72px); display: flex; flex-direction: column; justify-content: center; }
.steps-sticky .section-head { margin-bottom: 28px; }
.steps-sticky .steps { position: relative; display: block; flex: none; height: min(400px, 54vh); padding: 0; }
.steps-sticky .steps::before, .steps-sticky .steps::after { top: auto; bottom: -22px; }
.steps-sticky .step {
  position: absolute; margin: 0; padding: 14px 18px; cursor: pointer; overflow: hidden;
  left: calc(64% + 18px); right: 0; width: auto; height: calc((100% - 24px) / 3); top: calc(var(--slot, 0) * (100% + 12px) / 3);
  display: flex; align-items: center; gap: 14px; opacity: .72; transform: none; box-shadow: none;
  transition: top .7s var(--ease), left .7s var(--ease), right .7s var(--ease), height .7s var(--ease), opacity .4s ease, background-color .5s ease;
}
.steps-sticky .step::before { flex: none; margin: 0; background: #94a3b8; box-shadow: none; }
.steps-sticky .step h3 { margin: 0; font-size: var(--fs-base); }
.steps-sticky .step p, .steps-sticky .step-icon { display: none; }
.steps-sticky .step:hover { opacity: 1; }
.steps-sticky .step.is-active {
  left: 0; right: calc(36% + 0px); top: 0; height: 100%; padding: 36px; opacity: 1; cursor: default;
  display: grid; align-content: center; grid-template-columns: auto 1fr; column-gap: 18px; row-gap: 14px;
  background-color: var(--navy); border-color: var(--navy); color: #dbe5f3; box-shadow: 0 34px 70px -30px rgba(37, 99, 235, .9);
}
.steps-sticky .step.is-active::before { width: 56px; height: 56px; font-size: var(--fs-lg); background: var(--blue); box-shadow: var(--glow); }
.steps-sticky .step.is-active .step-icon { display: grid; place-items: center; justify-self: end; color: var(--blue-light); animation: fadeUp .6s var(--ease); }
.steps-sticky .step.is-active .step-icon svg { width: 64px; height: 64px; }
.steps-sticky .step.is-active h3 { grid-column: 1 / -1; color: #fff; font-size: clamp(1.9rem, 3.6vw, 3rem); animation: fadeUp .6s var(--ease); }
.steps-sticky .step.is-active p { display: block; grid-column: 1 / -1; margin: 0; color: #c9d6e8; font-size: var(--fs-md); max-width: 34ch; animation: fadeUp .7s var(--ease); }

/* ===== Testimonios ===== */
.tv { position: relative; display: flex; gap: 14px; height: min(540px, 72vh); margin-top: 56px; }
.tv-card { position: relative; flex: 1 1 0; min-width: 0; border-radius: var(--radius); overflow: hidden; background: #000; opacity: .72; transition: flex-grow .8s var(--ease), opacity .5s ease; }
.tv-card.is-active { flex-grow: 4; opacity: 1; box-shadow: 0 30px 60px -28px rgba(37, 99, 235, .8); }
.tv-blur { position: absolute; inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); max-width: none; object-fit: cover; filter: blur(26px) brightness(.6); }
.tv-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.tv-pick { position: absolute; inset: 0; width: 100%; padding: 20px; border: 0; display: flex; align-items: flex-end; color: #fff; text-align: left; font-family: inherit; cursor: pointer; background: linear-gradient(0deg, rgba(11, 31, 58, .75), transparent 45%); }
.tv-pick .who b { display: block; font-size: var(--fs-md); }
.tv-pick .who span { font-size: var(--fs-sm); opacity: .9; }
.tv-card:not(.is-active) .who span { display: none; }
.tv-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .2); pointer-events: none; }
.tv-bar i { display: block; height: 100%; background: var(--blue-light); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 10px var(--blue); }
.tv-sound { position: absolute; top: 16px; left: 16px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 0; border-radius: 999px; background: var(--blue); color: #fff; font: inherit; font-size: var(--fs-sm); font-weight: 800; cursor: pointer; box-shadow: var(--glow); animation: soundPulse 2s ease-in-out infinite; }
.tv-sound svg { width: 20px; height: 20px; }
.tv-sound .wave { opacity: .35; }
.tv-sound.on { background: rgba(11, 31, 58, .75); animation: none; box-shadow: none; }
.tv-sound.on .wave { opacity: 1; }
@keyframes soundPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, .6); } 50% { box-shadow: 0 0 0 12px rgba(37, 99, 235, 0); } }

/* ===== Reseñas: una al frente ===== */
.reviews.stage { position: relative; display: block; height: calc(var(--h, 320px) + 12px); margin-top: 64px; }
.reviews.stage .review, .reviews.stage .review:hover {
  position: absolute; left: 50%; top: 50%; width: min(600px, 80%); margin: 0; z-index: 1; cursor: pointer;
  transform: translate(-50%, -50%) translateX(calc(var(--o, 0) * 74%)) scale(.74); filter: blur(4px); opacity: .5; box-shadow: none;
  transition: transform .7s var(--ease), filter .6s ease, opacity .6s ease, box-shadow .6s ease;
}
.reviews.stage .review.is-active, .reviews.stage .review.is-active:hover {
  z-index: 2; cursor: default; transform: translate(-50%, -50%); filter: none; opacity: 1; box-shadow: 0 30px 60px -28px rgba(37, 99, 235, .6);
}
.reviews.stage .review.is-active blockquote { font-size: var(--fs-md); }
.rev-nav { display: flex; justify-content: center; gap: 4px; margin-top: 18px; }
.rev-nav button { position: relative; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.rev-nav button::before { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: #cbd5e1; transition: background .25s ease, transform .25s var(--ease); }
.rev-nav button[aria-pressed="true"]::before { background: var(--blue); transform: scale(1.35); box-shadow: 0 0 12px rgba(37, 99, 235, .8); }
.rev-nav button:focus-visible { outline: 2px solid var(--blue-light); border-radius: 8px; }

/* ===== Riel lateral del recorrido ===== */
.side-dots::before, .side-dots::after { content: ''; position: absolute; right: 12.5px; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: rgba(148, 163, 184, .4); }
.side-dots::after { background: var(--blue); transform-origin: 50% 0; transform: scaleY(var(--p, 0)); box-shadow: 0 0 10px rgba(37, 99, 235, .7); }
.side-dots a { z-index: 1; }
.side-dots a.flash span { animation: labelFlash 2.8s ease forwards; }
@keyframes labelFlash { 0% { opacity: 0; transform: translateX(8px); } 10%, 45% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
.side-dots a:hover span, .side-dots a:focus-visible span { animation: none; opacity: 1; transform: none; }

@media (max-width: 960px) {
  .stats { flex-direction: row; gap: 8px; }
  .stats li { flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; flex: 1; padding: 10px 12px; }
  .stats strong { min-width: 0; font-size: 1.9rem; }
  .stats li > span { max-width: none; }
  .tv { flex-direction: column; height: auto; }
  .tv-card { flex: none; height: 84px; }
  .tv-card.is-active { height: min(62vh, 520px); }
  .tv-card { transition: height .7s var(--ease), opacity .5s ease; }
  .tv-card:not(.is-active) .tv-blur { filter: blur(6px) brightness(.55); }
  .tv-card:not(.is-active) video { display: none; }
}
@media (max-width: 640px) {
  main > section:not(.hero) { border-radius: 24px 24px 0 0; margin-top: -24px; }
  .treat-show { height: calc(5 * 55vh + 100vh); }
  .steps-sticky .section-head { margin-bottom: 16px; }
  .steps-sticky { justify-content: flex-start; padding-top: 28px; }
  .steps-sticky .steps { height: min(420px, 52vh); padding-left: 0; }
  .steps-sticky .steps::before, .steps-sticky .steps::after { display: none; }
  .steps-sticky .step {
    left: calc(var(--slot, 0) * (100% + 8px) / 3); right: auto; top: calc(100% - 96px); width: calc((100% - 16px) / 3); height: 96px;
    padding: 8px; flex-direction: column; justify-content: center; gap: 4px; text-align: center;
  }
  .steps-sticky .step h3 { font-size: var(--fs-xs); line-height: 1.2; }
  .steps-sticky .step::before { width: 28px; height: 28px; }
  .steps-sticky .step.is-active { left: 0; right: auto; width: 100%; top: 0; height: calc(100% - 108px); padding: 22px; text-align: left; }
  .steps-sticky .step.is-active::before { width: 48px; height: 48px; }
  .steps-sticky .step.is-active h3 { font-size: 1.6rem; }
  .steps-sticky .step.is-active p { font-size: var(--fs-base); }
  .reviews.stage .review, .reviews.stage .review:hover { width: 86%; transform: translate(-50%, -50%) translateX(calc(var(--o, 0) * 92%)) scale(.82); }
}
@media (prefers-reduced-motion: reduce) {
  .hero > * { transform: none; opacity: 1; }
}
/* Portada: deja libre la franja donde asoma la siguiente sección */
@media (min-width: 961px) {
  .hero-foot { bottom: 50px; }
  .hero-3d { height: clamp(420px, calc(100svh - 72px - 150px), 860px); }
  .stats { justify-self: start; align-items: flex-start; width: 248px; }
  .stats li { width: 100%; min-width: 0; }
}
@media (max-width: 960px) { .hero { padding-bottom: 46px; } }@media (max-width: 640px) {
  .hero-stage { margin-top: 16px; }
  .hero-3d { height: clamp(320px, 46svh, 500px); }
}
/* ===== Por qué: mismo formato que las reseñas ===== */
.section.why-flow { background-color: #eef4ff; }
.flow.stage { position: relative; height: calc(var(--h, 360px) + 12px); }
.flow.stage .flow-card {
  position: absolute; left: 50%; top: 50%; width: min(640px, 80%); display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center;
  padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; z-index: 1; cursor: pointer;
  transform: translate(-50%, -50%) translateX(calc(var(--o, 0) * 74%)) scale(.74); filter: blur(4px); opacity: .5;
  transition: transform .7s var(--ease), filter .6s ease, opacity .6s ease, box-shadow .6s ease, visibility .6s;
}
.flow.stage .flow-card.is-active { z-index: 2; cursor: default; transform: translate(-50%, -50%); filter: none; opacity: 1; box-shadow: 0 30px 60px -28px rgba(37, 99, 235, .6); }
.flow.stage .flow-card.is-far { opacity: 0; visibility: hidden; }
.flow-card video, .flow-card img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; border-radius: var(--radius); background: var(--navy); }
.flow-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 16px; border-radius: var(--radius); background: var(--blue); color: #fff; box-shadow: var(--glow); }
.flow-icon svg { width: 30px; height: 30px; }
.flow-card h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: var(--navy); }
.flow-card p { margin: 0; color: var(--muted); font-size: var(--fs-md); }
@media (max-width: 640px) {
  .flow.stage .flow-card { width: 86%; grid-template-columns: 1fr; gap: 14px; padding: 14px; transform: translate(-50%, -50%) translateX(calc(var(--o, 0) * 92%)) scale(.82); }
  .flow-card video, .flow-card img { aspect-ratio: 4 / 3; }
  .flow-icon { position: absolute; top: 24px; left: 24px; margin: 0; }
  .flow-card p { font-size: var(--fs-base); }
}
.flow-card video, .flow-card img { height: auto; }

/* ===== Portada sobre la mesa de la clínica ===== */
.hero {
  color: #dbe5f3;
  background:
    radial-gradient(34% 56% at 50% 54%, rgba(37, 99, 235, .55), transparent 72%),
    linear-gradient(180deg, rgba(6, 20, 42, .82), rgba(6, 20, 42, .58) 45%, rgba(6, 20, 42, .84)),
    url("/img/fondo-mesa.webp") center / cover no-repeat, var(--deep);
}
.hook-line { color: #fff; text-shadow: 0 2px 24px rgba(6, 20, 42, .7); }
.hook-sub { color: #dbe5f3; }
.hero .hint, .hero .hint.on { color: #fff; }
.hero .btn-outline { border-color: rgba(255, 255, 255, .7); color: #fff; background: rgba(6, 20, 42, .35); }
.hero .btn-outline:hover { background: var(--blue); border-color: var(--blue); }
.hero-3d canvas { filter: drop-shadow(0 0 34px rgba(96, 165, 250, .6)); }
.hero-3d.is-3d .hotspot { left: var(--x); top: var(--y); will-change: auto; }
.hotspot .label { background: rgba(6, 20, 42, .82); border-color: rgba(147, 197, 253, .65); }

/* ===== Tratamientos: se cambia con clic y el scroll sigue libre ===== */
.treat-show { height: auto; }
.ts-sticky { position: relative; top: 0; height: max(600px, calc(100vh - 72px)); }
.ts-slide, .ts-slide.is-active { transition: transform .75s var(--ease); }
.ts-slide:not(.is-active) { pointer-events: none; }
.ts-ui { flex-wrap: nowrap; }
.ts-nav { gap: 6px; flex-wrap: wrap; justify-content: center; }
.ts-tab { min-height: 44px; padding: 8px 16px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; background: rgba(6, 20, 42, .5); color: #dbe5f3; font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; transition: background .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s var(--ease); }
.ts-tab:hover { border-color: var(--blue-light); transform: translateY(-2px); }
.ts-tab[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: var(--glow); }
.ts-arrow { position: absolute; z-index: 4; top: 50%; width: 56px; height: 56px; margin-top: -40px; padding: 0 0 4px; border: 0; border-radius: 50%; background: var(--blue); color: #fff; font: inherit; font-size: 1.8rem; font-weight: 800; line-height: 1; cursor: pointer; box-shadow: var(--glow); transition: transform .25s var(--ease), box-shadow .25s ease; }
.ts-arrow:hover { transform: scale(1.12); box-shadow: var(--glow-strong); }
.ts-prev { left: 18px; }
.ts-more { right: 18px; }
.ts-tab:focus-visible, .ts-arrow:focus-visible, .ts-next:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 2px; }
.ts-next { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #fff; font-weight: 800; white-space: nowrap; text-decoration: none; }
.ts-next::after { content: '\2193'; animation: bob 1.8s ease-in-out infinite; }
.ts-next:hover { color: var(--blue-light); }
@media (min-width: 900px) {
  .ts-bg, .ts-slide.is-active .ts-bg {
    transform: translate3d(0, -50%, 0) rotate(3deg) scale(.9);
    transition: transform .9s var(--ease);
  }
  .ts-slide.is-active .ts-bg { transform: translate3d(0, -50%, 0); }
}
@media (max-width: 960px) {
  .ts-ui { flex-wrap: wrap; justify-content: space-between; }
  .ts-nav { order: 3; flex: 1 0 100%; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; }
  .ts-tab { flex: none; }
}
@media (max-width: 640px) {
  .ts-slide { padding-bottom: 214px; }
  .ts-ui { bottom: 76px; }
  .ts-arrow { top: 96px; width: 48px; height: 48px; margin: 0; }
  .ts-prev { left: 12px; }
  .ts-more { right: 12px; }
  .hero-3d .hotspots .hotspot:nth-child(1) { --x: 42% !important; --y: 12% !important; }
  .hero-3d .hotspots .hotspot:nth-child(2) { --x: 67% !important; --y: 20% !important; }
  .hero-3d .hotspots .hotspot:nth-child(3) { --x: 66% !important; --y: 45% !important; }
  .hero-3d .hotspots .hotspot:nth-child(4) { --x: 44% !important; --y: 42% !important; }
  .hero-3d .hotspots .hotspot:nth-child(5) { --x: 64% !important; --y: 70% !important; }
  .hero-3d .hotspots .hotspot:nth-child(6) { --x: 40% !important; --y: 78% !important; }
}
@media (min-width: 1100px) { .ts-more { right: 66px; } }

.hero { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 960px) {
  .hero-foot { grid-template-columns: minmax(0, 1fr); width: 100%; }
  .hero .hint { white-space: normal; }
  .stats { width: 100%; }
}
/* Celular: el implante se ve completo y los botones van debajo */
@media (max-width: 640px) {
  .hero-stage { margin-bottom: 118px; }
  .hero-3d { height: clamp(280px, 38svh, 420px); }
  .hero-3d .hotspots { inset: auto 0 auto 0; top: calc(100% + 8px); display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 0 12px; }
  .hero-3d.is-3d .hotspot, .hero-3d .hotspot { position: static; }
  .hotspot .pos, .hotspot.left .pos { transform: none; }
  .hotspot .dot { display: none; }
  .hotspot .float { animation-duration: 4s; }
}
/* ===== Portada: más luz detrás del implante para que resalte ===== */
.hero {
  background:
    radial-gradient(30% 54% at 50% 56%, rgba(147, 197, 253, .6), rgba(37, 99, 235, .4) 45%, transparent 74%),
    linear-gradient(180deg, rgba(6, 20, 42, .82), rgba(6, 20, 42, .58) 45%, rgba(6, 20, 42, .84)),
    url("/img/fondo-mesa.webp") center / cover no-repeat, var(--deep);
}
.hero-3d canvas { filter: drop-shadow(0 18px 30px rgba(6, 20, 42, .6)); }

/* ===== Instrucción breve ===== */
.how { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 0; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); text-align: center; }
.how::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); animation: howPulse 1.8s ease-in-out infinite; }
@keyframes howPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, .5); } 50% { box-shadow: 0 0 0 7px rgba(37, 99, 235, 0); } }
.dark .how { color: #c9d6e8; }
.how.in-ui { position: absolute; z-index: 3; left: 0; right: 0; top: 16px; margin: 0; color: #dbe5f3; }
.visit-grid + .how { margin-top: 18px; }
#contact-form .how { margin: 0 0 10px; }

/* ===== Los 4 pasos: recorrido con un diente y un celular ===== */
.jr { margin-top: 72px; }
.jr .section-head { margin-bottom: 40px; }
.jr-road { --p: 0; position: relative; max-width: 880px; margin: 0 auto; padding-top: 34px; }
.jr-line { position: absolute; left: 12.5%; right: 12.5%; top: 60px; height: 6px; border-radius: 6px; background: var(--line); }
.jr-line i { display: block; height: 100%; border-radius: 6px; transform-origin: 0 50%; transform: scaleX(var(--p)); background: linear-gradient(90deg, var(--blue), var(--blue-light)); box-shadow: 0 0 14px rgba(37, 99, 235, .7); transition: transform .9s var(--ease); }
.jr-tooth { position: absolute; z-index: 2; top: 0; left: calc(12.5% + var(--p) * 75%); width: 40px; height: 40px; margin-left: -20px; display: grid; place-items: center; color: var(--blue); transition: left .9s var(--ease); animation: bob 1.6s ease-in-out infinite; }
.jr-tooth svg { width: 32px; height: 32px; }
.jr-stops { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
.jr-stop { display: grid; justify-items: center; gap: 8px; min-height: 44px; padding: 0 4px; border: 0; background: none; font: inherit; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); cursor: pointer; }
.jr-dot { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; border: 3px solid var(--line); color: var(--muted); transition: background .4s ease, border-color .4s ease, color .4s ease, transform .4s var(--ease), box-shadow .4s ease; }
.jr-dot svg { width: 24px; height: 24px; }
.jr-stop:hover .jr-dot { border-color: var(--blue-light); transform: translateY(-3px); }
.jr-stop.is-past .jr-dot { background: var(--blue); border-color: var(--blue); color: #fff; }
.jr-stop.is-active { color: var(--navy); font-weight: 800; }
.jr-stop.is-active .jr-dot { background: var(--blue); border-color: #bfdbfe; color: #fff; transform: scale(1.2); box-shadow: var(--glow-strong); }
.jr-stop:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 2px; border-radius: 12px; }
.jr-stage { display: grid; grid-template-columns: 1fr minmax(0, 300px); gap: 56px; align-items: center; max-width: 960px; margin: 44px auto 0; }
.jr-copy { display: grid; }
.jr-panel { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateX(-34px); transition: opacity .45s ease, transform .6s var(--ease), visibility .45s; }
.jr-panel.is-active { opacity: 1; visibility: visible; transform: none; }
.jr-num { display: inline-block; margin-bottom: 10px; font-size: var(--fs-sm); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.jr-panel h3 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.05; color: var(--navy); }
.jr-panel p { font-size: var(--fs-md); color: var(--muted); max-width: 34ch; margin: 0; }
.jr-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.jr-actions .jr-cta { display: none; }
.jr.at-end .jr-next { display: none; }
.jr.at-end .jr-cta { display: inline-flex; animation: statHit .6s var(--ease); }
.jr-phone { position: relative; width: 100%; max-width: 280px; aspect-ratio: 9 / 17; margin: 0 auto; padding: 10px; border-radius: 38px; background: var(--navy); overflow: hidden; box-shadow: 0 40px 70px -30px rgba(37, 99, 235, .85), 0 0 0 2px #1e3a5f; }
.jr-screen { position: absolute; inset: 10px; border-radius: 28px; overflow: hidden; background: #eef2f6; opacity: 0; transform: translateY(26px) scale(.96); transition: opacity .5s ease, transform .7s var(--ease); }
.jr-screen.is-active { opacity: 1; transform: none; }
.jr-screen video, .jr-screen > img { width: 100%; height: 100%; object-fit: cover; }
.jr-chat { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-end; gap: 8px; padding: 16px 12px; background: #e6edf5; }
.bubble { max-width: 88%; padding: 9px 12px; border-radius: 14px 14px 4px 14px; background: #d6f5dc; color: var(--ink); font-size: var(--fs-sm); line-height: 1.3; opacity: 0; }
.bubble.photo { padding: 4px; width: 88%; }
.bubble.photo img { width: 100%; height: auto; border-radius: 10px; }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 10px 12px; border-radius: 14px; background: #fff; opacity: 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; animation: bob 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
.jr-chat.is-active .b1 { animation: fadeUp .45s var(--ease) .3s forwards; }
.jr-chat.is-active .b2 { animation: fadeUp .45s var(--ease) 1s forwards; }
.jr-chat.is-active .b3 { animation: fadeUp .45s var(--ease) 1.8s forwards; }
.jr-chat.is-active .b4 { animation: fadeUp .45s var(--ease) 2.8s forwards; }
.jr-badge { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); white-space: nowrap; padding: 8px 14px; border-radius: 999px; background: var(--blue); color: #fff; font-size: var(--fs-sm); font-weight: 800; box-shadow: var(--glow); }
@media (max-width: 760px) {
  .jr-stage { grid-template-columns: 1fr; gap: 26px; margin-top: 32px; }
  .jr-phone { order: -1; max-width: 200px; }
  .jr-copy { text-align: center; justify-items: center; }
  .jr-panel p { margin: 0 auto; }
  .jr-actions { justify-content: center; }
  .jr-stop { font-size: var(--fs-xs); }
  .jr-dot { width: 44px; height: 44px; }
  .jr-line { top: 56px; }
}
@media (max-width: 640px) { .how.in-ui { top: 10px; padding: 0 64px; } }
@media (prefers-reduced-motion: reduce) { .bubble, .typing { opacity: 1; } }
/* Los 4 pasos caben en una sola pantalla */
.jr { margin-top: 56px; }
.jr .section-head { margin-bottom: 8px; }
.jr-stage { margin-top: 18px; }
.jr-phone { width: min(236px, calc((100vh - 400px) * .53)); min-width: 180px; }
@media (max-width: 760px) {
  .jr-phone { width: 176px; min-width: 0; }
  .jr-stage { gap: 16px; margin-top: 16px; }
}
.how.in-ui { left: 50%; right: auto; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); padding: 6px 14px; border-radius: 999px; background: rgba(6, 20, 42, .72); color: #fff; }
@media (max-width: 760px) {
  .jr-stage { grid-template-columns: 128px minmax(0, 1fr); gap: 16px; align-items: start; }
  .jr-phone { order: 0; grid-column: 1; grid-row: 1; width: 128px; padding: 6px; border-radius: 24px; }
  .jr-screen { inset: 6px; border-radius: 18px; }
  .jr-copy { grid-column: 2; grid-row: 1; text-align: left; justify-items: start; }
  .jr-panel h3 { font-size: 1.45rem; }
  .jr-panel p { margin: 0; font-size: var(--fs-sm); }
  .jr-actions { justify-content: flex-start; margin-top: 14px; }
  .jr-actions .btn { padding: 12px 16px; font-size: var(--fs-sm); }
  .jr-chat { padding: 8px 6px; gap: 5px; }
  .bubble { padding: 5px 7px; font-size: 11px; }
  .jr-badge { font-size: 11px; padding: 5px 9px; bottom: 8px; }
}
@media (max-width: 640px) { .how.in-ui { top: 10px; padding: 6px 12px; font-size: var(--fs-xs); } }
/* Cifras de la portada más grandes */
@media (min-width: 961px) {
  .stats { width: 320px; gap: 12px; }
  .stats li { padding: 12px 20px; gap: 16px; }
  .stats strong { min-width: 132px; font-size: clamp(3rem, 4.8vw, 4.2rem); }
  .stats li > span { max-width: 120px; font-size: var(--fs-base); font-weight: 600; }
}
@media (max-width: 960px) {
  .stats strong { font-size: 2.35rem; }
  .stats li > span { font-size: var(--fs-sm); }
}
/* Etiquetas más cerca del implante para dejar libre la columna de cifras */
@media (min-width: 641px) {
  .hero-3d .hotspots .hotspot:nth-child(1) { --x: 38% !important; }
  .hero-3d .hotspots .hotspot:nth-child(2) { --x: 62% !important; }
  .hero-3d .hotspots .hotspot:nth-child(3) { --x: 61% !important; }
  .hero-3d .hotspots .hotspot:nth-child(4) { --x: 41% !important; }
  .hero-3d .hotspots .hotspot:nth-child(5) { --x: 60% !important; }
  .hero-3d .hotspots .hotspot:nth-child(6) { --x: 43% !important; }
}
@media (max-width: 640px) {
  .stats li { padding: 10px 8px; }
  .stats strong { font-size: 2rem; }
}
@media (min-width: 961px) {
  .stats { width: 336px; }
  .stats strong { min-width: 158px; font-size: clamp(2.9rem, 4.4vw, 3.8rem); white-space: nowrap; }
  .stats li > span { flex: 1; min-width: 0; max-width: none; }
}
/* ===== Mapa grande de fondo, con movimiento ===== */
.visit-map { position: relative; display: flex; align-items: center; min-height: calc(100vh - 40px); padding: 72px 0; background-color: #e3ebf3; }
.visit-map .map3d { position: absolute; inset: 0; width: auto; height: auto; border-radius: 0; perspective: 1500px; background: none; }
.visit-map .map3d::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(75% 85% at 62% 50%, transparent 52%, #e3ebf3 100%); }
.visit-map .map3d-stage { width: max(66vw, 860px); margin-left: 20vw; }
.visit-map .map3d .pin .bubble { font-size: var(--fs-base); padding: 10px 16px; }
.visit-map .map3d .pin .bubble small { font-size: var(--fs-xs); }
.visit-map .container { position: relative; z-index: 2; width: 100%; pointer-events: none; }
.visit-card { max-width: 440px; padding: 32px; border-radius: var(--radius); background: rgba(255, 255, 255, .93); box-shadow: 0 30px 60px -28px rgba(11, 31, 58, .55); backdrop-filter: blur(6px); pointer-events: auto; }
.visit-card .how { justify-content: flex-start; text-align: left; }
@media (max-width: 760px) {
  .visit-map { align-items: flex-end; min-height: 100svh; padding: 64px 0 96px; }
  .visit-map .map3d::after { background: linear-gradient(180deg, transparent 40%, #e3ebf3 88%); }
  .visit-map .map3d { place-items: start center; padding-top: 12vh; }
  .visit-map .map3d-stage { width: 150vw; margin-left: 0; }
  .visit-map .map3d .pin .bubble { font-size: var(--fs-xs); padding: 6px 10px; }
  .visit-card { padding: 20px; }
  .visit-card h2 { font-size: 1.5rem; }
  .visit-card .checks { gap: 8px; font-size: var(--fs-sm); }
}
/* El mapa cubre todo el fondo: menos inclinado y más grande */
.visit-map .map3d-stage {
  width: max(112vw, 1200px); margin-left: 14vw;
  transform: rotateX(calc(36deg + var(--ry, 0deg))) rotateZ(calc(-12deg + var(--rx, 0deg)));
}
.visit-map .map3d .pin { transform: rotateZ(calc(12deg - var(--rx, 0deg))) rotateX(calc(-36deg - var(--ry, 0deg))); }
@media (max-width: 760px) {
  .visit-map .map3d-stage { width: 230vw; margin-left: 0; }
}
.map3d .pin .bubble { opacity: 1; max-width: none; line-height: 1.3; border-radius: var(--radius); }
.visit-map .map3d { display: block; padding: 0; }
.visit-map .map3d-stage { position: absolute; left: calc(50% + 9vw); top: 56%; margin: 0; translate: -50% -50%; }
@media (max-width: 760px) {
  .visit-map .map3d-stage { left: 50%; top: 34%; }
}
/* ===== Mapa real de Google de fondo ===== */
.visit-map .gmap { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.visit-go { margin-top: 20px; }
@media (max-width: 760px) {
  .visit-map { display: block; min-height: 0; padding: 0 0 88px; }
  .visit-map .gmap { position: relative; display: block; height: 52svh; }
  .visit-map .container { margin-top: -24px; }
  .visit-go { width: 100%; }
}
/* El mapa empieza después de la tarjeta para que el pin de la clínica quede a la vista */
.visit-map .gmap { top: -84px; height: calc(100% + 84px); }
@media (min-width: 761px) {
  .visit-map .gmap { left: 26vw; width: calc(100% - 26vw); }
  .visit-map::before { content: ''; position: absolute; z-index: 1; top: 0; bottom: 0; left: 26vw; width: 5vw; pointer-events: none; background: linear-gradient(90deg, #e3ebf3, rgba(227, 235, 243, 0)); }
}
@media (max-width: 760px) {
  .visit-map .gmap { top: 0; margin-top: -84px; height: calc(52svh + 84px); }
}
main > section.visit-map { background-color: #e3ebf3; }

.visit-map { isolation: isolate; }

/* Mapa final: oculta la caja de Google; en pantallas medianas va arriba de la tarjeta */
.visit-map .gmap { top: -112px; height: calc(100% + 112px); }
@media (min-width: 1100px) {
  .visit-map .gmap { left: 31vw; width: calc(100% - 31vw); }
  .visit-map::before { left: 31vw; }
  .visit-card { max-width: 400px; }
}
@media (max-width: 1099px) {
  .visit-map { display: block; min-height: 0; padding: 0 0 72px; }
  .visit-map::before { display: none; }
  .visit-map .gmap { position: relative; display: block; left: 0; top: 0; width: 100%; margin-top: -112px; height: calc(60svh + 112px); }
  .visit-map .container { margin-top: -28px; }
  .visit-card { max-width: none; }
}
@media (max-width: 1099px) { .visit-map { display: flow-root; } }

@media (max-width: 1099px) { .visit-map .container { margin-top: 14px; } }
