/* ================= Fuentes (servidas desde el sitio) ================= */
@font-face { font-family: 'Syne'; src: url('/assets/fonts/syne-latin-800-normal.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Syne'; src: url('/assets/fonts/syne-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url('/assets/fonts/outfit-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

/* ================= Tokens ================= */
:root {
  --bg: #eef2f6;
  --bg-2: #ffffff;
  --ink: #0e1116;
  --ink-2: #38424e;
  --muted: #66707d;
  --line: rgba(17, 17, 22, .1);
  --card: rgba(255, 255, 255, .62);
  --card-b: rgba(255, 255, 255, .9);
  --shadow: 0 30px 80px -30px rgba(31, 63, 94, .26);
  --accent: #1f4f78;
  --accent-2: #5f8fb8;
  --iri: linear-gradient(115deg, #ffffff 0%, #eef3f8 30%, #e2ebf3 60%, #f6f8fb 100%);
  --iri-strong: linear-gradient(100deg, #1f4f78, #5f8fb8 60%, #a9c6de);
  --iri-text: linear-gradient(100deg, #173d5e 0%, #2b6492 30%, #8db4d4 48%, #2b6492 66%, #173d5e 100%);
  --pearl: radial-gradient(120% 90% at 30% 20%, #fff 0%, #f3f7fa 35%, #dfe8f0 70%, #c9d7e4 100%);
  --btn-ink-bg: #0e1116; --btn-ink-fg: #fff;
  --radius: 28px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --display: 'Syne', 'Outfit', system-ui, sans-serif;
  /* Outfit: misma "a" de un solo piso que Syne (regla de combinación de fuentes) */
  --body: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #080b0f;
  --bg-2: #10151b;
  --ink: #f2f5f8;
  --ink-2: #c3ccd6;
  --muted: #8d98a5;
  --line: rgba(255, 255, 255, .1);
  --card: rgba(255, 255, 255, .045);
  --card-b: rgba(255, 255, 255, .1);
  --shadow: 0 30px 90px -30px rgba(0, 0, 0, .8);
  --accent: #9cc3e4;
  --accent-2: #4f7fa8;
  --iri-strong: linear-gradient(100deg, #9cc3e4, #4f7fa8);
  --iri: linear-gradient(115deg, #0b1016 0%, #0f1a25 45%, #0c141c 75%, #0b1016 100%);
  --iri-text: linear-gradient(100deg, #cfe2f2 0%, #8fb8dc 32%, #ffffff 48%, #8fb8dc 66%, #cfe2f2 100%);
  --pearl: radial-gradient(120% 90% at 30% 20%, #fff 0%, #eef3f7 30%, #c3d2df 70%, #8aa1b6 100%);
  --btn-ink-bg: #f2f5f8; --btn-ink-fg: #0b0e12;
  color-scheme: dark;
}

/* ================= Base ================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 500 clamp(18px, 1.28vw, 21px)/1.6 var(--body);
  overflow-x: hidden; transition: background-color .6s var(--ease), color .6s var(--ease);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.008em; line-height: 1.02; margin: 0; }
/* Syne se ve achatada en tamaños medianos y pequeños: los títulos de sección usan su peso 700
   (letras más abiertas) y los títulos pequeños (tarjetas, casos, pasos) pasan a Outfit. */
h2 { font-weight: 700; }
h3 { font-family: var(--body); font-weight: 800; letter-spacing: -.012em; line-height: 1.15; }
p { margin: 0; }
button, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--bg); border-radius: 12px; }
.skip:focus { top: 16px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 800 clamp(12.5px, .9vw, 14px)/1 var(--body); letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--iri-strong); border-radius: 2px; }
.iri-text {
  background: var(--iri-text); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: iriShift 8s linear infinite;
}
@keyframes iriShift { to { background-position: -200% 0; } }

/* ================= Botones ================= */
.btn {
  --h: 56px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 28px; border-radius: 999px; border: 0; cursor: pointer;
  font: 800 15px/1 var(--body); letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background-color .3s;
}
.btn svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--sm { --h: 44px; padding: 0 20px; font-size: 14px; }
.btn--lg { --h: 68px; padding: 0 40px; font-size: 17px; }
.btn--ink { background: var(--btn-ink-bg); color: var(--btn-ink-fg); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--iri {
  color: #111116; background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    conic-gradient(from var(--ang), #1f4f78, #9cc3e4, #ffffff, #5f8fb8, #1f4f78) border-box;
  border: 2px solid transparent; animation: spin 6s linear infinite;
  box-shadow: 0 18px 50px -18px rgba(31, 79, 120, .45);
}
:root[data-theme="dark"] .btn--iri { color: #fff; }
.btn--iri:hover { transform: translateY(-2px); box-shadow: 0 26px 60px -18px rgba(31, 79, 120, .6); }
@keyframes spin { to { --ang: 360deg; } }

/* ================= Navegación ================= */
.nav {
  position: fixed; inset: 12px var(--gutter) auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 22px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg-2) 70%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: inset 0 0 0 1px var(--card-b), 0 10px 40px -20px rgba(0, 0, 0, .25);
  transition: transform .6s var(--ease);
}
.nav.is-hidden { transform: translateY(-130%); }
.nav.nav--anim:not(.is-in) { transform: translateY(-160%); transition: none; }
.nav.nav--anim.is-in { transition: transform 1s var(--ease); }
.nav__brand { display: block; width: 130px; color: var(--ink); }
.firma { height: auto; }
.firma path { fill: currentColor; }
.nav__links { display: flex; gap: 6px; }
.nav__links a { padding: 10px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; text-decoration: none; color: var(--ink-2); transition: background-color .3s, color .3s; }
.nav__links a:hover, .nav__links a.is-active { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.nav__tools { display: flex; align-items: center; gap: 8px; }
.lang select {
  appearance: none; height: 44px; padding: 0 14px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-weight: 800; font-size: 13px; letter-spacing: .08em;
}
.lang select option { color: #111; }
.theme { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 0; cursor: pointer; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.theme svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; grid-area: 1 / 1; transition: transform .6s var(--ease), opacity .4s; }
.theme__moon { opacity: 0; transform: rotate(-90deg) scale(.5); }
:root[data-theme="dark"] .theme__sun { opacity: 0; transform: rotate(90deg) scale(.5); }
:root[data-theme="dark"] .theme__moon { opacity: 1; transform: none; }

/* ================= Hero ================= */
.hero {
  position: relative; min-height: 100svh; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 24px;
  padding: 120px var(--gutter) 80px; overflow: hidden; isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; background: var(--iri); }
.hero__bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 50% at 70% 40%, transparent, var(--bg) 92%); }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .7; }
.orb--1 { width: 42vw; height: 42vw; left: -10vw; top: -12vw; background: #dde8f2; }
.orb--2 { width: 34vw; height: 34vw; right: -6vw; top: 10vh; background: #d6e4f0; }
.orb--3 { width: 28vw; height: 28vw; right: 25vw; bottom: -12vw; background: #e6edf4; }
:root[data-theme="dark"] .orb { opacity: .28; }
.hero__title { font-size: clamp(38px, 7vw, 132px); margin: 22px 0 26px; }
.hero__title .line { display: block; }
.hero__lead { max-width: 40ch; font-size: clamp(18px, 1.45vw, 24px); color: var(--ink-2); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 34px 0 0; }
.hero__chips li { padding: 8px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 700; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-b); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* Diente 3D blanco tornasolado */
.hero__visual { position: relative; display: grid; place-items: center; perspective: 1200px; }
.tooth3d { position: relative; width: min(34vw, 470px, 60svh); aspect-ratio: 760 / 1000; }
.tooth3d__poster, .tooth3d__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tooth3d__poster { object-fit: contain; animation: float 7s ease-in-out infinite; transition: opacity .8s var(--ease); }
.tooth3d.is-3d .tooth3d__poster { opacity: 0; }
.tooth3d__canvas { display: block; }
.tooth3d__shadow { position: absolute; left: 22%; right: 22%; bottom: -2%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgba(31, 63, 94, .32), transparent); filter: blur(8px); animation: shadow 7s ease-in-out infinite; }
:root[data-theme="dark"] .tooth3d__shadow { background: radial-gradient(closest-side, rgba(120, 170, 215, .3), transparent); }
@keyframes float { 50% { translate: 0 -18px; } }
@keyframes shadow { 50% { transform: scale(.85); opacity: .7; } }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; outline-offset: 10px; border-radius: 20px; box-shadow: inset 0 0 0 2px var(--line); translate: -50% 0; }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; border-radius: 2px; background: var(--ink); translate: -50% 0; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ================= Marquesina ================= */
.marquee { overflow: hidden; padding: 26px 0; border-block: 1px solid var(--line); background: var(--bg-2); }
.marquee__track { display: flex; gap: 40px; width: max-content; align-items: center; animation: marquee 38s linear infinite; }
.marquee span { font: 700 clamp(26px, 3.4vw, 54px)/1.1 var(--display); letter-spacing: 0; white-space: nowrap; }
.marquee span:nth-of-type(2n) { color: var(--accent-2); }
.marquee i { font-style: normal; background: var(--iri-strong); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 28px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ================= Secciones ================= */
.sec { padding: clamp(60px, 7vw, 112px) var(--gutter); max-width: 1520px; margin: 0 auto; }
.sec__head { margin-bottom: clamp(26px, 3vw, 44px); max-width: 1100px; }
.sec__title { font-size: clamp(34px, 6.4vw, 104px); overflow-wrap: break-word; margin-top: 18px; }
.sec__lead { margin-top: 16px; max-width: 62ch; color: var(--ink-2); font-size: clamp(18px, 1.4vw, 23px); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; padding: clamp(24px, 2.2vw, 34px); border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 14px; overflow: hidden;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--card-b), var(--shadow);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: transform .6s var(--ease);
}
.card::before { content: ''; position: absolute; inset: 0; background: var(--iri); opacity: 0; transition: opacity .6s var(--ease); z-index: -1; }
.card:hover::before { opacity: 1; }
.card__n { font: 800 14px/1 var(--body); color: var(--muted); }
.card h3 { font-size: clamp(23px, 2vw, 32px); margin-top: 6px; overflow-wrap: break-word; hyphens: auto; }
.card p { color: var(--ink-2); font-size: clamp(17.5px, 1.28vw, 20px); }
.card--accent { background: var(--ink); color: var(--bg); }
.card--accent p, .card--accent .card__n { color: color-mix(in srgb, var(--bg) 75%, transparent); }
.card--accent .btn--ink { background: var(--bg); color: var(--ink); align-self: flex-start; }
.card--accent::before { display: none; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { padding: 24px 22px 24px; border-top: 2px solid var(--line); position: relative; }
.step::before { content: ''; position: absolute; left: 0; top: -2px; height: 2px; width: var(--p, 100%); background: var(--iri-strong); }
.step__n { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; margin-bottom: 26px; font: 800 20px/1 var(--body); background: var(--pearl); color: #111116; box-shadow: 0 12px 30px -12px rgba(80, 60, 140, .5), inset 0 -6px 12px rgba(120, 100, 170, .25); }
.step h3 { font-size: clamp(23px, 2vw, 30px); margin-bottom: 10px; }
.step p { color: var(--ink-2); font-size: clamp(17.5px, 1.28vw, 20px); }

/* ================= Catálogo ================= */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.chip { padding: 11px 18px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 800; font-size: 15.5px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .3s, color .3s; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.chip.is-on { background: var(--ink); color: var(--bg); }
.chip[hidden] { display: none; }

/* ================= El doctor / consultorio ================= */
/* ================= El doctor: portada ================= */
.cover {
  --cv-bg: #0b1520; --cv-fg: #f2f6fa; --cv-muted: #a9b8c7; --cv-line: rgba(255, 255, 255, .14); --cv-accent: #9cc3e4;
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(100svh, 980px);
  background: var(--cv-bg); color: var(--cv-fg); overflow: hidden; isolation: isolate;
}
.cover::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 85% 30%, rgba(95, 143, 184, .28), transparent 70%); }
.cover__media { position: relative; min-height: 100%; }
.cover__slides { position: absolute; inset: -4% 0; overflow: hidden; }
.cover__slide { position: absolute; inset: 0; margin: 0; overflow: hidden; opacity: 0; visibility: hidden; transition: opacity 1.1s var(--ease), visibility 0s linear 1.1s; }
.cover__slide.is-on { opacity: 1; visibility: visible; transition: opacity 1.1s var(--ease), visibility 0s; z-index: 1; }
.cover__slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform: scale(1.001); }
.cover__slide--doctor img { object-position: 50% 20%; }
.cover__slide--consultorio img { object-position: 55% 50%; }
.cover__slide.is-on img { animation: kenburns 9s cubic-bezier(.2, .6, .3, 1) both; }
@keyframes kenburns { from { transform: scale(1.09); } to { transform: scale(1.001); } }
.cover__slide::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent 55%, var(--cv-bg) 100%), linear-gradient(0deg, rgba(11, 21, 32, .78), transparent 42%); }
.cover__cap { position: absolute; z-index: 2; left: clamp(20px, 3vw, 44px); bottom: calc(clamp(20px, 3vw, 40px) + 4% + clamp(92px, 8.4vw, 132px)); display: flex; gap: 12px; align-items: baseline; font: 600 clamp(14px, 1vw, 16px)/1.3 var(--body); color: var(--cv-fg); letter-spacing: .01em; opacity: 0; transform: translateY(10px); transition: opacity .7s var(--ease) .35s, transform .7s var(--ease) .35s; }
.cover__cap span:first-child { color: var(--cv-accent); font-weight: 800; font-variant-numeric: tabular-nums; }
.cover__slide.is-on .cover__cap { opacity: 1; transform: none; }
.cover__nav { position: absolute; z-index: 3; left: clamp(20px, 3vw, 44px); bottom: clamp(20px, 3vw, 40px); display: flex; align-items: center; gap: 10px; }
.cover__nav[hidden] { display: none; }
.cover__thumb { position: relative; padding: 0; border: 0; cursor: pointer; width: clamp(74px, 6.7vw, 106px); aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .7), 0 0 0 1px var(--cv-line); opacity: .55; transform: translateY(0); transition: opacity .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease); }
.cover__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover__thumb:hover { opacity: .9; transform: translateY(-3px); }
.cover__thumb.is-on { opacity: 1; transform: translateY(-6px); box-shadow: 0 22px 44px -16px rgba(0, 0, 0, .8), 0 0 0 2px var(--cv-fg); }
.cover__thumb:focus-visible, .cover__arrow:focus-visible { outline: 2px solid var(--cv-accent); outline-offset: 3px; }
.cover__bar { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.cover__bar::after { content: ''; position: absolute; inset: 0; background: var(--cv-fg); transform: scaleX(0); transform-origin: left; }
.cover__thumb.is-on .cover__bar::after { transform: scaleX(1); }
.cover__nav.is-auto .cover__thumb.is-on .cover__bar::after { animation: avance var(--dur, 6s) linear both; }
.cover__nav.is-paused .cover__thumb.is-on .cover__bar::after { animation-play-state: paused; }
@keyframes avance { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.cover__arrow { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: rgba(11, 21, 32, .55); color: var(--cv-fg); box-shadow: inset 0 0 0 1px var(--cv-line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .3s var(--ease), box-shadow .3s var(--ease); }
.cover__arrow:hover { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px var(--cv-fg); }
.cover__arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cover__slides { touch-action: pan-y; }
.cover__copy { min-width: 0; position: relative; z-index: 3; align-self: center; padding: clamp(60px, 8vw, 120px) var(--gutter) clamp(60px, 8vw, 120px) clamp(28px, 5vw, 72px); display: grid; gap: 22px; justify-items: start; }
.cover .eyebrow { color: var(--cv-muted); }
.cover__name { font-size: clamp(40px, 4.3vw, 82px); font-weight: 800; line-height: 1; letter-spacing: -.01em; }
.cover__name span { display: block; }
.cover__name span + span { color: var(--cv-accent); }
.cover__firma { width: min(340px, 70%); height: auto; color: var(--cv-fg); opacity: .9; margin-top: -4px; }
.cover__quote { font: 700 clamp(21px, 1.9vw, 30px)/1.3 var(--body); color: var(--cv-fg); max-width: 30ch; }
.cover__lead { color: var(--cv-muted); max-width: 52ch; font-size: clamp(17px, 1.3vw, 21px); }
.cover__facts { list-style: none; padding: 0; margin: 6px 0 4px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; width: 100%; max-width: 620px; }
.cover__facts li { display: grid; gap: 6px; padding: 16px 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--cv-line); }
.cover__facts b { font: 800 15px/1.25 var(--body); color: var(--cv-fg); }
.cover__facts span { font-size: 14.5px; line-height: 1.45; color: var(--cv-muted); }
.cover__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.btn--light { background: var(--cv-fg); color: #0b1520; }
.btn--light:hover { transform: translateY(-2px); }
.btn--outline-light { background: transparent; color: var(--cv-fg); box-shadow: inset 0 0 0 1.5px var(--cv-line); }
.btn--outline-light:hover { box-shadow: inset 0 0 0 1.5px var(--cv-fg); }
@media (max-width: 1100px) {
  .cover { grid-template-columns: 1fr; min-height: 0; }
  .cover__media { min-height: 0; width: 100%; aspect-ratio: 16 / 11; }
  .cover__slides { inset: 0; }
  .cover__slide::after { background: linear-gradient(0deg, var(--cv-bg) 1%, rgba(11, 21, 32, .55) 22%, transparent 50%); }
  .cover__nav { left: var(--gutter); right: var(--gutter); bottom: 18px; justify-content: center; }
  .cover__thumb { width: clamp(64px, 15vw, 96px); border-radius: 14px; }
  .cover__cap { left: var(--gutter); right: var(--gutter); justify-content: center; bottom: calc(30px + clamp(64px, 15vw, 96px) * 1.25); }
  .cover__copy { padding: 56px var(--gutter) 72px; }
  .cover__facts { grid-template-columns: 1fr; }
  .cover__name { font-size: clamp(30px, 9.6vw, 72px); }
}
@media (max-width: 600px) {
  .cover__media { aspect-ratio: 4 / 4.6; }
  .cover__arrow { width: 38px; height: 38px; }
  .cover__ctas .btn { flex: 1 1 auto; }
}
/* ================= Historias en video ================= */
.testi__layout { display: grid; grid-template-columns: auto minmax(0, 780px); justify-content: center; gap: clamp(28px, 5vw, 80px); align-items: center; }
.testi__media { display: grid; place-items: center; position: relative; }
.testi__media::before { content: ''; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: var(--iri); filter: blur(60px); opacity: .55; z-index: -1; }
.testi__frame { position: relative; width: min(390px, 78vw, 42svh); aspect-ratio: 9 / 16; border-radius: 36px; overflow: hidden; background: #0b1520; box-shadow: 0 0 0 10px var(--card), 0 0 0 11px var(--card-b), var(--shadow); isolation: isolate; }
.testi__video { width: 100%; height: 100%; object-fit: cover; display: block; background: #0b1520; }
.testi__play { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2; display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border: 0; border-radius: 999px; cursor: pointer; color: #0b1520; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .55); font: 600 14px/1.15 var(--body); white-space: nowrap; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.testi__play:hover { transform: translateX(-50%) translateY(-2px); box-shadow: 0 22px 48px -14px rgba(0, 0, 0, .6); }
.testi__play:focus-visible, .testi__item:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.testi__play[hidden] { display: none; }
.testi__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #0b1520; color: #fff; flex: none; }
.testi__icon svg { fill: currentColor; transform: translateX(1px); }
.testi__label { display: grid; text-align: left; }
.testi__label b { font-weight: 800; font-size: 15px; }
.testi__label b[hidden] { display: none; }
.testi__label span { opacity: .65; font-size: 13px; font-variant-numeric: tabular-nums; }
.testi__frame::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(11, 21, 32, .45), transparent 32%); transition: opacity .5s var(--ease); }
.testi__frame.is-playing::after { opacity: 0; }
.testi__side { display: grid; gap: clamp(22px, 2.4vw, 34px); min-width: 0; max-width: 780px; }
.testi__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); }
.testi__list[hidden] { display: none; }
.testi__item { position: relative; padding: 0; border: 0; cursor: pointer; aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden; background: #0b1520; color: #fff; text-align: left; box-shadow: 0 0 0 1px var(--card-b), 0 18px 40px -22px rgba(11, 21, 32, .55); }
.testi__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; transition: transform .8s var(--ease), filter .5s var(--ease); filter: saturate(.92); }
.testi__item:hover img { transform: scale(1.05); filter: saturate(1); }
.testi__item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 15, 24, .86) 0%, rgba(8, 15, 24, .25) 45%, transparent 70%); transition: background .4s var(--ease); }
.testi__txt { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px; display: grid; gap: 3px; }
.testi__txt b { font: 700 clamp(13.5px, 1vw, 15.5px)/1.25 var(--body); }
.testi__txt span { font-size: 12.5px; opacity: .75; font-variant-numeric: tabular-nums; }
.testi__on { position: absolute; z-index: 1; top: 10px; left: 10px; padding: 5px 10px 5px 22px; border-radius: 999px; font: 800 11px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: #0b1520; background: rgba(255, 255, 255, .92); opacity: 0; transform: translateY(-4px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.testi__on::before { content: ''; position: absolute; left: 10px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #e0464e; animation: latido 1.4s ease-in-out infinite; }
@keyframes latido { 50% { opacity: .35; } }
.testi__item.is-on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink), 0 18px 40px -22px rgba(11, 21, 32, .55); }
.testi__item.is-on .testi__on { opacity: 1; transform: none; }
.testi__cta { justify-self: start; }
@media (max-width: 900px) {
  .testi__layout { grid-template-columns: 1fr; }
  .testi__frame { width: min(360px, 82vw, 44svh); }
  .testi__list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: clamp(130px, 38vw, 190px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 10px; margin: 0 -4px; scrollbar-width: none; }
  .testi__list::-webkit-scrollbar { display: none; }
  .testi__item { scroll-snap-align: start; }
  .testi__cta { justify-self: center; }
}
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.case { border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-b), var(--shadow); }
.case.is-out { display: none; }
.ba { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--iri); user-select: none; touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: #fff; translate: -1px 0; pointer-events: none; box-shadow: 0 0 20px rgba(0, 0, 0, .3); }
.ba__handle::after { content: '‹ ›'; position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font: 800 16px/1 var(--body); color: #111; background: var(--pearl); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba__range:focus-visible + * , .ba:has(.ba__range:focus-visible) { outline: 3px solid var(--accent-2); outline-offset: -3px; }
.ba__tag { position: absolute; top: 16px; padding: 7px 12px; border-radius: 999px; font: 800 11px/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: #111; background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); pointer-events: none; }
.ba__tag--l { left: 16px; } .ba__tag--r { right: 16px; }
.ba img { transition: opacity .25s var(--ease); }
.ba.is-swap img { opacity: 0; }
.case__views { display: flex; flex-wrap: wrap; gap: 6px; padding: 16px 24px 0; }
.case__views[hidden] { display: none; }
.vchip { min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 800; font-size: 13px; background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); transition: background-color .3s, color .3s; }
.vchip:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.vchip.is-on { background: var(--ink); color: var(--bg); box-shadow: none; }
.filters[hidden] { display: none; }
/* Selector de casos */
.picker { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.picker__item { flex: 0 0 auto; scroll-snap-align: start; display: flex; align-items: center; gap: 14px; width: min(350px, 84vw); padding: 10px 18px 10px 10px; border: 0; border-radius: 22px; cursor: pointer; text-align: left; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s, transform .4s var(--ease), background-color .3s; }
.picker__item:hover { box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateY(-2px); }
.picker__item.is-on { background: var(--bg-2); box-shadow: inset 0 0 0 2px var(--accent), var(--shadow); }
.picker__thumb { width: 104px; height: 78px; border-radius: 14px; object-fit: cover; flex: none; background: var(--iri); }
.picker__txt { display: grid; gap: 4px; min-width: 0; }
.picker__txt small { font: 800 12px/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.picker__txt b { font: 800 17px/1.25 var(--body); overflow-wrap: anywhere; }
/* Caso sin "antes": solo el resultado */
.case--solo .ba { cursor: default; }
/* Un solo caso: tarjeta destacada a lo ancho */
.gallery--solo { grid-template-columns: 1fr; }
.gallery--solo .case { display: grid; grid-template-columns: 1.55fr 1fr; grid-template-rows: auto 1fr; }
.gallery--solo .ba { grid-row: 1 / span 2; }
.gallery--solo .case__views { align-self: end; padding: 32px 32px 0; }
.gallery--solo .case__meta { flex-direction: column; align-items: flex-start; justify-content: flex-start; padding: 22px 32px 32px; gap: 22px; }
.gallery--solo .case__title { font-size: clamp(26px, 2.6vw, 40px); }
.case__meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; }
.case__title { font-size: clamp(24px, 2.1vw, 34px); }
.case__detail { color: var(--muted); font-size: clamp(15px, 1.1vw, 17px); font-weight: 700; margin-top: 6px; }

/* ================= Cuidados ================= */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tab { padding: 14px 22px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 800; font-size: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.tab.is-on { background: var(--ink); color: var(--bg); }
.care { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.care__col { padding: 30px; border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--card-b); }
.care__col h3 { font-size: clamp(22px, 1.8vw, 28px); margin-bottom: 16px; }
.care ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.care li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: clamp(17.5px, 1.28vw, 20px); }
.care li::before { content: ''; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 50%; background: var(--pearl); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-2) 30%, transparent); }
.alert { margin-top: 22px; padding: 30px; border-radius: var(--radius); background: var(--iri); box-shadow: inset 0 0 0 1px var(--card-b); display: grid; gap: 12px; justify-items: start; }
.alert h3 { font-size: clamp(22px, 1.8vw, 28px); }
.alert p { color: var(--ink-2); max-width: 70ch; }

/* ================= FAQ ================= */
.faq { display: grid; gap: 10px; max-width: 1100px; }
.faq details { border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-b); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 24px 64px 24px 26px; position: relative; font: 800 clamp(18px, 1.55vw, 24px)/1.3 var(--body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 22px; top: 50%; translate: 0 -50%; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--pearl); color: #111; font-weight: 800; transition: rotate .4s var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 26px 26px; color: var(--ink-2); max-width: 75ch; font-size: clamp(17.5px, 1.28vw, 20px); }

/* ================= Final ================= */
.final { position: relative; text-align: center; padding: clamp(110px, 14vw, 200px) var(--gutter); overflow: hidden; display: grid; justify-items: center; gap: 22px; isolation: isolate; }
.final__glow { position: absolute; inset: 0; z-index: -1; background: var(--iri); }
.final__glow::after { content: ''; position: absolute; inset: 0; background: radial-gradient(50% 60% at 50% 50%, transparent, var(--bg) 85%); }
.firma--final { width: min(560px, 80vw); color: var(--ink); }
.final__title { font-size: clamp(28px, 5.6vw, 88px); max-width: 16ch; overflow-wrap: break-word; }

.social { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.social[hidden], .social__link[hidden] { display: none; }
.social__link { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px 0 14px; border-radius: 999px; text-decoration: none; font-weight: 800; font-size: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s, transform .4s var(--ease); }
.social__link:hover { box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateY(-2px); }
.social__link svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social__link .dot { fill: currentColor; stroke: none; }
.social--foot .social__link { min-height: 44px; padding: 0 14px; }
.social--foot .social__link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.final__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.place { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; font-style: normal; font-weight: 700; color: var(--ink-2); }
.place[hidden], .foot__city[hidden] { display: none; }
.place svg { fill: none; stroke: currentColor; stroke-width: 2; }
.place a, .foot__city a { color: var(--ink); text-underline-offset: 3px; }
.foot { padding: 50px var(--gutter) 40px; text-align: center; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.foot__tag { font: 600 13px/1 var(--body); letter-spacing: .32em; }
.foot__small, .foot__city { color: var(--muted); font-size: 13px; }

/* ================= Menú de contacto (hover) ================= */
.contact { position: relative; display: inline-flex; }
.cmenu {
  position: fixed; z-index: 90; width: min(430px, calc(100vw - 24px)); padding: 8px; border-radius: 22px;
  background: color-mix(in srgb, var(--bg-2) 96%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: inset 0 0 0 1px var(--card-b), 0 30px 70px -20px rgba(0, 0, 0, .35);
  opacity: 0; transform: translateY(6px) scale(.98); transition: opacity .25s var(--ease), transform .35s var(--ease);
}
.cmenu.is-open { opacity: 1; transform: none; }
.cmenu__title { margin: 6px 10px 8px; font: 800 12px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.cmenu__note { margin: 8px 10px 4px; font-size: 12px; color: var(--muted); }
.cmenu__row { display: flex; align-items: stretch; gap: 6px; }
.cmenu__row[hidden], .cmenu__im[hidden] { display: none; }
.cmenu__item { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; text-decoration: none; }
.cmenu__item:hover, .cmenu__item:focus-visible, .cmenu__im:hover, .cmenu__im:focus-visible { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.cmenu__ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--btn-ink-bg); color: var(--btn-ink-fg); }
.cmenu__ico svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cmenu__txt { display: grid; gap: 2px; min-width: 0; }
.cmenu__txt b { font-weight: 800; font-size: 14.5px; }
.cmenu__txt small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.cmenu__wa { margin-left: auto; white-space: nowrap; flex: none; padding: 5px 9px; border-radius: 999px; font: 800 10.5px/1 var(--body); letter-spacing: .04em; color: #fff; background: #25d366; }
.cmenu__im { flex: none; display: grid; place-items: center; width: 46px; border-radius: 16px; color: #fff; }
.cmenu__im svg { width: 34px; height: 34px; padding: 8px; border-radius: 11px; fill: #fff; background: linear-gradient(#5fb7ff, #0a7cff); }

/* Botón flotante de WhatsApp en móvil */
.fab { display: none; }
@media (max-width: 760px) {
  .fab { display: inline-flex; position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60; }
  .fab .btn { box-shadow: 0 18px 40px -12px rgba(37, 211, 102, .6); background: #25d366; color: #fff; }
  .fab svg { fill: currentColor; stroke: none; }
}

/* ================= Intro ================= */
.intro { display: none; }
.js .intro { display: grid; position: fixed; inset: 0; z-index: 200; place-items: center; background: var(--bg); }
.intro__inner { display: grid; justify-items: center; gap: 22px; width: min(720px, 86vw); }
.firma--intro { width: 100%; height: auto; overflow: visible; }
.firma--intro .firma__path { fill: var(--ink); stroke: none; }
.intro__line { display: block; width: min(420px, 60vw); height: 1px; background: var(--ink); opacity: .35; transform-origin: center; }
.intro__tag { font: 600 clamp(12px, 1.25vw, 17px)/1 var(--body); letter-spacing: .34em; color: var(--ink); }
.intro.is-done { pointer-events: none; }

/* ================= Cursor ================= */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .js .cursor { display: block; position: fixed; z-index: 120; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; pointer-events: none;
    background: #fff; mix-blend-mode: difference; opacity: .0; transition: opacity .3s, width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease); }
  .js .cursor.is-on { opacity: .9; }
  .js .cursor.is-big { width: 70px; height: 70px; margin: -35px 0 0 -35px; }
}

/* ================= Responsive ================= */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .care { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .gallery--solo .case { display: block; }
  .gallery--solo .case__views { padding: 16px 24px 0; }
  .gallery--solo .case__meta { padding: 22px 24px; }
}
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 0; padding: 92px var(--gutter) 64px; text-align: left; }
  .hero__visual { order: -1; margin-bottom: -6px; }
  .tooth3d { width: min(40vw, 176px); }
  .hero__title { font-size: clamp(32px, 10.2vw, 60px); margin: 16px 0 18px; }
  .hero__lead { font-size: 16px; }
  .hero__ctas { margin-top: 24px; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .hero__chips { margin-top: 22px; }
  .scroll-cue { display: none; }
  .cards, .gallery, .steps { grid-template-columns: 1fr; }
  .case__meta { flex-direction: column; align-items: flex-start; }
  .nav { padding-left: 16px; }
  .nav__brand { width: 96px; }
  .contact--nav { display: none; }
  .btn--lg { padding: 0 28px; }
}

/* ================= Movimiento reducido ================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .intro { display: none; }
}
@media (max-width: 480px) { .cmenu__wa { display: none; } }
