/* ═══════════════════════════════════════════════════════════════
   DRA. CLAUDIA CARDONA — ODONTOLOGÍA ESTÉTICA & IMPLANTES
   Sistema de diseño · Fraunces + Manrope · Crema / Tinta / Oro
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Paleta */
  --ink:        #082A24;
  --ink-2:      #0C362E;
  --ink-3:      #11453A;
  --teal:       #0F7A66;
  --gold:       #C9A96A;
  --gold-2:     #E4CD9C;
  --gold-ink:   #A98444;      /* oro legible sobre fondo claro */
  --cream:      #F7F3EA;
  --cream-2:    #EFE8DA;
  --paper:      #FBF9F3;
  --text:       #24352F;
  --muted:      #5B6B64;
  --line:       rgba(8, 42, 36, .14);
  --text-inv:   #F2EFE6;
  --muted-inv:  rgba(242, 239, 230, .62);
  --line-inv:   rgba(242, 239, 230, .14);
  --glass-inv:  rgba(255, 255, 255, .055);

  /* Tipografía */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;

  --display:  clamp(2.9rem, 7.2vw, 6.6rem);
  --title:    clamp(2.1rem, 4.6vw, 4rem);
  --title-sm: clamp(1.7rem, 3.2vw, 2.6rem);

  /* Espaciado */
  --section-pad: clamp(5.5rem, 10vw, 9.5rem);
  --radius: 26px;
  --radius-lg: 36px;
  --container: 1220px;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-io:  cubic-bezier(.76, 0, .24, 1);
}

/* ─────────── Reset ─────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html.has-lenis, html.has-lenis body { scroll-behavior: auto; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  min-height: 100vh;
}

body.is-loading { overflow: hidden; }

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: italic; }

::selection { background: var(--gold); color: var(--ink); }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--cream-2); }
::-webkit-scrollbar-thumb { background: var(--ink-3); border-radius: 99px; border: 3px solid var(--cream-2); }

:focus-visible { outline: 2px dashed var(--gold-ink); outline-offset: 4px; border-radius: 4px; }

/* ─────────── Grano cinematográfico (capa estática, sin coste de GPU) ─────────── */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 2000;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─────────── Cursor personalizado ─────────── */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 3000;
  border-radius: 50%;
  opacity: 0;
}
.cursor-dot {
  width: 7px; height: 7px;
  background: var(--gold);
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 1.5px solid rgba(201, 169, 106, .75);
  transform: translate(-50%, -50%);
  transition: width .35s var(--ease-out), height .35s var(--ease-out),
              border-color .35s, background-color .35s;
}
.cursor-ring.is-hover {
  width: 64px; height: 64px;
  background: rgba(201, 169, 106, .12);
  border-color: var(--gold);
}
.cursor-ring.is-press { width: 28px; height: 28px; }
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ─────────── Barra de progreso ─────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 1500;
}

/* ─────────── Preloader ─────────── */
.preloader {
  position: fixed; inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  color: var(--text-inv);
}
.preloader__panels { position: absolute; inset: 0; display: flex; }
.preloader__panels span {
  flex: 1;
  background: var(--ink);
  border-right: 1px solid rgba(255,255,255,.04);
  transform-origin: top;
}
.preloader__inner { position: relative; z-index: 2; text-align: center; }
.preloader__brand {
  display: flex; align-items: center; justify-content: center; gap: .9rem;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  font-size: .72rem;
  color: var(--muted-inv);
}
.preloader__monogram { width: 30px; height: 30px; color: var(--gold); }
.preloader__count {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(5.5rem, 16vw, 10rem);
  line-height: 1;
  color: var(--cream);
  margin: 1.4rem 0 .8rem;
  font-variant-numeric: tabular-nums;
}
.preloader__count i {
  font-style: normal;
  font-size: .32em;
  color: var(--gold);
  vertical-align: super;
  margin-left: .18em;
}
.preloader__tag {
  font-size: .8rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-2);
}

/* ─────────── Botones ─────────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  padding: 1.05rem 2.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  line-height: 1;
  overflow: hidden;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out),
              background-color .35s, color .35s, border-color .35s;
  will-change: transform;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: none; transition: transform .45s var(--ease-out); }
.btn:hover svg { transform: translate(3px, -3px); }
.btn:active { transform: scale(.97); }

.btn--gold {
  background: linear-gradient(120deg, #E2C98F, var(--gold) 55%, #AE8C4C);
  color: #241A08;
  box-shadow: 0 10px 28px -10px rgba(169, 132, 68, .55);
}
.btn--gold::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease-out);
}
.btn--gold:hover::before { transform: translateX(120%); }
.btn--gold:hover { box-shadow: 0 16px 38px -10px rgba(169, 132, 68, .7); }

.btn--ink {
  background: var(--ink);
  color: var(--text-inv);
  box-shadow: 0 12px 30px -12px rgba(8, 42, 36, .5);
}
.btn--ink:hover { background: var(--ink-3); }

.btn--ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255,255,255,.35);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: var(--ink); color: var(--text-inv); border-color: var(--ink); }

.btn--sm { padding: .78rem 1.5rem; font-size: .84rem; }
.btn--lg { padding: 1.25rem 2.5rem; font-size: 1rem; }
.btn--xl { padding: 1.45rem 3rem; font-size: 1.05rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 700;
  font-size: .95rem;
  color: var(--ink);
  position: relative;
}
.link-arrow::after {
  content: "";
  position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.link-arrow:hover::after { transform: scaleX(1); transform-origin: left; }
.link-arrow svg { width: 16px; height: 16px; }

/* ─────────── Navegación ─────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1200;
  padding: 1.4rem 0;
  transition: transform .55s var(--ease-out), padding .45s var(--ease-out),
              background-color .45s, backdrop-filter .45s, box-shadow .45s;
}
.nav.is-scrolled {
  padding: .65rem 0;
  background: rgba(247, 243, 234, .82);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line), 0 18px 44px -28px rgba(8, 42, 36, .35);
}
.nav.is-hidden { transform: translateY(-110%); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand { display: inline-flex; align-items: center; gap: .85rem; }
.brand__mark { width: 46px; height: 46px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.18; }
.brand__text strong { font-family: var(--font-display); font-size: 1.06rem; font-weight: 600; letter-spacing: .01em; }
.brand__text small { font-size: .64rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

.nav__links { display: flex; gap: 2rem; }
.nav__links a {
  position: relative;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text);
  padding: .4rem 0;
  opacity: .82;
  transition: opacity .3s;
}
.nav__links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: var(--gold-ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav__links a:hover, .nav__links a.is-active { opacity: 1; }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav__actions { display: flex; align-items: center; gap: 1rem; }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  align-items: center;
  background: rgba(255,255,255,.4);
}
.nav__burger span {
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .45s var(--ease-out), opacity .3s;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* Menú móvil */
.mobile-menu {
  position: fixed; inset: 0;
  z-index: 1100;
  visibility: hidden;
  pointer-events: none;
}
.mobile-menu.is-open { visibility: visible; pointer-events: auto; }
.mobile-menu__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(15,122,102,.35), transparent 65%),
    radial-gradient(50% 40% at 10% 90%, rgba(201,169,106,.16), transparent 60%),
    var(--ink);
  clip-path: circle(0% at calc(100% - 46px) 46px);
  transition: clip-path .8s var(--ease-io);
}
.mobile-menu.is-open .mobile-menu__bg { clip-path: circle(150% at calc(100% - 46px) 46px); }

.mobile-menu__links {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .4rem;
  padding: 0 clamp(2rem, 10vw, 5rem);
}
.mobile-menu__links a {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 9vw, 3.6rem);
  font-weight: 400;
  color: var(--text-inv);
  padding: .45rem 0;
  border-bottom: 1px solid var(--line-inv);
  transform: translateY(34px);
  opacity: 0;
  transition: transform .7s var(--ease-out), opacity .7s, color .3s;
}
.mobile-menu__links a em {
  font-family: var(--font-body);
  font-style: normal;
  font-size: .8rem;
  letter-spacing: .2em;
  color: var(--gold);
}
.mobile-menu__links a:hover { color: var(--gold-2); }
.mobile-menu.is-open .mobile-menu__links a { transform: translateY(0); opacity: 1; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(1) { transition-delay: .18s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(2) { transition-delay: .24s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(3) { transition-delay: .30s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(4) { transition-delay: .36s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(5) { transition-delay: .42s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(6) { transition-delay: .48s; }

.mobile-menu__cta {
  position: absolute;
  left: 50%; bottom: 3rem;
  transform: translate(-50%, 20px);
  opacity: 0;
  transition: transform .7s var(--ease-out) .55s, opacity .7s .55s;
}
.mobile-menu.is-open .mobile-menu__cta { transform: translate(-50%, 0); opacity: 1; }

/* ─────────── Estructura común ─────────── */
.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}
.section { padding-block: var(--section-pad); position: relative; }
.section--alt { background: var(--paper); }
.section--dark { background: var(--ink); color: var(--text-inv); }

.section-head { margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 1.6rem;
}
.section-tag i {
  width: 42px; height: 1.5px;
  background: linear-gradient(90deg, var(--gold-ink), transparent);
}
.section-tag--dark { color: var(--gold-2); }
.section-tag--dark i { background: linear-gradient(90deg, var(--gold), transparent); }

.section-title {
  font-family: var(--font-display);
  font-size: var(--title);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 15ch;
}
.section-title em { color: var(--gold-ink); font-weight: 400; }
.section-title--dark { color: var(--cream); }
.section-title--dark em { color: var(--gold-2); }
.section-sub {
  margin-top: 1.4rem;
  max-width: 52ch;
  color: var(--muted-inv);
}

/* ─────────── HERO ─────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: clamp(7.5rem, 14vh, 10rem);
  overflow: clip;
}

.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__mesh {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}
.hero__mesh--1 {
  width: 56vw; height: 56vw;
  right: -14vw; top: -18vw;
  background: radial-gradient(circle at 35% 40%, rgba(15, 122, 102, .2), rgba(201, 169, 106, .12) 55%, transparent 72%);
  animation: drift 16s ease-in-out infinite alternate;
}
.hero__mesh--2 {
  width: 34vw; height: 34vw;
  left: -12vw; bottom: -8vw;
  background: radial-gradient(circle at 60% 45%, rgba(201, 169, 106, .18), transparent 68%);
  animation: drift 20s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-4vw, 5vw) scale(1.12); }
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: .24;
  -webkit-mask-image: radial-gradient(75% 70% at 55% 32%, #000 30%, transparent 78%);
  mask-image: radial-gradient(75% 70% at 55% 32%, #000 30%, transparent 78%);
}
.hero__watermark {
  position: absolute;
  right: -1.5vw; top: 8vh;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(11rem, 26vw, 24rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(8, 42, 36, .1);
  user-select: none;
}

.hero__inner {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5rem);
  padding-bottom: clamp(4rem, 8vh, 6.5rem);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  padding: .62rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(10px);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 2.2rem;
}
.hero__badge-stars { color: var(--gold-ink); letter-spacing: .14em; }

.hero__title {
  font-family: var(--font-display);
  font-size: var(--display);
  font-weight: 500;
  line-height: .99;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .line > span {
  display: inline-block;
  will-change: transform;
  transition: transform 1.25s var(--ease-out);
}
.hero__title.pre-intro .line > span { transform: translateY(115%); }
.hero__title em {
  font-weight: 400;
  background: linear-gradient(100deg, var(--gold-ink) 20%, var(--teal) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: .08em;
}

.hero__text {
  margin-top: 2rem;
  max-width: 46ch;
  font-size: 1.1rem;
  color: var(--muted);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.6rem; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-top: 2.6rem;
  font-size: .84rem;
  font-weight: 600;
  color: var(--muted);
}
.hero__meta li { display: flex; align-items: center; gap: .5rem; }
.hero__meta i { color: var(--gold-ink); font-style: normal; font-size: .7rem; }

.hero__visual { position: relative; justify-self: end; width: min(100%, 480px); }

.hero__frame {
  position: relative;
  border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 44px 90px -38px rgba(8, 42, 36, .55);
}
.hero__frame::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,.5);
  z-index: 2;
  pointer-events: none;
}
.hero__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transform: scale(1.06);
  transition: transform 1.4s var(--ease-out);
}
.hero__frame:hover img { transform: scale(1.11); }

.hero__card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .95rem;
  padding: 1rem 1.4rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, .66);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: 0 24px 54px -22px rgba(8, 42, 36, .4);
  animation: float 6.5s ease-in-out infinite;
}
.hero__card--rating { left: -14%; top: 20%; }
.hero__card--spec { right: -10%; bottom: 13%; animation-delay: -3.2s; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-13px) rotate(-.5deg); }
}
.hero__card-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}
.hero__card-stars { color: var(--gold-ink); letter-spacing: .16em; font-size: .82rem; }
.hero__card-info { display: flex; flex-direction: column; line-height: 1.35; }
.hero__card-info strong { font-size: .92rem; }
.hero__card-info small { font-size: .74rem; color: var(--muted); font-weight: 600; }
.hero__card--spec svg { width: 40px; height: 40px; color: var(--teal); flex: none; }

.hero__orbit {
  position: absolute;
  left: -44px; bottom: -34px;
  width: 128px; height: 128px;
  color: var(--ink);
  animation: none;
}
.hero__orbit svg {
  width: 100%; height: 100%;
  animation: spin 26s linear infinite;
  fill: currentColor;
  font-size: 8.6px;
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
  opacity: .85;
}
.hero__orbit i {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--gold-ink);
  font-style: normal;
  font-size: 1.15rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Marquee */
.marquee {
  position: relative;
  background: var(--ink);
  color: var(--cream);
  padding: 1.05rem 0;
  overflow: hidden;
  border-block: 1px solid rgba(201,169,106,.25);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 2.6rem; padding-right: 2.6rem; }
.marquee__group span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: .06em;
  white-space: nowrap;
}
.marquee__group i { color: var(--gold); font-style: normal; font-size: .72rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ─────────── Cifras ─────────── */
.stats { background: var(--cream); padding-block: clamp(3rem, 5vw, 4.5rem); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}
.stat {
  padding: 2.4rem 1.6rem;
  border-left: 1px solid var(--line);
  text-align: center;
}
.stat:first-child { border-left: 0; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.4vw, 4.6rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__num i {
  font-style: normal;
  color: var(--gold-ink);
  font-size: .62em;
  vertical-align: .34em;
  margin-left: .1em;
}
.stat__label {
  margin-top: .9rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}

/* ─────────── La Doctora ─────────── */
.about { background: var(--cream); overflow: clip; }

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.about__visual { position: relative; padding: 0 0 3.5rem 2.2rem; }
.about__frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 40px 80px -40px rgba(8, 42, 36, .5);
}
.about__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease-out); }
.about__frame:hover img { transform: scale(1.05); }

.about__frame-sm {
  position: absolute;
  right: -0.8rem; bottom: 0;
  width: 46%;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 7 / 5;
  border: 6px solid var(--cream);
  box-shadow: 0 30px 60px -26px rgba(8, 42, 36, .5);
}
.about__frame-sm img { width: 100%; height: 100%; object-fit: cover; }

.about__ring {
  position: absolute;
  left: -1.4rem; top: -1.4rem;
  width: 108px; height: 108px;
  border-radius: 50%;
  border: 1.5px dashed rgba(169, 132, 68, .55);
  animation: spin 40s linear infinite;
}
.about__ring::after {
  content: "";
  position: absolute;
  top: 7px; left: 50%;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateX(-50%);
}

.about__role {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding-left: 1.3rem;
  border-left: 2.5px solid var(--gold);
  margin-bottom: 1.9rem;
}
.about__role strong { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--ink); }
.about__role span { font-size: .84rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.about__copy p { color: var(--muted); margin-bottom: 1.2rem; max-width: 56ch; }
.about__copy .section-title { margin-bottom: 1.8rem; }

.about__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin: 1.8rem 0 2.4rem;
}
.about__chips li {
  padding: .55rem 1.15rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink-3);
  background: rgba(15, 122, 102, .09);
  border: 1px solid rgba(15, 122, 102, .18);
  transition: background-color .35s, color .35s, transform .35s var(--ease-out);
}
.about__chips li:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); }

.about__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.4rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}
.about__signature {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--ink-3);
  transform: rotate(-3deg);
  display: inline-block;
}

/* ─────────── Tratamientos (scroll horizontal, oscura) ─────────── */
.treatments { position: relative; overflow: clip; padding-bottom: clamp(4rem, 7vw, 6rem); }

.treatments__watermark {
  position: absolute;
  left: 50%; top: clamp(4rem, 10vw, 8rem);
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(14rem, 34vw, 30rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(242, 239, 230, .07);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

.treatments__viewport {
  margin-top: 1rem;
  padding-block: 1.6rem;
}
.treatments__track {
  display: flex;
  gap: clamp(1.4rem, 2.4vw, 2rem);
  padding-inline: max(1.5rem, calc((100vw - var(--container)) / 2 + 1.5rem));
  width: max-content;
}

.tcard {
  position: relative;
  width: clamp(300px, 25.5vw, 385px);
  flex: none;
  border-radius: var(--radius);
  background: linear-gradient(165deg, var(--ink-3), var(--ink-2) 70%);
  border: 1px solid rgba(242, 239, 230, .09);
  overflow: hidden;
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out), border-color .6s;
  display: flex;
  flex-direction: column;
}
.tcard:hover {
  transform: translateY(-12px);
  box-shadow: 0 40px 80px -32px rgba(0, 0, 0, .6);
  border-color: rgba(201, 169, 106, .45);
}
.tcard__img {
  position: relative;
  aspect-ratio: 3 / 3.4;
  overflow: hidden;
}
.tcard__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out), filter 1.2s;
  filter: saturate(.92);
}
.tcard:hover .tcard__img img { transform: scale(1.07); filter: saturate(1.05); }
.tcard__img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,42,36,0) 55%, rgba(8,42,36,.78) 100%);
}

.tcard__tag {
  position: absolute;
  top: 1.1rem; right: 1.1rem;
  z-index: 2;
  padding: .4rem 1rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #241A08;
  background: linear-gradient(120deg, var(--gold-2), var(--gold));
  box-shadow: 0 8px 22px -8px rgba(0,0,0,.5);
}

.tcard__body {
  padding: 1.7rem 1.7rem 1.9rem;
  margin-top: -3.4rem;
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.tcard__num {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 300;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(228, 205, 156, .85);
  margin-bottom: .8rem;
}
.tcard__body h3 {
  font-family: var(--font-display);
  font-size: 1.62rem;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: .7rem;
}
.tcard__body p {
  font-size: .93rem;
  color: var(--muted-inv);
  margin-bottom: 1.3rem;
}
.tcard__body ul { display: flex; flex-direction: column; gap: .5rem; margin-top: auto; }
.tcard__body ul li {
  position: relative;
  padding-left: 1.5rem;
  font-size: .84rem;
  font-weight: 600;
  color: rgba(242, 239, 230, .82);
}
.tcard__body ul li::before {
  content: "✦";
  position: absolute; left: 0; top: 0;
  color: var(--gold);
  font-size: .68rem;
}

.tcard--cta {
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(201, 169, 106, .16), transparent 60%),
    linear-gradient(165deg, var(--ink-3), var(--ink-2) 70%);
  justify-content: center;
  border: 1px dashed rgba(201, 169, 106, .4);
}
.tcard--cta .tcard__body { margin-top: 0; padding: 3rem 2.2rem; }
.tcard--cta .tcard__num { font-size: 2.6rem; -webkit-text-stroke: 0; color: var(--gold); }
.tcard--cta h3 { font-size: 2rem; line-height: 1.08; }
.tcard--cta .btn { margin-top: 1.8rem; align-self: flex-start; }

.treatments__foot {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-top: 2.6rem;
}
.treatments__progress {
  flex: 1;
  height: 2px;
  background: rgba(242, 239, 230, .14);
  border-radius: 99px;
  overflow: hidden;
}
.treatments__progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  transform: scaleX(0);
  transform-origin: left;
}
.treatments__hint {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-inv);
  white-space: nowrap;
}
.treatments__hint svg { width: 26px; height: 26px; color: var(--gold); animation: nudge 2.2s var(--ease-out) infinite; }
@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(7px); }
}

/* Scroll horizontal nativo en móvil */
@media (max-width: 1079px) {
  .treatments__viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .treatments__viewport::-webkit-scrollbar { display: none; }
  .tcard { scroll-snap-align: center; }
}

/* En escritorio (pin con GSAP): tarjetas contenidas en el viewport */
@media (min-width: 1080px) {
  .tcard { width: clamp(292px, 23vw, 356px); }
  .tcard__img { aspect-ratio: 3 / 2.55; }
  .tcard__body { padding: 1.35rem 1.5rem 1.55rem; margin-top: -3rem; }
  .tcard__num { font-size: 2.7rem; margin-bottom: .5rem; }
  .tcard__body h3 { font-size: 1.45rem; }
  .treatments__viewport { padding-block: 1.1rem; }
  .treatments .section-head { margin-bottom: clamp(1.8rem, 3.5vw, 3rem); }
  .treatments { display: flex; flex-direction: column; justify-content: center; min-height: 100vh; padding-bottom: clamp(2rem, 4vw, 3.5rem); }
}

/* ─────────── Antes / Después ─────────── */
.compare { background: var(--cream); }

.compare__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.compare__slider {
  --pos: 50%;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: 0 40px 90px -36px rgba(8, 42, 36, .5);
  touch-action: pan-y;
  user-select: none;
}
.compare__img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare__img--after { filter: saturate(1.06) brightness(1.05); }

.compare__before {
  position: absolute; inset: 0;
  overflow: hidden;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.compare__before .compare__img {
  filter: sepia(.52) saturate(.72) brightness(.85) contrast(.97) hue-rotate(-10deg);
}

.compare__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  transform: translateX(-50%);
  width: 0;
  z-index: 3;
}
.compare__handle-line {
  position: absolute;
  top: 0; bottom: 0; left: -1px;
  width: 2.5px;
  background: linear-gradient(180deg, transparent, var(--gold-2) 12%, var(--gold) 50%, var(--gold-2) 88%, transparent);
  box-shadow: 0 0 22px rgba(201, 169, 106, .5);
}
.compare__handle-knob {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 62px; height: 62px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #241A08;
  background: linear-gradient(120deg, var(--gold-2), var(--gold));
  border: 3px solid rgba(255, 255, 255, .85);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .55);
  transition: transform .35s var(--ease-out);
}
.compare__handle-knob svg { width: 26px; height: 26px; }
.compare__slider.dragging .compare__handle-knob { transform: translate(-50%, -50%) scale(.88); }

.compare__label {
  position: absolute;
  z-index: 2;
  top: 1.2rem;
  padding: .5rem 1.15rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}
.compare__label--before { left: 1.2rem; background: rgba(8, 42, 36, .6); color: var(--cream); }
.compare__label--after { right: 1.2rem; background: rgba(228, 205, 156, .92); color: #241A08; }

.compare__range {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
}

.compare__side h3 {
  font-family: var(--font-display);
  font-size: var(--title-sm);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 1.1rem;
}
.compare__side > p { color: var(--muted); margin-bottom: 1.8rem; max-width: 46ch; }

.compare__points { display: flex; flex-direction: column; gap: .9rem; margin-bottom: 2.2rem; }
.compare__points li {
  display: flex; align-items: center; gap: .9rem;
  font-weight: 600;
  color: var(--ink-3);
}
.compare__points i {
  font-style: normal;
  color: var(--gold-ink);
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(169, 132, 68, .4);
  background: rgba(201, 169, 106, .1);
  font-size: .62rem;
  flex: none;
}
.compare__note { display: block; margin-top: 1.2rem; font-size: .76rem; color: var(--muted); }

/* ─────────── Proceso ─────────── */
.process { background: var(--paper); }

.process__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.process__steps { position: relative; display: flex; flex-direction: column; }
.process__steps::before {
  content: "";
  position: absolute;
  left: 33px; top: 28px; bottom: 28px;
  width: 1.5px;
  background: linear-gradient(180deg, var(--gold), rgba(169, 132, 68, .15));
  transform-origin: top;
}
.pstep {
  position: relative;
  display: flex;
  gap: 1.7rem;
  padding: 1.9rem 0;
  border-bottom: 1px dashed var(--line);
}
.pstep:last-child { border-bottom: 0; }
.pstep__num {
  position: relative;
  z-index: 2;
  flex: none;
  width: 66px; height: 66px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid rgba(169, 132, 68, .5);
  transition: background-color .4s, color .4s, transform .4s var(--ease-out);
}
.pstep:hover .pstep__num {
  background: var(--ink);
  color: var(--gold-2);
  transform: scale(1.08);
}
.pstep h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: .45rem;
  padding-top: .35rem;
}
.pstep p { color: var(--muted); font-size: .96rem; max-width: 48ch; }

.process__visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 5 / 6;
  box-shadow: 0 40px 80px -40px rgba(8, 42, 36, .5);
}
.process__visual img { width: 100%; height: 100%; object-fit: cover; }
.process__badge {
  position: absolute;
  left: 1.4rem; bottom: 1.4rem;
  padding: 1rem 1.5rem;
  border-radius: 18px;
  background: rgba(8, 42, 36, .68);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(228, 205, 156, .3);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.process__badge strong { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; color: var(--gold-2); }
.process__badge span { font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-inv); }

/* ─────────── Testimonios ─────────── */
.testimonials { background: var(--cream); overflow: clip; }

.tst { position: relative; }

.tst__viewport { overflow: hidden; padding-block: .8rem; margin-inline: -0.8rem; padding-inline: .8rem; }
.tst__track {
  display: flex;
  gap: 1.6rem;
  transition: transform .85s var(--ease-io);
  will-change: transform;
}

.tst__card {
  flex: none;
  width: min(560px, 88vw);
  padding: clamp(2rem, 4vw, 3.2rem);
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  transition: transform .85s var(--ease-io), opacity .85s, box-shadow .6s;
  position: relative;
  overflow: hidden;
}
.tst__card::before {
  content: "”";
  position: absolute;
  top: -1.6rem; right: 1.4rem;
  font-family: var(--font-display);
  font-size: 11rem;
  line-height: 1;
  color: rgba(201, 169, 106, .16);
  pointer-events: none;
}
.tst__card.is-active {
  box-shadow: 0 34px 70px -34px rgba(8, 42, 36, .35);
  border-color: rgba(169, 132, 68, .4);
}
.tst__card:not(.is-active) { opacity: .45; transform: scale(.965); }

.tst__stars { color: var(--gold-ink); letter-spacing: .28em; font-size: .95rem; }
.tst__card blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
}
.tst__card figcaption {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}
.tst__avatar {
  width: 52px; height: 52px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: #fff;
  background: hsl(var(--h, 160) var(--s, 30%) 32%);
  box-shadow: inset 0 0 0 2.5px rgba(255, 255, 255, .35);
}
.tst__card figcaption strong { display: block; font-size: .98rem; color: var(--ink); }
.tst__card figcaption small { font-size: .78rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; }

.tst__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
  margin-top: 2.6rem;
}
.tst__btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.5);
  color: var(--ink);
  transition: background-color .35s, color .35s, transform .35s var(--ease-out);
}
.tst__btn:hover { background: var(--ink); color: var(--gold-2); transform: translateY(-2px); }
.tst__btn svg { width: 20px; height: 20px; }

.tst__dots { display: flex; gap: .65rem; }
.tst__dot {
  width: 9px; height: 9px;
  border-radius: 99px;
  background: rgba(8, 42, 36, .2);
  transition: width .45s var(--ease-out), background-color .45s;
}
.tst__dot.is-active { width: 30px; background: var(--gold-ink); }

.tst__verified {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  margin-top: 1.9rem;
  font-size: .85rem;
  font-weight: 700;
  color: var(--teal);
}
.tst__verified svg { width: 19px; height: 19px; }

/* ─────────── Clínica & Contacto ─────────── */
.clinic { overflow: clip; }

.clinic__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.clinic__gallery { display: grid; grid-template-columns: 1fr; gap: 1.6rem; }
.clinic__img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 36px 70px -34px rgba(0,0,0,.55); }
.clinic__img--wide { aspect-ratio: 16 / 10; }
.clinic__img--tall { aspect-ratio: 6 / 5.4; width: 82%; justify-self: end; }
.clinic__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.clinic__img:hover img { transform: scale(1.045); }

.clinic__info {
  position: sticky;
  top: 6.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: clamp(1.8rem, 3vw, 2.6rem);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(242, 239, 230, .12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.clinic__item { display: flex; gap: 1.15rem; align-items: flex-start; }
.clinic__ico {
  flex: none;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 15px;
  color: var(--gold-2);
  background: rgba(201, 169, 106, .12);
  border: 1px solid rgba(201, 169, 106, .28);
}
.clinic__ico svg { width: 23px; height: 23px; }
.clinic__item strong {
  display: block;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: .35rem;
}
.clinic__item p { color: var(--muted-inv); font-size: .95rem; line-height: 1.55; }

.clinic__map {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(242, 239, 230, .12);
  aspect-ratio: 16 / 9;
}
.clinic__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.02); }

.clinic__cta { justify-content: center; }
.clinic__note {
  text-align: center;
  font-size: .76rem;
  color: var(--muted-inv);
  letter-spacing: .05em;
}

/* ─────────── CTA final ─────────── */
.cta-final {
  position: relative;
  min-height: 88svh;
  display: grid;
  place-items: center;
  overflow: clip;
  text-align: center;
  padding-block: clamp(6rem, 12vw, 9rem);
}
.cta-final__bg, .cta-final__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta-final__bg img { object-fit: cover; object-position: center 30%; }
.cta-final__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 60% at 50% 40%, rgba(8, 42, 36, .5), rgba(8, 42, 36, .88) 100%),
    linear-gradient(180deg, rgba(8,42,36,.75), rgba(8,42,36,.55) 40%, var(--ink));
}
.cta-final__content { position: relative; z-index: 2; color: var(--cream); }
.cta-final__tag {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.cta-final__content h2 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  font-weight: 500;
  line-height: 1.02;
  margin: 1.6rem 0 1.4rem;
}
.cta-final__content h2 em { color: var(--gold-2); font-weight: 400; }
.cta-final__content p {
  color: var(--muted-inv);
  max-width: 44ch;
  margin: 0 auto 2.6rem;
}

/* ─────────── Footer ─────────── */
.footer { background: var(--ink); color: var(--text-inv); padding-top: clamp(4rem, 7vw, 6rem); }

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr .9fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  padding-bottom: 3.5rem;
}
.brand--footer .brand__text strong { color: var(--cream); }
.brand--footer .brand__text small { color: var(--muted-inv); }
.footer__brand p { margin-top: 1.5rem; color: var(--muted-inv); max-width: 40ch; font-size: .95rem; }

.footer__nav, .footer__meta { display: flex; flex-direction: column; gap: .8rem; }
.footer__nav strong, .footer__meta strong {
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: .5rem;
}
.footer__nav a, .footer__meta a {
  color: var(--muted-inv);
  font-size: .95rem;
  transition: color .3s, transform .3s var(--ease-out);
  width: fit-content;
}
.footer__nav a:hover, .footer__meta a:hover { color: var(--gold-2); transform: translateX(4px); }
.footer__meta span { color: var(--muted-inv); font-size: .95rem; line-height: 1.6; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .8rem;
  padding-block: 1.6rem;
  border-top: 1px solid var(--line-inv);
  font-size: .78rem;
  color: var(--muted-inv);
}

/* ═══════════════════════════════════════════
   ANIMACIONES DE ENTRADA (JS las dispara)
   ═══════════════════════════════════════════ */
.reveal, .reveal-scale {
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out),
              clip-path 1.2s var(--ease-out);
}
.reveal { opacity: 1; transform: none; }
.reveal.is-hidden { opacity: 0; transform: translateY(38px); }

.reveal-scale { clip-path: inset(0 0 0 0 round var(--radius-lg)); }
.reveal-scale.is-hidden { clip-path: inset(8% 10% 8% 10% round var(--radius-lg)); }
.reveal-scale.is-hidden img { transform: scale(1.14); }
.reveal-scale img { transition: transform 1.3s var(--ease-out); }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1180px) {
  .hero__card--rating { left: -6%; }
  .hero__card--spec { right: -4%; }
}

@media (max-width: 1079px) {
  .nav__links { display: none; }
  .nav__actions .btn { display: none; }
  .nav__burger { display: flex; }

  .hero { padding-top: 7rem; }
  .hero__inner { grid-template-columns: 1fr; text-align: left; }
  .hero__visual { justify-self: center; width: min(100%, 440px); margin-top: 1rem; }
  .hero__watermark { top: auto; bottom: 24vh; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: 0; }

  .about__grid { grid-template-columns: 1fr; }
  .about__visual { max-width: 520px; padding: 0 0 3rem 1rem; }

  .compare__grid { grid-template-columns: 1fr; }
  .process__grid { grid-template-columns: 1fr; }
  .process__visual { max-width: 560px; aspect-ratio: 5/4; }
  .clinic__grid { grid-template-columns: 1fr; }
  .clinic__info { position: static; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .brand__text small { display: none; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .hero__meta { gap: .9rem 1.3rem; }
  .hero__card { padding: .8rem 1.05rem; gap: .7rem; }
  .hero__card-num { font-size: 1.9rem; }
  .hero__card--rating { left: -2%; top: 12%; }
  .hero__card--spec { right: -2%; bottom: 8%; }
  .hero__orbit { width: 100px; height: 100px; left: -18px; bottom: -24px; }
  .treatments__hint span { display: none; }
  .compare__slider { border-radius: var(--radius); }
  .tst__controls { gap: 1.1rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .footer__bottom { justify-content: center; text-align: center; }
  .stats__grid { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}

/* ═══════════════════════════════════════════
   ACCESIBILIDAD · MOVIMIENTO REDUCIDO
   ═══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .marquee__track { animation: none; }
  .reveal.is-hidden, .reveal-scale.is-hidden { opacity: 1; transform: none; clip-path: none; }
}
/* ═══════════════════════════════════════════════════════════════
   v2 · AJUSTES DE CALIDAD MÁXIMA (29/09/2026)
   1 Fuentes self-hosted   2 Fondo de partículas   3 Fixes hero
   4 Anti-overflow         5 Formulario de citas   6 Accesibilidad
   7 Micro-interacciones   8 404 de marca
   ═══════════════════════════════════════════════════════════════ */

/* ─────────── 1 · FUENTES SELF-HOSTED (subset latin, variables) ─────────── */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-var.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-var-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-var.woff2") format("woff2");
}

/* ─────────── 2 · FONDO DE DESTELLOS (canvas interactivo + fallback CSS) ─────────── */
:root {
  --fondo-tile: 48px;
  --fondo-salto: -384px;                  /* 8 teselas exactas: bucle sin costura */
  --fondo-op: .5;
  --fondo-dur: 52s;
  --punto-claro: rgba(15, 122, 102, .8);  /* teal velado */
}
body::before {
  content: "";
  position: fixed;
  z-index: 60;
  pointer-events: none;
  inset: -60%;
  background-image:
    radial-gradient(circle at center, #C9A96A 0 1.35px, transparent 1.9px),
    radial-gradient(circle at center, var(--punto-claro) 0 1.05px, transparent 1.6px);
  background-size: var(--fondo-tile) var(--fondo-tile), var(--fondo-tile) var(--fondo-tile);
  background-position: 0 0, calc(var(--fondo-tile) / 2) calc(var(--fondo-tile) / 2);
  opacity: var(--fondo-op);
  animation: deriva-diagonal var(--fondo-dur) linear infinite;
  will-change: transform;
}
@keyframes deriva-diagonal {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(var(--fondo-salto), var(--fondo-salto), 0); }
}
html.fondo-canvas body::before { display: none; }
html.fondo-estatico body::before { animation: none !important; }
#fondo-dc {
  position: fixed; inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: var(--fondo-op);
}
.fondo-toggle {
  position: fixed; right: 14px; bottom: 14px; z-index: 90;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 999px;
  border: 1.5px solid rgba(138, 106, 51, .4);
  background: rgba(251, 249, 243, .82);
  color: var(--ink);
  font: 700 12.5px/1 var(--font-body);
  letter-spacing: .4px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color .24s, transform .24s var(--ease-out), opacity .24s;
}
.fondo-toggle:hover { background: #fff; transform: translateY(-1px); }
.fondo-toggle:focus-visible { outline: 3px solid var(--gold-ink); outline-offset: 2px; }
.fondo-toggle.apagado { opacity: .55; }
.fondo-toggle span { color: var(--gold-ink); }
@media print { .fondo-toggle { display: none; } }

/* ─────────── 3 · CONTRASTE AA (oro legible sobre crema) ─────────── */
:root { --gold-ink: #8A6A33; }            /* 4.53:1 sobre #F7F3EA (AA texto normal) */
.section-tag { color: var(--gold-ink); }

/* ─────────── 4 · HERO v2 · compuesto en la primera pantalla ─────────── */
html, body { overflow-x: clip; }

.hero {
  min-height: 100svh;
  padding-top: clamp(6.2rem, 10.5vh, 8rem);
}
.hero__inner {
  align-items: center;
  padding-bottom: clamp(1.2rem, 3.2vh, 2.6rem);
  gap: clamp(2rem, 4vw, 3.6rem);
}
.hero__badge { margin-bottom: 1.5rem; flex-wrap: wrap; row-gap: .35rem; max-width: 100%; }
.hero__title { font-size: clamp(2.45rem, 5.05vw, 4.65rem); line-height: 1.02; }
.hero__text { margin-top: 1.5rem; font-size: 1.05rem; }
.hero__cta { margin-top: 2rem; }
.hero__meta { margin-top: 1.9rem; gap: 1.1rem 1.6rem; }

.hero__watermark {
  right: -3vw;
  top: auto;
  bottom: 4vh;
  font-size: clamp(8rem, 19vw, 17rem);
  -webkit-text-stroke: 1.5px rgba(8, 42, 36, .085);
}

.hero__visual {
  position: relative;
  justify-self: end;
  width: fit-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__frame {
  height: min(58svh, 640px);
  aspect-ratio: 4 / 5;
  width: auto;
  max-width: min(100%, 480px);
}
.hero__frame img { object-position: center 20%; }

/* Tarjetas flotantes: SIEMPRE fuera del rostro (tercio inferior del retrato) */
.hero__card--rating { left: -7%; top: auto; bottom: 22%; }
.hero__card--spec   { right: -6%; bottom: 4%; animation-delay: -3.2s; }
.hero__orbit { left: -34px; bottom: -30px; }

/* ─────────── 5 · FORMULARIO DE CITAS ─────────── */
.cita {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(242, 239, 230, .13);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 2.6vw, 2.4rem);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.cita__head { margin-bottom: 1.6rem; }
.cita__head h3 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: .7rem;
}
.cita__head h3 em { color: var(--gold-2); font-weight: 400; }
.cita__head p { color: var(--muted-inv); font-size: .95rem; max-width: 44ch; }

.cita__form { display: flex; flex-direction: column; gap: 1.05rem; }
.cita__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem; }
.field { display: flex; flex-direction: column; gap: .45rem; min-width: 0; }
.field label {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .88rem 1.05rem;
  border-radius: 14px;
  background: rgba(8, 42, 36, .38);
  border: 1px solid rgba(242, 239, 230, .18);
  color: var(--cream);
  font: inherit;
  font-size: .95rem;
  color-scheme: dark;
  transition: border-color .22s, box-shadow .22s, background-color .22s;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(242, 239, 230, .38); }
.field :is(input, select, textarea):focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 169, 106, .18);
  background: rgba(8, 42, 36, .55);
}
.field.is-error :is(input, select, textarea) { border-color: #E0574A; }
.field__err { color: #F2B0A6; font-size: .78rem; font-weight: 600; line-height: 1.35; }
.cita__hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}
.cita__submit { width: 100%; justify-content: center; margin-top: .3rem; }
.cita__submit[disabled] { opacity: .65; cursor: progress; }
.cita__submit .cita__btn-label { display: inline-flex; align-items: center; gap: .5rem; }
.cita__legal { font-size: .74rem; color: var(--muted-inv); line-height: 1.5; }
.cita__directo { margin-top: .6rem; }
.cita__directo a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; transition: color .3s; }
.cita__directo a:hover { color: var(--gold); }
.footer__meta a[href^="mailto"] { word-break: break-word; }
.cita__status { min-height: 1.3em; font-size: .86rem; font-weight: 700; }
.cita__status.is-ok { color: #8FE0B4; }
.cita__status.is-err { color: #F2B0A6; }

.cita__ok {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .85rem;
  padding: .6rem 0;
}
/* [hidden] debe mandar sobre display:flex (bug clásico de la hoja de estilos) */
.cita__ok[hidden], .cita__form[hidden], .field__err[hidden] { display: none !important; }
.cita__ok-ico {
  width: 62px; height: 62px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #241A08;
  background: linear-gradient(120deg, var(--gold-2), var(--gold));
  box-shadow: 0 14px 34px -12px rgba(201, 169, 106, .6);
}
.cita__ok-ico svg { width: 30px; height: 30px; }
.cita__ok h4 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 500;
  color: var(--cream);
}
.cita__ok p { color: var(--muted-inv); font-size: .95rem; max-width: 42ch; }
.cita__ok .btn { margin-top: .4rem; }

/* ─────────── 6 · CLÍNICA/CONTACTO v2 (galería + formulario + mapa) ─────────── */
.clinic__col { display: flex; flex-direction: column; gap: 1.6rem; min-width: 0; }
.clinic__info--row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
  padding: 1.5rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(242, 239, 230, .1);
}
.clinic__info--row .clinic__item { flex-direction: column; gap: .8rem; }
.clinic__foot { margin-top: clamp(2.2rem, 4vw, 3.4rem); }
.clinic__map { position: relative; aspect-ratio: 21 / 8; background: var(--ink-2); }
.clinic__map-ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .45rem; text-align: center; padding: 1rem;
  color: var(--muted-inv); font-size: .9rem;
}
.clinic__map-ph strong { color: var(--gold-2); font-size: .74rem; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; }
.clinic__map iframe { position: relative; z-index: 1; width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.02); }
.clinic__foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1.6rem;
}
.clinic__foot-row .clinic__note { text-align: left; }

/* ─────────── 7 · ACCESIBILIDAD ─────────── */
.skip-link {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 5000;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 700;
  font-size: .9rem;
  transform: translateY(-220%);
  transition: transform .24s var(--ease-out);
}
.skip-link:focus-visible { transform: translateY(0); }
:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 4px; border-radius: 6px; }
:focus:not(:focus-visible) { outline: none; }
.section--dark :focus-visible,
.footer :focus-visible,
.mobile-menu :focus-visible,
.cita :focus-visible { outline-color: var(--gold-2); }
section[id] { scroll-margin-top: 96px; }

/* ─────────── 8 · MICRO-INTERACCIONES (180–400 ms) ─────────── */
.btn { transition: transform .32s var(--ease-out), box-shadow .32s var(--ease-out), background-color .24s, color .24s, border-color .24s; }
.btn svg { transition: transform .32s var(--ease-out); }
.link-arrow::after { transition: transform .32s var(--ease-out); }
.nav__links a::after { transition: transform .32s var(--ease-out); }
.tcard { transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .32s; }
.tst__btn { transition: background-color .24s, color .24s, transform .24s var(--ease-out); }
.about__chips li { transition: background-color .24s, color .24s, transform .24s var(--ease-out); }
.pstep__num { transition: background-color .3s, color .3s, transform .3s var(--ease-out); }
.tcard__img img { transition: transform .8s var(--ease-out), filter .8s; }
.clinic__img img { transition: transform .8s var(--ease-out); }
.tst__dot, .arrows { transition: width .32s var(--ease-out), background-color .32s; }

/* ─────────── 11 · PICTURE (WebP con fallback JPG) ─────────── */
picture { display: block; }
.hero__frame picture,
.about__frame picture,
.about__frame-sm picture,
.tcard__img picture,
.process__visual picture,
.clinic__img picture,
.cta-final__bg picture,
.compare__slider picture,
.compare__before picture { width: 100%; height: 100%; }
.compare__slider picture img,
.compare__before picture img { position: absolute; inset: 0; }

/* ─────────── 12 · PÁGINA 404 ─────────── */

.p404 {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 6rem 1.5rem;
}
.p404__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 11rem);
  font-weight: 300;
  line-height: 1;
  color: var(--ink);
}
.p404__code em {
  font-weight: 400;
  background: linear-gradient(100deg, var(--gold-ink) 20%, var(--teal) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.p404 h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 500;
  color: var(--ink);
  margin: 1.2rem 0 .9rem;
}
.p404 p { color: var(--muted); max-width: 46ch; margin: 0 auto 2.2rem; }
.p404__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.p404__ring {
  width: 84px; height: 84px;
  margin: 0 auto 1.6rem;
  border-radius: 50%;
  border: 1.5px dashed rgba(138, 106, 51, .55);
  display: grid; place-items: center;
  color: var(--gold-ink);
  font-style: normal;
  font-size: 1.6rem;
  animation: spin 32s linear infinite;
}

/* ─────────── 10 · RESPONSIVE v2 ─────────── */
@media (min-width: 1080px) {
  /* el nav respira más ancho que el contenido: evita el salto de línea en los enlaces */
  .nav__inner { max-width: 1340px; }
  .nav__links { gap: 1.8rem; }
  .nav__links a { white-space: nowrap; }
}
@media (max-width: 1180px) {
  .hero__card--rating { left: -5%; }
  .hero__card--spec { right: -4%; }
}
@media (max-width: 1079px) {
  .hero { padding-top: 6.4rem; padding-bottom: 0; }
  .hero__inner { padding-bottom: 2.4rem; }
  .hero__title { font-size: clamp(2.45rem, 9.6vw, 4.2rem); }
  .hero__visual { justify-self: center; width: min(100%, 430px); margin-top: .4rem; }
  .hero__frame { height: auto; width: 100%; max-width: none; }
  .hero__watermark { top: 3.4rem; bottom: auto; right: -5vw; font-size: clamp(5.6rem, 34vw, 11rem); }
  .hero__card--rating { left: -2.5%; bottom: 17%; }
  .hero__card--spec { right: -2.5%; bottom: 4%; }
  .hero__orbit { width: 108px; height: 108px; left: -22px; bottom: -26px; }
  .clinic__grid { grid-template-columns: 1fr; }
  .clinic__info--row { grid-template-columns: 1fr; }
  .clinic__info--row .clinic__item { flex-direction: row; gap: 1.15rem; }
}
@media (max-width: 640px) {
  .hero__badge { font-size: .74rem; padding: .55rem 1rem; gap: .6rem; }
  .hero__badge-stars { letter-spacing: .08em; }
  .hero__meta { font-size: .8rem; }
  .hero__card { padding: .72rem 1rem; gap: .65rem; border-radius: 16px; max-width: 74vw; }
  .hero__card-num { font-size: 1.75rem; }
  .hero__card-info strong { font-size: .85rem; }
  .hero__card-info small { font-size: .68rem; }
  .hero__card--spec svg { width: 30px; height: 30px; }
  .cita__row { grid-template-columns: 1fr; }
  .clinic__map { aspect-ratio: 4 / 3; }
  .field input, .field select, .field textarea { font-size: 1rem; } /* anti-zoom iOS */
}
@media (max-width: 400px) {
  .hero__card { max-width: 80vw; }
  .hero__card--rating { left: -1.5%; }
  .hero__card--spec { right: -1.5%; }
}
@media (min-width: 1700px) {
  .hero__inner { grid-template-columns: 1fr 1fr; }
}

/* ─────────────────────────────────────────────
   Móvil / tablet: sin desenfoques costosos.
   El blur por píxel sobre varios paneles es lo
   que hace que la interfaz se sienta pesada en
   gama media; el color de fondo ya da el efecto.
   ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav.is-scrolled,
  .hero__badge,
  .hero__card,
  .process__badge,
  .compare__label,
  .clinic__info,
  .cita,
  .fondo-toggle,
  .btn--ghost {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
