/* ==========================================================================
   Clínica Dental Ángel González G. — estilos
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #F3F2EE;
  --surface: #FAFAF7;
  --surface-2: #E9E8E3;
  --ink: #101413;
  --ink-2: #2B3130;
  --muted: #646C69;
  --muted-2: #8A928E;
  --line: rgba(16, 20, 19, .12);
  --accent: #127466;
  --accent-soft: #D3E9E4;

  --dark: #0F1312;
  --dark-ink: #F1F0EB;
  --dark-muted: #9AA39F;
  --dark-muted-2: #6F7874;
  --dark-line: rgba(255, 255, 255, .13);

  --star: #E3A53A;

  --r-xl: 36px;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;

  --gutter: 40px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --font-display: 'Inter Tight', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0C100F;
  --surface: #141A19;
  --surface-2: #1D2423;
  --ink: #EEEDE8;
  --ink-2: #D0D3CE;
  --muted: #9AA29E;
  --muted-2: #67706C;
  --line: rgba(255, 255, 255, .1);
  --accent: #5CC4B3;
  --accent-soft: #15302B;

  --dark: #161D1C;
  --dark-line: rgba(255, 255, 255, .1);

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .45s var(--ease), color .45s var(--ease);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.04;
}
dl, dd { margin: 0; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }

svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg);
  padding: 10px 16px; border-radius: 999px; font-weight: 500;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Tipografía compartida ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.eyebrow--light { color: var(--dark-ink); }
.eyebrow--light::before { background: #6FD3BE; }

.h2 {
  font-size: clamp(2.5rem, 5.4vw, 4.6rem);
  letter-spacing: -.048em;
  line-height: .98;
  margin-top: 18px;
}
.muted { color: var(--muted-2); }

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  color: var(--muted);
  letter-spacing: -.01em;
  max-width: 36em;
  margin: 24px auto 0;
}
.lead--left { margin-left: 0; }

/* ---------- Botones ---------- */
.btn {
  --h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn svg { width: 14px; height: 14px; stroke-width: 2; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn:active { transform: scale(.98); }
.btn--sm { --h: 46px; padding: 0 20px; font-size: 15px; }
.btn--block { width: 100%; }

.btn--ink { background: var(--ink); color: var(--bg); }
.btn--ink:hover { background: var(--ink-2); }

.btn--light { background: #F3F2EE; color: #101413; }
.btn--light:hover { background: #fff; }

.btn--glass {
  color: #F3F2EE;
  border-color: rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn--glass:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .55); }

.btn--outline { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--surface); border-color: color-mix(in srgb, var(--ink) 25%, transparent); }

.icon-btn {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  transition: background-color .25s var(--ease);
}
.icon-btn:hover { background: color-mix(in srgb, var(--ink) 12%, transparent); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- Status pill ---------- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 16px 0 13px;
  border-radius: 999px;
  background: rgba(18, 24, 23, .42);
  border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 500;
  color: #F3F2EE;
}
.status-pill--dark { margin-top: 28px; }

.dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #62D6A9;
  flex: none;
}
.dot::after {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 50%;
  background: currentColor;
  color: rgba(98, 214, 169, .35);
  animation: pulse 2.2s var(--ease) infinite;
}
.is-closed .dot { background: #E9B864; }
.is-closed .dot::after { color: rgba(233, 184, 100, .3); animation: none; }
.dot--soft { background: #9FE3CF; }
.dot--soft::after { display: none; }

@keyframes pulse {
  0% { transform: scale(.6); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed;
  top: 14px; left: 0; right: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
  pointer-events: none;
}
.nav__pill {
  pointer-events: auto;
  width: 100%;
  max-width: 1180px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 9px 0 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  box-shadow: 0 10px 34px -16px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .28);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.nav.is-scrolled .nav__pill { background: color-mix(in srgb, var(--bg) 86%, transparent); }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--bg);
  flex: none;
}
.brand__mark svg { width: 20px; height: 20px; stroke-width: 1.7; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -.03em; }
.brand__sub { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav__links { display: flex; gap: 30px; font-size: 15px; }
.nav__links a { position: relative; padding: 6px 0; color: var(--ink-2); transition: color .2s; }
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__phone { font-size: 15px; padding: 0 10px; font-variant-numeric: tabular-nums; }
.nav__phone:hover { color: var(--accent); }

#theme-toggle .i-sun { display: none; }
[data-theme="dark"] #theme-toggle .i-sun { display: block; }
[data-theme="dark"] #theme-toggle .i-moon { display: none; }

.nav__burger { display: none; position: relative; }
.nav__burger span {
  position: absolute; left: 13px; right: 13px; height: 1.6px; border-radius: 2px;
  background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 24px; }
.nav.is-open .nav__burger span:first-child { top: 20.5px; transform: rotate(45deg); }
.nav.is-open .nav__burger span:last-child { top: 20.5px; transform: rotate(-45deg); }

.nav__mobile {
  pointer-events: auto;
  width: 100%;
  max-width: 1180px;
  margin-top: 8px;
  padding: 14px;
  border-radius: 26px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .35);
  animation: drop .35s var(--ease);
}
.nav__mobile[hidden] { display: none; }
.nav__mobile > a {
  display: block;
  padding: 14px 12px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -.03em;
  border-bottom: 1px solid var(--line);
}
.nav__mobile-actions { display: grid; gap: 8px; margin-top: 14px; }

@keyframes drop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* ==========================================================================
   VIDRIO ESTRIADO (fluted glass)
   ========================================================================== */
.glass {
  position: relative;
  overflow: hidden;
  background-color: #151A19;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
}
.js .glass { background-image: none; }
.glass__layer {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .9s var(--ease);
}
.glass.is-ready .glass__layer { opacity: 1; }
.glass__strip {
  position: absolute;
  top: 0; bottom: 0;
  background-repeat: no-repeat;
}
.glass__strip::after {
  content: '';
  position: absolute; inset: 0;
  opacity: var(--g, 1);
  background: linear-gradient(90deg,
    rgba(255, 255, 255, .16) 0%,
    rgba(255, 255, 255, .05) 16%,
    rgba(255, 255, 255, 0) 42%,
    rgba(0, 0, 0, .06) 68%,
    rgba(0, 0, 0, .3) 100%);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  max-height: 980px;
  overflow: hidden;
  color: #F3F2EE;
  background: #0D1211;
  isolation: isolate;
}
.hero > .glass { position: absolute; inset: 0; }
.hero__shade {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 12, 11, .5) 0%, rgba(8, 12, 11, 0) 20%, rgba(8, 12, 11, 0) 42%, rgba(8, 12, 11, .82) 100%),
    linear-gradient(90deg, rgba(8, 12, 11, .3) 0%, rgba(8, 12, 11, 0) 45%);
}
.hero__hint {
  position: absolute;
  top: 100px; right: 40px;
  display: none;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 16px 0 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) { .hero__hint { display: inline-flex; } }

.hero__content {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding-bottom: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 390px);
  gap: 48px;
  align-items: end;
}
.hero__title {
  margin-top: 24px;
  font-size: clamp(3.3rem, 8.4vw, 8.4rem);
  line-height: .9;
  letter-spacing: -.058em;
  font-weight: 500;
}
.hero__right p {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.45;
  letter-spacing: -.012em;
  color: rgba(243, 242, 238, .9);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.js .hero__left, .js .hero__right { opacity: 0; transform: translateY(24px); animation: rise 1.1s var(--ease) forwards; }
.js .hero__left { animation-delay: .15s; }
.js .hero__right { animation-delay: .32s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ==========================================================================
   SECCIONES
   ========================================================================== */
.section { padding: 140px 0; }
.section--intro { padding-top: 150px; }
.section--tight-top { padding-top: 40px; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: 40px;
  align-items: end;
  margin-bottom: 56px;
}
.section-head__aside { color: var(--muted); font-size: 16px; line-height: 1.6; }
.section-head--center { display: block; text-align: center; margin-bottom: 0; }
.section-head--center .eyebrow { justify-content: center; }

.hover-only { display: none; }
@media (hover: hover) and (pointer: fine) { .hover-only { display: inline; } }

/* ---------- Manifiesto ---------- */
.manifesto {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.manifesto .eyebrow { margin-top: 14px; }
.manifesto__text {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3.65rem);
  font-weight: 500;
  letter-spacing: -.042em;
  line-height: 1.06;
  max-width: 16em;
}
.manifesto__text em { font-style: normal; color: var(--accent); }
.word { transition: color .45s var(--ease), opacity .45s var(--ease); color: var(--muted-2); opacity: .5; }
.word.is-on { color: var(--ink); opacity: 1; }
.word.accent.is-on { color: var(--accent); }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-top: 120px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.stat__value { display: flex; align-items: baseline; gap: 8px; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 6vw, 5.6rem);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: .9;
  font-variant-numeric: tabular-nums;
}
.stat__unit {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.9vw, 1.75rem);
  letter-spacing: -.02em;
  color: var(--muted);
}
.stat__text { margin-top: 16px; color: var(--muted); font-size: 15px; line-height: 1.5; max-width: 26ch; }

/* ---------- Tarjetas de tratamientos ---------- */
.tcards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.tcard {
  position: relative;
  aspect-ratio: 3 / 4.5;
  border-radius: 24px;
  overflow: hidden;
  color: #F3F2EE;
  background: #121716;
  isolation: isolate;
}
.tcard > .glass { position: absolute; inset: 0; }
.tcard .glass__layer { filter: saturate(.85) contrast(1.03); }
.tcard__shade {
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .32) 0%, rgba(0, 0, 0, .05) 22%, rgba(0, 0, 0, .05) 45%, rgba(0, 0, 0, .78) 100%);
}
.tcard__num { position: absolute; top: 22px; left: 22px; font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.tcard__body { position: absolute; left: 22px; right: 22px; bottom: 22px; }
.tcard__title { font-size: clamp(1.55rem, 2.3vw, 2.15rem); letter-spacing: -.04em; line-height: 1; }
.tcard__meta { margin-top: 12px; font-size: 14px; font-weight: 500; opacity: .92; }
.tcard__meta span { margin: 0 4px; }

/* ---------- Lista de tratamientos ---------- */
.tlist {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px;
  margin-top: 100px;
}
.tlist__aside { position: sticky; top: 112px; align-self: start; }
.tlist__title { font-weight: 500; font-size: 15px; }
.tlist__text { margin-top: 10px; font-size: 15px; color: var(--muted); max-width: 26ch; }
.tlist__rows { border-top: 1px solid var(--line); }
.trow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 150px;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background-color .3s var(--ease);
}
.trow h3 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); letter-spacing: -.03em; line-height: 1.15; }
.trow > p { color: var(--muted); font-size: 15px; line-height: 1.55; padding-top: 3px; }
.trow__meta { text-align: right; font-size: 15px; line-height: 1.5; padding-top: 3px; }
.trow__meta strong { display: block; font-weight: 500; color: var(--ink); }
.trow__meta span { color: var(--muted); }
.trow__meta a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   PANEL OSCURO — PRIMERA CITA
   ========================================================================== */
.panel-dark {
  margin: 0 20px;
  padding: 110px 0 120px;
  border-radius: var(--r-xl);
  background: var(--dark);
  color: var(--dark-ink);
}
[data-theme="dark"] .panel-dark { border: 1px solid var(--dark-line); }
.panel-dark .muted { color: var(--dark-muted-2); }
.section-head--dark .section-head__aside { color: var(--dark-muted); }
.section-head--dark .section-head__aside .btn { margin-top: 24px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: 40px;
  counter-reset: none;
}
.step { border-top: 1px solid var(--dark-line); padding-top: 26px; }
.step__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.step__num {
  font-family: var(--font-display);
  font-size: clamp(5rem, 9vw, 8.6rem);
  font-weight: 400;
  letter-spacing: -.065em;
  line-height: .82;
}
.step__time {
  flex: none;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--dark-line);
  font-size: 13px;
  color: var(--dark-muted);
}
.step h3 { margin-top: 76px; font-size: clamp(1.6rem, 2.4vw, 2.2rem); letter-spacing: -.04em; }
.step p { margin-top: 12px; color: var(--dark-muted); max-width: 32ch; }

/* ==========================================================================
   GUÍA
   ========================================================================== */
.guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 64px;
  padding: 12px;
  border-radius: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.guide__list { padding: 26px 16px 16px; }
.guide__label { font-size: 14px; color: var(--muted); padding: 0 14px 12px; }
.guide__opt {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 15px 16px;
  border-radius: 14px;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  letter-spacing: -.02em;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.guide__opt:hover { background: var(--surface-2); }
.guide__opt small {
  flex: none;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.guide__opt small::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--lvl, #7BC8B5); }
.guide__opt[aria-checked="true"] { background: var(--ink); color: var(--bg); }
.guide__opt[aria-checked="true"] small { color: color-mix(in srgb, var(--bg) 70%, transparent); }

.lvl-1 { --lvl: #6CC6B0; }
.lvl-2 { --lvl: #E7B45E; }
.lvl-3 { --lvl: #EA7F64; }

.guide__panel {
  display: flex;
  flex-direction: column;
  padding: 36px;
  border-radius: 22px;
  background: var(--dark);
  color: var(--dark-ink);
}
.guide__kicker { font-size: 14px; color: var(--dark-muted); font-weight: 500; }
.guide__swap { transition: opacity .3s var(--ease), transform .3s var(--ease); }
.guide__swap.is-swapping { opacity: 0; transform: translateY(8px); }
.guide__title {
  margin-top: 12px;
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  letter-spacing: -.048em;
  line-height: 1;
}
.guide__desc { margin-top: 18px; color: var(--dark-muted); font-size: 16px; line-height: 1.6; min-height: 5em; }

.meter { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--dark-line); }
.meter__top { display: flex; justify-content: space-between; font-size: 14px; font-weight: 500; }
.meter__top span:first-child { color: var(--dark-muted); font-weight: 400; }
.meter__bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.meter__bar span { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .1); transition: background-color .4s var(--ease); }
.meter[data-level="1"] .meter__bar span:nth-child(-n+1),
.meter[data-level="2"] .meter__bar span:nth-child(-n+2),
.meter[data-level="3"] .meter__bar span:nth-child(-n+3) { background: var(--lvl); }

.guide__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--dark-line);
}
.guide__facts dt { font-size: 13px; color: var(--dark-muted); }
.guide__facts dd { margin-top: 4px; font-family: var(--font-display); font-size: 20px; letter-spacing: -.02em; }
.guide__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.guide__ctas [hidden] { display: none; }
.guide__note { margin-top: auto; padding-top: 24px; font-size: 13px; line-height: 1.5; color: var(--dark-muted-2); }

/* ---------- Perks ---------- */
.perks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: 64px;
}
.perk { display: flex; gap: 18px; border-top: 1px solid var(--line); padding-top: 26px; }
.perk__icon {
  width: 46px; height: 46px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-2);
  color: var(--ink);
}
.perk__icon svg { width: 20px; height: 20px; }
.perk h3 { font-size: 21px; letter-spacing: -.03em; line-height: 1.2; }
.perk p { margin-top: 8px; font-size: 15px; color: var(--muted); line-height: 1.55; }

/* ==========================================================================
   DOCTOR
   ========================================================================== */
.doctor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px;
  align-items: center;
}
.doctor__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
}
.doctor__media > .glass { position: absolute; inset: 0; }
.doctor__badge {
  position: absolute;
  left: 18px; bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 16px;
  border-radius: 999px;
  color: #F3F2EE;
  background: rgba(16, 20, 19, .5);
  border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.doctor__badge-num { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -.03em; }
.doctor__badge-text { font-size: 14px; color: rgba(243, 242, 238, .8); }

.values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 36px;
  margin-top: 44px;
}
.value { border-top: 1px solid var(--line); padding-top: 18px; }
.value h3 { font-size: 19px; letter-spacing: -.025em; }
.value p { margin-top: 8px; font-size: 15px; color: var(--muted); line-height: 1.55; }

.signature { display: flex; align-items: center; gap: 14px; margin-top: 44px; }
.signature__mark {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.02em;
}
.signature__name { font-family: var(--font-display); font-size: 19px; font-weight: 500; letter-spacing: -.025em; }
.signature__role { font-size: 14px; color: var(--muted); }

/* ==========================================================================
   INSTALACIONES
   ========================================================================== */
.inst {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 300px 300px 420px;
  gap: 12px;
  grid-template-areas:
    "main main main main main main a a a b b b"
    "main main main main main main info info info info info info"
    "c c c c d d d d e e e e";
}
.tile--main { grid-area: main; }
.tile--a { grid-area: a; }
.tile--b { grid-area: b; }
.inst__info { grid-area: info; }
.tile--c { grid-area: c; }
.tile--d { grid-area: d; }
.tile--e { grid-area: e; }

.tile {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #121716;
  color: #F3F2EE;
  cursor: zoom-in;
  isolation: isolate;
}
.tile__media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter .6s var(--ease);
}
.tile:hover .tile__media { transform: scale(1.04); }
.tile__shade {
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, .7) 100%);
}
.tile__overlay {
  position: absolute;
  left: 22px; right: 22px; bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.tile__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  height: 28px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  background: rgba(18, 24, 23, .45);
  border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.tile__kicker .dot { background: #F07A6A; width: 7px; height: 7px; }
.tile__kicker .dot::after { color: rgba(240, 122, 106, .35); }
.tile__title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1;
}
.tile__title--sm { font-size: clamp(1.15rem, 1.5vw, 1.4rem); letter-spacing: -.03em; }

.tile__btn {
  position: absolute;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #F3F2EE;
  background: rgba(18, 24, 23, .42);
  border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background-color .25s var(--ease), opacity .3s var(--ease), transform .3s var(--ease);
}
.tile__btn:hover { background: rgba(18, 24, 23, .7); }
.tile__btn svg { width: 16px; height: 16px; stroke-width: 1.8; }
.tile__expand { top: 14px; right: 14px; opacity: 0; transform: scale(.9); }
.tile:hover .tile__expand, .tile__expand:focus-visible { opacity: 1; transform: none; }
@media (hover: none) { .tile__expand { opacity: 1; transform: none; } }
.tile__pause { right: 14px; bottom: 14px; }
.tile:has(.tile__pause) .tile__overlay { right: 70px; }

/* Botón de sonido de los videos (traen música) */
.sound-btn { right: 62px; bottom: 14px; }
.sound-btn .i-sound { display: none; }
.sound-btn[aria-pressed="true"] .i-sound { display: block; }
.sound-btn[aria-pressed="true"] .i-muted { display: none; }
.sound-btn[aria-pressed="true"] { background: rgba(243, 242, 238, .92); color: #101413; }
.tile:has(.sound-btn) .tile__overlay { right: 118px; }
.sound-btn--card { right: 16px; bottom: 18px; z-index: 2; }
.tcard:has(.sound-btn) .tcard__body { right: 66px; }
.tile__pause .i-play { display: none; fill: currentColor; stroke: none; }
.tile__pause[aria-pressed="true"] .i-play { display: block; }
.tile__pause[aria-pressed="true"] .i-pause { display: none; }

.inst__info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 28px 30px;
  border-radius: 24px;
  background: var(--dark);
  color: var(--dark-ink);
}
[data-theme="dark"] .inst__info { border: 1px solid var(--dark-line); }
.inst__info-top { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.inst__kicker { font-size: 14px; font-weight: 500; color: var(--dark-muted); }
.inst__quote { font-family: var(--font-display); font-size: 17px; letter-spacing: -.02em; }
.inst__quote span { color: var(--dark-muted); font-family: var(--font-body); font-size: 13px; letter-spacing: 0; margin-left: 4px; }
.inst__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.inst__list li { border-top: 1px solid var(--dark-line); padding-top: 16px; }
.inst__icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .07);
  color: #9FE3CF;
}
.inst__icon svg { width: 18px; height: 18px; }
.inst__list h3 { margin-top: 14px; font-size: 18px; letter-spacing: -.025em; }
.inst__list p { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--dark-muted); }

/* ---------- Visor (lightbox) ---------- */
.lightbox {
  width: 100vw; height: 100vh;
  width: 100dvw; height: 100dvh;
  max-width: none; max-height: none;
  margin: 0; padding: 0;
  border: 0;
  background: transparent;
  color: #F3F2EE;
  overflow: hidden;
}
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; animation: lb-in .35s var(--ease); }
.lightbox::backdrop {
  background: rgba(7, 11, 10, .9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox__stage {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 88px 12px;
}
.lightbox__stage img,
.lightbox__stage video {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto; height: auto;
  border-radius: 18px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
  animation: lb-media .45s var(--ease);
}
@keyframes lb-media { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.lightbox__bar {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 16px;
  padding: 14px 24px 26px;
  font-size: 15px;
}
.lightbox__count { color: rgba(243, 242, 238, .55); font-variant-numeric: tabular-nums; }
.lightbox__btn {
  position: absolute;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #F3F2EE;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  transition: background-color .25s var(--ease);
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .18); }
.lightbox__btn svg { width: 20px; height: 20px; stroke-width: 1.8; }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
body.lb-open { overflow: hidden; }

/* ---------- Vidrio con fotos y videos propios (galería en canvas) ---------- */
.glass--media > img,
.glass--media > video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Sin JavaScript se ve solo el primer elemento */
.glass--media > img:not(:first-child),
.glass--media > video:not(:first-child) { opacity: 0; }
.glass__canvas { display: block; width: 100%; height: 100%; }

/* Pasos de la galería dentro de la tarjeta */
.tcard__steps {
  position: absolute;
  top: 28px; left: 58px; right: 22px;
  display: flex;
  gap: 4px;
  pointer-events: none;
}
.tcard__seg {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, .3);
}
.tcard__seg i {
  display: block;
  height: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
}
.tcard__label {
  position: absolute;
  top: 42px; right: 22px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  background: rgba(18, 24, 23, .45);
  border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.tcard__label.is-changing { opacity: 0; }

/* ---------- Estrellas ---------- */
.stars { display: inline-flex; gap: 3px; color: var(--star); }
.stars svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.stars--sm svg { width: 14px; height: 14px; }

/* ==========================================================================
   OPINIONES
   ========================================================================== */
.reviews {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr);
  gap: 72px;
  align-items: start;
}
.reviews__summary { position: sticky; top: 112px; }
.rating {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 40px 0 28px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.rating__num {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 7vw, 6rem);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: .85;
}
.rating__text { margin-top: 8px; font-size: 15px; color: var(--muted); line-height: 1.45; }

.reviews__grid { columns: 2; column-gap: 12px; }
.quote {
  break-inside: avoid;
  margin: 0 0 12px;
  padding: 30px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.1vw, 1.85rem);
  letter-spacing: -.035em;
  line-height: 1.15;
}
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 30px; font-size: 14px; line-height: 1.3; }
.quote figcaption > span:last-child { display: flex; flex-direction: column; }
.quote figcaption strong { font-weight: 500; }
.quote figcaption span span { color: var(--muted); }
.avatar {
  width: 38px; height: 38px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 600;
  font-size: 15px;
  background: var(--accent-soft);
  color: var(--accent);
}
.quote--feature { background: var(--ink); color: var(--bg); border-color: transparent; padding: 36px 32px; }
.quote--feature blockquote { font-size: clamp(1.8rem, 2.8vw, 2.5rem); }
.quote--feature figcaption span span { color: color-mix(in srgb, var(--bg) 65%, transparent); }
.avatar--g { background: color-mix(in srgb, var(--bg) 14%, transparent); color: var(--bg); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr);
  gap: 72px;
  align-items: start;
}
.faq__intro .btn { margin-top: 28px; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item h3 { font-size: inherit; letter-spacing: inherit; }
.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.25;
}
.faq__icon {
  width: 38px; height: 38px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-2);
  transition: transform .4s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.faq__icon svg { width: 16px; height: 16px; stroke-width: 1.8; }
.faq__q:hover .faq__icon { background: color-mix(in srgb, var(--ink) 14%, transparent); }
.faq__q[aria-expanded="true"] .faq__icon { transform: rotate(45deg); background: var(--ink); color: var(--bg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a p { padding: 0 62px 28px 0; color: var(--muted); max-width: 62ch; }

/* ==========================================================================
   CONTACTO / VISITA
   ========================================================================== */
.visit {
  position: relative;
  margin: 0 20px;
  border-radius: var(--r-xl);
  overflow: hidden;
  color: #F3F2EE;
  background: #0B100F;
  isolation: isolate;
}
.visit > .glass { position: absolute; inset: 0; z-index: -2; }
.visit__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 13, 12, .93) 0%, rgba(7, 13, 12, .8) 50%, rgba(7, 13, 12, .55) 100%),
    linear-gradient(0deg, rgba(10, 52, 46, .35), rgba(10, 52, 46, .35));
}
.visit__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 64px;
  padding-top: 100px;
  padding-bottom: 100px;
  align-items: stretch;
}
.visit__info .map__actions { margin-top: 36px; }
.map.map--lg { margin-top: 0; height: auto; min-height: 460px; }
.visit .muted { color: #8E9894; }
.visit .status-pill { background: rgba(255, 255, 255, .08); }

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
  margin-top: 40px;
  padding-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.info-grid dt { font-size: 13px; color: rgba(243, 242, 238, .58); }
.info-grid dd {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: -.02em;
  line-height: 1.38;
}
.info-grid dd a { border-bottom: 1px solid rgba(255, 255, 255, .3); transition: border-color .2s; }
.info-grid dd a:hover { border-color: #fff; }
.dd-muted { color: rgba(243, 242, 238, .58); font-size: 16px; }

.map {
  position: relative;
  height: 270px;
  margin-top: 40px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  background: #1A201F;
}
.map iframe {
  width: 100%; height: 100%; border: 0; display: block;
  filter: grayscale(.85) contrast(1.05) brightness(.96);
}
.map__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* ---------- Agenda ---------- */
.agenda {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 80px;
  align-items: start;
}
.agenda__intro { position: sticky; top: 112px; }
.agenda__steps { margin-top: 40px; border-top: 1px solid var(--line); }
.agenda__steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.agenda__num {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
}
.agenda__steps h3 { font-size: 19px; letter-spacing: -.025em; }
.agenda__steps p { margin-top: 4px; font-size: 15px; color: var(--muted); }
.agenda__alt { margin-top: 32px; }
.agenda__alt p { font-size: 15px; color: var(--muted); }
.agenda__alt-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.agenda .booking {
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -48px rgba(16, 20, 19, .35);
}

/* ---------- Formulario ---------- */
.booking {
  padding: 36px;
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55);
}
.booking__title { font-size: clamp(1.9rem, 2.6vw, 2.4rem); letter-spacing: -.045em; }
.booking__intro { margin-top: 10px; font-size: 15px; color: var(--muted); line-height: 1.55; }
.booking__intro a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.booking__form > .field:first-of-type { margin-top: 26px; }

.field { margin-top: 10px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.input::placeholder { color: var(--muted); opacity: 1; }
.input:hover { border-color: color-mix(in srgb, var(--ink) 22%, transparent); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
textarea.input { height: auto; min-height: 96px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
select.input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23646C69' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
}
select.input:invalid, select.input.is-empty { color: var(--muted); }
.field__error { display: none; margin-top: 6px; font-size: 13px; color: #C2412D; }
[data-theme="dark"] .field__error { color: #F08A73; }
.field.has-error .input { border-color: #C2412D; }
.field.has-error .field__error { display: block; }

.booking__group { margin-top: 20px; }
.booking__label {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 500;
}
.booking__label .opt { color: var(--muted); font-weight: 400; }
.chips { display: grid; gap: 6px; }
.chips--days { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.chips--times { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chip {
  padding: 9px 4px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  text-align: center;
  font-size: 12.5px;
  line-height: 1.2;
  color: var(--muted);
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip strong { display: block; margin-top: 2px; font-family: var(--font-display); font-size: 19px; font-weight: 500; color: var(--ink); letter-spacing: -.02em; }
.chip small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.chips--times .chip { font-size: 14px; font-weight: 500; color: var(--ink); padding: 10px 4px; }
.chip:hover { border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: color-mix(in srgb, var(--bg) 70%, transparent); }
.chip[aria-pressed="true"] strong,
.chips--times .chip[aria-pressed="true"] { color: var(--bg); }
.chip[aria-pressed="true"] small { color: color-mix(in srgb, var(--bg) 65%, transparent); }

.booking .btn--block { margin-top: 20px; height: 56px; }
.booking__foot { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.booking__foot a { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

.booking__success { text-align: left; outline: none; }
.booking__success .btn { margin-top: 24px; }
.booking__check {
  width: 56px; height: 56px;
  margin-bottom: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}
.booking__check svg { width: 26px; height: 26px; stroke-width: 2.2; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { padding: 110px 0 32px; }
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, .5fr));
  gap: 40px;
}
.footer__desc { margin-top: 22px; max-width: 34ch; color: var(--muted); }
.footer__brand .btn { margin-top: 26px; }
.footer__col h4 { font-family: var(--font-body); font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--muted); margin-bottom: 14px; }
.footer__col a { display: block; padding: 5px 0; font-size: 15px; transition: color .2s; }
.footer__col a:hover { color: var(--accent); }

.wordmark {
  margin: 84px 0 28px;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.062em;
  white-space: nowrap;
  font-size: 13.5vw;
}
.wordmark span { display: inline-block; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

/* ---------- WhatsApp flotante ---------- */
.fab {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 20px 0 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .55), 0 0 0 4px color-mix(in srgb, var(--bg) 35%, transparent);
  transform: translateY(140%);
  opacity: 0;
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.fab.is-visible { transform: none; opacity: 1; }
.fab__icon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #25D366; color: #fff; }
.fab__icon svg { width: 20px; height: 20px; stroke-width: 1.8; }

/* ---------- Reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1240px) {
  .nav__phone { display: none; }
  .nav__links { gap: 22px; }
}

@media (max-width: 1040px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: grid; }

  .hero__content { grid-template-columns: 1fr; gap: 26px; }
  .hero__right { max-width: 520px; }

  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .manifesto { grid-template-columns: 1fr; gap: 24px; }
  .manifesto .eyebrow { margin-top: 0; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 32px; }

  .tcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tcard { aspect-ratio: 4 / 4.6; }
  .tlist { grid-template-columns: 1fr; gap: 28px; margin-top: 72px; }
  .tlist__aside { position: static; }
  .trow { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) 130px; gap: 24px; }

  .steps { gap: 28px; }
  .guide { grid-template-columns: 1fr; }
  .perks { grid-template-columns: 1fr; gap: 0; }
  .perk { padding: 24px 0; }

  .doctor { grid-template-columns: 1fr; gap: 48px; }
  .doctor__media { aspect-ratio: 16 / 11; }

  .inst {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: 280px 280px auto 340px;
    grid-template-areas:
      "main main main a a a"
      "main main main b b b"
      "info info info info info info"
      "c c d d e e";
  }

  .reviews { grid-template-columns: 1fr; gap: 48px; }
  .reviews__summary { position: static; }

  .faq { grid-template-columns: 1fr; gap: 40px; }

  .visit__inner { grid-template-columns: 1fr; gap: 40px; }
  .map.map--lg { min-height: 340px; }
  .agenda { grid-template-columns: 1fr; gap: 48px; }
  .agenda__intro { position: static; }
  .booking { max-width: 620px; }

  .footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  .steps { grid-template-columns: 1fr; gap: 44px; }
  .step h3 { margin-top: 28px; }
  .trow { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t m" "d d"; gap: 8px 20px; padding: 22px 0; }
  .trow h3 { grid-area: t; }
  .trow > p:not(.trow__meta) { grid-area: d; padding-top: 0; }
  .trow__meta { grid-area: m; }
}

@media (max-width: 640px) {
  :root { --gutter: 18px; }
  html { scroll-padding-top: 84px; }

  .nav { top: 10px; padding: 0 10px; }
  .nav__pill { height: 58px; padding: 0 7px 0 8px; }
  .brand__mark { width: 38px; height: 38px; }
  .brand__name { font-size: 16px; }
  .icon-btn { width: 40px; height: 40px; }
  .nav__burger span { left: 12px; right: 12px; }
  .nav__burger span:first-child { top: 16px; }
  .nav__burger span:last-child { top: 23px; }
  .nav.is-open .nav__burger span:first-child,
  .nav.is-open .nav__burger span:last-child { top: 19.5px; }

  .hero { min-height: 600px; }
  .hero__content { padding-bottom: 28px; }
  .hero__title { font-size: clamp(3rem, 14.5vw, 4.4rem); margin-top: 18px; }
  .hero__ctas .btn { flex: 1 1 auto; }

  .section { padding: 88px 0; }
  .section--intro { padding-top: 96px; }
  .section--tight-top { padding-top: 24px; }
  .section-head { margin-bottom: 36px; }
  .stats { margin-top: 72px; gap: 36px 20px; }
  .stat__text { font-size: 14px; }

  /* Carrusel horizontal de tarjetas */
  .tcards {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 4px;
    scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .tcards::-webkit-scrollbar { display: none; }
  .tcard { flex: 0 0 76%; aspect-ratio: 3 / 4.1; scroll-snap-align: start; }

  .panel-dark, .visit { margin: 0 8px; border-radius: 26px; }
  .panel-dark { padding: 80px 0 88px; }

  .guide { padding: 8px; border-radius: 26px; margin-top: 44px; }
  .guide__list { padding: 18px 6px 8px; }
  .guide__label { padding: 0 12px 10px; }
  .guide__opt { padding: 13px 12px; }
  .guide__panel { padding: 26px 22px; border-radius: 20px; }
  .guide__desc { min-height: 0; }
  .guide__ctas .btn { flex: 1 1 auto; }
  .perks { margin-top: 40px; }

  .values { grid-template-columns: 1fr; gap: 0; margin-top: 32px; }
  .value { padding: 18px 0; }
  .doctor__media { aspect-ratio: 4 / 4.4; border-radius: 22px; }

  .inst {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 480px 230px auto 420px 230px;
    gap: 8px;
    grid-template-areas:
      "main main"
      "a b"
      "info info"
      "c c"
      "d e";
  }
  .tile { border-radius: 20px; }
  .tile__overlay { left: 16px; right: 16px; bottom: 16px; }
  .tile:has(.tile__pause) .tile__overlay { right: 62px; }
  .tile:has(.sound-btn) .tile__overlay { right: 110px; }
  .inst__quote span { display: block; margin: 4px 0 0; }
  .inst__info { padding: 24px 20px; border-radius: 20px; }
  .inst__list { grid-template-columns: 1fr; gap: 0; }
  .inst__list li { display: grid; grid-template-columns: 38px 1fr; column-gap: 14px; padding: 16px 0; }
  .inst__list li .inst__icon { grid-row: span 2; }
  .inst__list h3 { margin-top: 0; }
  .lightbox__stage { padding: 68px 12px 8px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 18px; transform: none; width: 44px; height: 44px; }
  .lightbox__bar { padding: 12px 70px 30px; flex-direction: column; align-items: center; gap: 2px; text-align: center; }

  .reviews__grid { columns: 1; }
  .quote { padding: 26px 24px; }

  .faq__a p { padding-right: 0; }

  .visit__inner { padding-top: 72px; padding-bottom: 24px; gap: 32px; }
  .map.map--lg { min-height: 300px; }
  .agenda__alt-actions .btn { flex: 1 1 auto; }
  .info-grid { grid-template-columns: 1fr; gap: 22px; }
  .map { height: 230px; }
  .map__actions .btn { flex: 1 1 auto; }
  .booking { padding: 26px 20px; border-radius: 22px; margin: 0 calc(var(--gutter) * -1 + 8px) 0; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .chips--days { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .footer { padding-top: 80px; padding-bottom: 96px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .wordmark { margin: 64px 0 24px; }
  .footer__bottom { flex-direction: column; }

  .fab { right: 14px; bottom: 14px; height: 52px; padding: 0 16px 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .hero__left, .js .hero__right { opacity: 1; transform: none; }
}
