/* =======================================================================
   Dra. Lizeth De La Hoz · Odontología Estética
   Sistema de diseño — lujo editorial (marfil + oro + carbón)
   ======================================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Paleta */
  --bg:        #FBF8F2;   /* marfil cálido */
  --bg-2:      #F3EBDD;   /* arena / nude */
  --bg-3:      #EFE6D6;
  --paper:     #FFFFFF;
  --ink:       #211E19;   /* casi negro cálido */
  --ink-soft:  #3D382F;
  --ink-mute:  #8B8172;   /* metadatos */
  --gold:      #B8924A;   /* oro principal (logo) */
  --gold-deep: #96742F;
  --gold-light:#D8BE86;
  --gold-soft: #EAD9B6;
  --nude:      #E7D6C4;   /* nude mármol (pared consultorio) */
  --rose:      #C9A995;
  --line:      rgba(33,30,25,0.10);
  --line-2:    rgba(33,30,25,0.16);
  --shadow-s:  0 2px 12px rgba(33,30,25,.06);
  --shadow-m:  0 18px 40px -18px rgba(33,30,25,.28);
  --shadow-l:  0 40px 90px -30px rgba(33,30,25,.40);
  --gold-grad: linear-gradient(135deg, #C6A05A 0%, #E4CE97 45%, #A67E38 100%);

  /* Tipografía */
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans:  "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Medidas */
  --container: 1240px;
  --gutter: clamp(1.15rem, 4vw, 3rem);
  --radius: 18px;
  --radius-s: 10px;
  --radius-l: 28px;

  /* Easings */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce:cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 92px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--ink);
}
::selection { background: var(--gold); color: #fff; }

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

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { max-width: 1440px; }
.container-narrow { max-width: 900px; }
.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; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--ink); color: var(--bg);
  border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: .74rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); display: inline-block; }
.eyebrow.center::after { content: ""; width: 26px; height: 1px; background: var(--gold); display: inline-block; }

.section { padding-block: clamp(4rem, 9vw, 8rem); position: relative; }
.section-tint { background: var(--bg-2); }
.section-ink { background: var(--ink); color: var(--bg); }
.section-ink h1,.section-ink h2,.section-ink h3 { color: var(--bg); }

.section-head { max-width: 720px; margin-bottom: clamp(2.2rem, 5vw, 3.6rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2.1rem, 5vw, 3.7rem); margin: .7rem 0 .5rem; }
.section-head p { color: var(--ink-mute); font-size: 1.06rem; max-width: 60ch; }
.section-head.center p { margin-inline: auto; }

.text-gold { color: var(--gold-deep); }
.italic { font-style: italic; }
em, .em { font-style: italic; color: var(--gold-deep); }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.7rem; border-radius: 999px;
  font-family: var(--sans); font-weight: 600; font-size: .96rem;
  letter-spacing: .01em; cursor: pointer;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), background .4s var(--ease-out), color .4s var(--ease-out);
  will-change: transform;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn-primary { background: var(--ink); color: var(--bg); box-shadow: var(--shadow-m); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-l); }
.btn-gold { background: var(--gold-grad); color: #fff; box-shadow: 0 14px 30px -12px rgba(150,116,47,.6); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -14px rgba(150,116,47,.7); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-deep); transform: translateY(-2px); }
.btn-light { background: var(--bg); color: var(--ink); }
.btn-light:hover { transform: translateY(-3px); box-shadow: var(--shadow-l); }
.btn-lg { padding: 1.1rem 2.1rem; font-size: 1.02rem; }

/* =============================================================
   5. Header / Nav
   ============================================================= */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 200; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease-out), box-shadow .4s var(--ease-out), backdrop-filter .4s;
}
.header.scrolled {
  background: rgba(251,248,242,.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { height: 40px; width: auto; }
.brand-logo { height: 56px; width: auto; max-width: 62vw; object-fit: contain; }
@media (max-width: 600px) { .brand-logo { height: 50px; } }
.brand-txt { display: flex; flex-direction: column; line-height: 1; }
.brand-txt b { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; letter-spacing: .01em; }
.brand-txt span { font-size: .58rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-deep); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); }
.nav-links a { font-size: .92rem; font-weight: 500; color: var(--ink-soft); position: relative; padding: .3rem 0; text-align: center; line-height: 1.2; }
.header .nav-cta { white-space: nowrap; padding-block: .6rem; text-align: center; line-height: 1.1; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: var(--gold); transition: width .4s var(--ease-out);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--ink); }

.lang {
  display: inline-flex; align-items: center; border: 1px solid var(--line-2);
  border-radius: 999px; overflow: hidden; font-size: .78rem; font-weight: 700;
}
.lang button { padding: .34rem .62rem; color: var(--ink-mute); letter-spacing: .04em; transition: all .3s; }
.lang button.on { background: var(--ink); color: var(--bg); }

.nav-cta { display: inline-flex; }
.burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { width: 19px; height: 1.6px; background: var(--ink); transition: transform .4s var(--ease-out), opacity .3s; }
.burger.open span:nth-child(1){ transform: translateY(6.6px) rotate(45deg); }
.burger.open span:nth-child(2){ opacity: 0; }
.burger.open span:nth-child(3){ transform: translateY(-6.6px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 199; background: var(--bg);
  transform: translateX(100%); transition: transform .5s var(--ease-out);
  display: flex; flex-direction: column; padding: calc(var(--nav-h) + 2rem) var(--gutter) 2rem;
  gap: .4rem;
}
.drawer.open { transform: translateX(0); }
.drawer a { font-family: var(--serif); font-size: 1.9rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.drawer .drawer-foot { margin-top: auto; display: flex; flex-direction: column; gap: 1rem; }

@media (max-width: 960px) {
  .nav-links, .nav-cta.desktop-only { display: none; }
  .burger { display: flex; }
}

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding-top: calc(var(--nav-h) + clamp(1.5rem, 5vh, 3rem)); padding-bottom: clamp(2rem, 6vh, 4rem);
  overflow: clip;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; width: 100%; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(2.7rem, 6.4vw, 5.4rem); line-height: .98; margin: 1.1rem 0 1.3rem;
  letter-spacing: -0.02em;
}
.hero h1 em { display: inline; }
.hero-sub { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: var(--ink-soft); max-width: 46ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.2rem; }
.hero-trust { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; color: var(--ink-mute); font-size: .86rem; }
.hero-trust .stars { color: var(--gold); letter-spacing: 2px; }
.hero-trust b { color: var(--ink); }

.hero-visual { position: relative; }
.hero-photo {
  position: relative; border-radius: var(--radius-l); overflow: hidden;
  aspect-ratio: 4/5; box-shadow: var(--shadow-l);
  border: 1px solid rgba(255,255,255,.5);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: -18px; bottom: 28px; z-index: 3;
  background: var(--paper); border-radius: 18px; padding: 1rem 1.25rem;
  box-shadow: var(--shadow-m); display: flex; align-items: center; gap: .85rem;
  border: 1px solid var(--line);
}
.hero-badge .num { font-family: var(--serif); font-size: 2.1rem; line-height: 1; color: var(--gold-deep); font-weight: 600; }
.hero-badge .lbl { font-size: .74rem; color: var(--ink-mute); max-width: 12ch; line-height: 1.25; }
.hero-halo {
  position: absolute; z-index: 0; inset: -20% -10% auto auto; width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(216,190,134,.5), transparent 70%);
  filter: blur(70px); pointer-events: none;
}
.hero-orn { position: absolute; top: 12%; right: -6%; width: 120px; opacity: .5; z-index: 0; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { order: -1; max-width: 420px; margin-inline: auto; width: 100%; }
  .hero-photo { aspect-ratio: 4/4.4; }
  .hero-copy { text-align: center; }
  .hero-copy .eyebrow { justify-content: center; }
  .hero-sub { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-trust { justify-content: center; }
}

/* =============================================================
   7. Marquee / trust strip
   ============================================================= */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); padding-block: 1.1rem; }
.marquee-track { display: flex; gap: 3.5rem; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 3.5rem; white-space: nowrap; }
.marquee-track span::after { content: "✦"; color: var(--gold); font-size: .8rem; font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =============================================================
   8. Stats
   ============================================================= */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.stat { background: var(--bg); padding: clamp(1.6rem, 3vw, 2.6rem) clamp(1rem,2vw,1.6rem); text-align: center; }
.stat .n { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 600; color: var(--ink); line-height: 1; }
.stat .n .s { color: var(--gold-deep); }
.stat .l { margin-top: .6rem; font-size: .82rem; color: var(--ink-mute); letter-spacing: .02em; }
@media (max-width: 620px) { .stats { grid-template-columns: repeat(2,1fr); } }

/* =============================================================
   9. Ventajas (feature cards)
   ============================================================= */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
.feature {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.6rem, 2.5vw, 2.4rem); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .4s;
  text-align: center;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); border-color: var(--gold-soft); }
.feature .ic { width: 56px; height: 56px; border-radius: 16px; background: var(--bg-2); color: var(--gold-deep); display: grid; place-items: center; margin: 0 auto 1.2rem; }
.feature p { margin-inline: auto; max-width: 34ch; }
.feature .ic svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.feature p { color: var(--ink-mute); font-size: .96rem; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }
.features.steps-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .features.steps-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .features.steps-4 { grid-template-columns: 1fr; } }

/* =============================================================
   10. Servicios grid
   ============================================================= */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.8rem,1.5vw,1.2rem); }
.service {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem 1.4rem; overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.service::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--gold-grad); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
.service:hover { transform: translateY(-5px); box-shadow: var(--shadow-m); }
.service:hover::before { transform: scaleX(1); }
.service .idx { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1rem; }
.service h3 { font-size: 1.28rem; margin: .6rem 0 .5rem; }
.service p { font-size: .9rem; color: var(--ink-mute); }
@media (max-width: 1080px) { .services-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) { .services-grid { grid-template-columns: 1fr; } }

/* =============================================================
   11. Galería deslizable
   ============================================================= */
.gallery-sec { position: relative; overflow: clip; }
.gallery-logo-bg {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 0; pointer-events: none;
  opacity: .05;
}
.gallery-logo-bg img { width: min(52vw, 620px); }
.gallery-track {
  position: relative; z-index: 1;
  display: flex; gap: 1.1rem; overflow-x: auto; overflow-y: visible;
  scroll-snap-type: x mandatory; padding: 1rem .2rem 2rem;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-item {
  flex: 0 0 auto; width: clamp(230px, 30vw, 340px); aspect-ratio: 3/4;
  border-radius: var(--radius); overflow: hidden; scroll-snap-align: center;
  box-shadow: var(--shadow-s); border: 1px solid var(--line); background: var(--bg-2);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.gallery-item:hover { box-shadow: var(--shadow-m); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-controls { display: flex; gap: .6rem; justify-content: center; margin-top: .5rem; }
.gallery-controls button { width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--line-2); display: grid; place-items: center; transition: all .3s; background: var(--paper); }
.gallery-controls button:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* =============================================================
   12. Comparador antes/después
   ============================================================= */
.compare-wrap { max-width: 760px; margin-inline: auto; }
.compare {
  position: relative; width: 100%; aspect-ratio: 4/3; border-radius: var(--radius-l);
  overflow: hidden; box-shadow: var(--shadow-l); user-select: none; touch-action: pan-y;
  cursor: ew-resize; border: 1px solid rgba(255,255,255,.5);
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare-after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare-label {
  position: absolute; top: 14px; z-index: 4; font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; padding: .32rem .7rem; border-radius: 999px;
  background: rgba(33,30,25,.66); color: #fff; backdrop-filter: blur(4px);
}
.compare-label.a { left: 14px; }
.compare-label.b { right: 14px; background: rgba(184,146,74,.9); }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; z-index: 5;
  background: #fff; transform: translateX(-1px); box-shadow: 0 0 0 1px rgba(0,0,0,.12);
}
.compare-knob {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 46px; height: 46px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-m);
  display: grid; place-items: center; color: var(--gold-deep);
}
.compare-knob svg { width: 22px; height: 22px; }
.compare-hint { text-align: center; margin-top: 1rem; color: var(--ink-mute); font-size: .86rem; }

/* =============================================================
   13. Sobre nosotros
   ============================================================= */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.8rem, 4vw, 4rem); align-items: center; }
.about-photo { position: relative; border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow-l); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo .sig {
  position: absolute; left: 20px; bottom: 18px; color: #fff; z-index: 2;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
}
.about-photo .sig b { font-family: var(--serif); font-size: 1.5rem; display: block; }
.about-photo .sig span { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; opacity: .9; }
.about-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(33,30,25,.5)); }
.about-copy h2 { font-size: clamp(2rem, 4.5vw, 3.3rem); margin: .7rem 0 1.2rem; }
.about-copy p { color: var(--ink-soft); margin-bottom: 1rem; }
.about-creds { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.about-creds li { font-size: .82rem; padding: .5rem .9rem; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-soft); }
.about-creds li b { color: var(--gold-deep); }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 440px; margin-inline: auto; }
  .about-copy { text-align: center; }
  .about-copy .eyebrow, .about-copy .about-creds { justify-content: center; }
  .about-copy .about-creds { margin-inline: auto; }
}

/* =============================================================
   14. Testimonios
   ============================================================= */
.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(1rem,2vw,1.5rem); }
/* Reseñas deslizables (home) */
.testi-scroll { display: flex; gap: 1.1rem; overflow-x: auto; overflow-y: visible; scroll-snap-type: x mandatory; padding: .6rem .2rem 1.6rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.testi-scroll::-webkit-scrollbar { display: none; }
.testi-scroll .testi { flex: 0 0 auto; width: min(360px, 82vw); scroll-snap-align: center; }
.testi-controls { display: flex; gap: .6rem; justify-content: center; }
.testi-controls button { width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--line-2); display: grid; place-items: center; transition: all .3s; background: var(--paper); }
.testi-controls button:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
/* Selector de casos del comparador */
.compare-cases { display: flex; gap: .5rem; justify-content: center; margin-top: 1.3rem; flex-wrap: wrap; }
.compare-cases button { padding: .5rem 1.1rem; border-radius: 999px; border: 1px solid var(--line-2); font-size: .85rem; font-weight: 600; color: var(--ink-soft); background: var(--paper); transition: all .3s var(--ease-out); }
.compare-cases button.on { background: var(--gold-grad); color: #fff; border-color: transparent; }
.testi {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.6rem; display: flex; flex-direction: column; gap: 1rem;
}
.testi .stars { color: var(--gold); letter-spacing: 2px; font-size: .95rem; }
.testi p { font-family: var(--serif); font-size: 1.28rem; line-height: 1.4; color: var(--ink-soft); font-style: italic; }
.testi .who { display: flex; align-items: center; gap: .7rem; margin-top: auto; }
.testi .av { width: 40px; height: 40px; border-radius: 999px; background: var(--gold-grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--sans); }
.testi .who b { font-size: .92rem; display: block; }
.testi .who span { font-size: .78rem; color: var(--ink-mute); }
@media (max-width: 860px) { .testi-grid { grid-template-columns: 1fr; } }

/* =============================================================
   15. FAQ
   ============================================================= */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.35rem 0; text-align: left; font-family: var(--serif); font-size: clamp(1.15rem,2vw,1.4rem); color: var(--ink); }
.faq-q .pm { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 999px; border: 1px solid var(--line-2); display: grid; place-items: center; position: relative; transition: all .4s var(--ease-out); }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; background: var(--ink); transition: transform .4s var(--ease-out), background .3s; }
.faq-q .pm::before { width: 12px; height: 1.6px; }
.faq-q .pm::after { width: 1.6px; height: 12px; }
.faq-item.open .pm { background: var(--gold); border-color: var(--gold); }
.faq-item.open .pm::before, .faq-item.open .pm::after { background: #fff; }
.faq-item.open .pm::after { transform: scaleY(0); }
.faq-a { overflow: hidden; height: 0; transition: height .45s var(--ease-out); }
.faq-a-inner { padding: 0 0 1.4rem; color: var(--ink-mute); max-width: 68ch; margin-inline: auto; text-align: center; }

/* =============================================================
   16. Ubicación / contacto
   ============================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem,3vw,3rem); align-items: stretch; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.info-row { display: flex; gap: 1rem; align-items: flex-start; }
.info-row .ic { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; background: var(--bg-2); color: var(--gold-deep); display: grid; place-items: center; }
.info-row .ic svg { width: 22px; height: 22px; }
.info-row h4 { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-mute); margin-bottom: .25rem; }
.info-row p, .info-row a { font-size: 1.02rem; color: var(--ink); }
.info-row a:hover { color: var(--gold-deep); }
.map-embed { border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-m); min-height: 340px; border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { background: var(--ink); color: var(--bg); border-radius: var(--radius-l); padding: clamp(2.4rem,5vw,4rem); text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: var(--bg); font-size: clamp(2rem,4.5vw,3.4rem); margin-bottom: 1rem; }
.cta-band p { color: rgba(251,248,242,.7); max-width: 52ch; margin: 0 auto 2rem; }
.cta-band .hero-actions { justify-content: center; }
.cta-band::before { content: ""; position: absolute; inset: auto -10% -60% -10%; height: 80%; background: radial-gradient(circle, rgba(184,146,74,.4), transparent 70%); filter: blur(60px); }
.cta-band > * { position: relative; z-index: 1; }

/* =============================================================
   17. Footer
   ============================================================= */
.footer { background: var(--bg-3); border-top: 1px solid var(--line); padding-block: clamp(3rem,6vw,4.5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.footer .brand img { height: 44px; }
.footer-col h5 { font-family: var(--sans); font-size: .76rem; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-mute); margin-bottom: 1rem; }
.footer-col a, .footer-col p { display: block; color: var(--ink-soft); font-size: .92rem; margin-bottom: .55rem; }
.footer-col a:hover { color: var(--gold-deep); }
.footer-about { color: var(--ink-mute); font-size: .92rem; max-width: 34ch; margin: 1rem 0 1.2rem; }
.footer-social { display: flex; gap: .6rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line-2); display: grid; place-items: center; transition: all .3s; }
.footer-social a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--ink-mute); }
.footer-bottom a { color: var(--ink-mute); }
.footer-bottom a:hover { color: var(--gold-deep); }
.footer-legal-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* =============================================================
   18. Botones flotantes (WhatsApp + Asistente IA)
   ============================================================= */
.floaters { position: fixed; z-index: 300; bottom: clamp(1rem, 3vw, 1.6rem); left: 0; right: 0; pointer-events: none; }
.fab {
  position: fixed; z-index: 300; width: 60px; height: 60px; border-radius: 999px;
  display: grid; place-items: center; box-shadow: var(--shadow-m); pointer-events: auto;
  transition: transform .5s var(--ease-bounce), box-shadow .4s; animation: fabIn .6s var(--ease-bounce) both;
}
.fab:hover { transform: scale(1.08); }
.fab svg { width: 32px; height: 32px; }
.fab-wa { right: clamp(1rem,3vw,1.6rem); bottom: clamp(1rem,3vw,1.6rem); background: #25D366; color: #fff; }
.fab-ai { left: clamp(1rem,3vw,1.6rem); bottom: clamp(1rem,3vw,1.6rem); background: var(--ink); color: var(--gold-light); border: 1px solid rgba(216,190,134,.35); }
.fab-ai svg { width: 30px; height: 30px; }
@keyframes fabIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.fab-wa::after {
  content: ""; position: absolute; inset: 0; border-radius: 999px; border: 2px solid #25D366;
  animation: fabPulse 3.4s ease-out infinite;
}
@keyframes fabPulse { 0%{ transform: scale(1); opacity: .6; } 70%,100%{ transform: scale(1.55); opacity: 0; } }
/* Tooltip desktop */
.fab-tip { position: absolute; bottom: 50%; transform: translateY(50%); white-space: nowrap; background: var(--ink); color: var(--bg); font-size: .78rem; font-weight: 600; padding: .45rem .8rem; border-radius: 10px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; }
.fab-wa .fab-tip { right: 72px; }
.fab-ai .fab-tip { left: 72px; }
.fab:hover .fab-tip { opacity: 1; }
@media (hover: none) { .fab-tip { display: none; } }

/* Lead form */
.lead-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(1.5rem,3vw,2.4rem); box-shadow: var(--shadow-s); display: flex; flex-direction: column; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink-soft); letter-spacing: .02em; }
.field input, .field select, .field textarea {
  font: inherit; font-size: .96rem; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line-2); border-radius: 12px; padding: .8rem 1rem;
  transition: border-color .3s, box-shadow .3s; width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,146,74,.15); }
.field.err input, .field.err select, .field.err textarea { border-color: #c0492f; }
.form-note { font-size: .78rem; color: var(--ink-mute); text-align: center; margin-top: -.2rem; }
.form-ok { background: var(--bg-2); border: 1px solid var(--gold-soft); border-radius: 14px; padding: 1rem 1.2rem; color: var(--ink-soft); font-size: .92rem; display: none; }
.form-ok.show { display: block; }

/* =============================================================
   19. Page hero (interior pages)
   ============================================================= */
.page-hero { padding-top: calc(var(--nav-h) + clamp(3rem,7vw,5.5rem)); padding-bottom: clamp(2.5rem,5vw,4rem); text-align: center; position: relative; overflow: clip; }
.page-hero h1 { font-size: clamp(2.6rem,6vw,4.6rem); margin: 1rem 0 1rem; }
.page-hero p { color: var(--ink-mute); max-width: 58ch; margin-inline: auto; font-size: 1.08rem; }
.page-hero .hero-halo { inset: -30% auto auto 50%; transform: translateX(-50%); width: 50%; }
.crumbs { font-size: .82rem; color: var(--ink-mute); }
.crumbs a:hover { color: var(--gold-deep); }

/* Rich content */
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { font-size: clamp(1.6rem,3vw,2.2rem); margin: 2.2rem 0 .8rem; }
.prose h3 { font-size: 1.3rem; margin: 1.6rem 0 .5rem; }
.prose p { color: var(--ink-soft); margin-bottom: 1rem; }
.prose ul.bullets { margin: 0 0 1.2rem; display: flex; flex-direction: column; gap: .5rem; }
.prose ul.bullets li { padding-left: 1.6rem; position: relative; color: var(--ink-soft); }
.prose ul.bullets li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); font-size: .8rem; top: .25rem; }
.prose a.inline { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }

/* Service detail cards (servicios page) */
.svc-list { display: grid; gap: clamp(1rem,2vw,1.5rem); }
.svc-card { display: grid; grid-template-columns: 88px 1fr; gap: 1.4rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem,2.5vw,2rem); align-items: start; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.svc-card .n { font-family: var(--serif); font-size: 2.6rem; color: var(--gold); font-style: italic; line-height: 1; }
.svc-card h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.svc-card p { color: var(--ink-mute); font-size: .98rem; }
.svc-card .tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .9rem; }
.svc-card .tags span { font-size: .74rem; padding: .3rem .7rem; border-radius: 999px; background: var(--bg-2); color: var(--ink-soft); }
@media (max-width: 560px){ .svc-card { grid-template-columns: 1fr; gap: .4rem; } }

/* Split content blocks */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,4vw,3.5rem); align-items: center; }
.split.rev .split-media { order: 2; }
.split-media { border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-l); aspect-ratio: 4/3; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { font-size: clamp(1.8rem,4vw,2.8rem); margin-bottom: 1rem; }
.split p { color: var(--ink-soft); margin-bottom: 1rem; }
@media (max-width: 780px){
  .split { grid-template-columns: 1fr; }
  .split.rev .split-media { order: -1; }
  .split > :not(.split-media) { text-align: center; }
  .split .eyebrow, .split .about-creds { justify-content: center; }
  .split .about-creds { margin-inline: auto; }
}

/* Gallery grid (nuestra clínica / testimonios) */
.grid-photos { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.grid-photos .gp { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; box-shadow: var(--shadow-s); border: 1px solid var(--line); }
.grid-photos .gp img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.grid-photos .gp:hover img { transform: scale(1.06); }
.grid-photos .gp.wide { grid-column: span 2; aspect-ratio: 16/10; }
@media (max-width: 720px){ .grid-photos { grid-template-columns: repeat(2,1fr); } .grid-photos .gp.wide { grid-column: span 2; } }

/* =============================================================
   20. Reveal on scroll
   ============================================================= */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* =============================================================
   21. Splash
   ============================================================= */
.splash { position: fixed; inset: 0; z-index: 500; background: var(--bg); display: grid; place-items: center; animation: splashSafety .01s 1.6s forwards; }
.splash.is-out { opacity: 0; pointer-events: none; transform: scale(1.02); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.splash img { width: 150px; animation: splashPulse 1.6s var(--ease-soft) infinite; }
@keyframes splashPulse { 0%,100%{ opacity: .5; transform: scale(.96);} 50%{ opacity: 1; transform: scale(1);} }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; visibility: hidden; } }

/* =============================================================
   23. Chat widget (asistente Lía)
   ============================================================= */
.chat-panel {
  position: fixed; z-index: 320; left: clamp(1rem,3vw,1.6rem); bottom: calc(clamp(1rem,3vw,1.6rem) + 74px);
  width: min(380px, calc(100vw - 2rem)); height: min(560px, calc(100vh - 130px));
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow-l);
  transform: translateY(16px) scale(.96); opacity: 0; pointer-events: none;
  transform-origin: bottom left; transition: transform .4s var(--ease-out), opacity .4s var(--ease-out);
}
.chat-panel.open { transform: none; opacity: 1; pointer-events: auto; }
.chat-head { background: var(--ink); color: var(--bg); padding: .9rem 1rem; display: flex; align-items: center; gap: .7rem; }
.chat-head .av { width: 40px; height: 40px; border-radius: 999px; background: var(--gold-grad); display: grid; place-items: center; color: #fff; flex: 0 0 auto; }
.chat-head .av svg { width: 22px; height: 22px; }
.chat-head .who b { font-size: .98rem; display: block; line-height: 1.1; }
.chat-head .who span { font-size: .74rem; color: rgba(251,248,242,.7); display: inline-flex; align-items: center; gap: .35rem; }
.chat-head .who span::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: #35d17a; display: inline-block; }
.chat-head .x { margin-left: auto; color: var(--bg); opacity: .8; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 999px; }
.chat-head .x:hover { opacity: 1; background: rgba(255,255,255,.12); }
.chat-body { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .7rem; background: var(--bg); }
.chat-msg { max-width: 84%; padding: .7rem .9rem; border-radius: 16px; font-size: .92rem; line-height: 1.5; white-space: pre-wrap; }
.chat-msg.bot { background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 5px; align-self: flex-start; }
.chat-msg.user { background: var(--ink); color: var(--bg); border-bottom-right-radius: 5px; align-self: flex-end; }
.chat-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: .8rem 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.chat-typing span { width: 7px; height: 7px; border-radius: 999px; background: var(--ink-mute); animation: chatDot 1.2s infinite ease-in-out; }
.chat-typing span:nth-child(2){ animation-delay: .2s; } .chat-typing span:nth-child(3){ animation-delay: .4s; }
@keyframes chatDot { 0%,60%,100%{ transform: translateY(0); opacity: .4; } 30%{ transform: translateY(-5px); opacity: 1; } }
.chat-chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1rem .6rem; background: var(--bg); }
.chat-chips button { font-size: .8rem; padding: .4rem .75rem; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-soft); background: var(--paper); transition: all .3s; }
.chat-chips button:hover { border-color: var(--gold); color: var(--gold-deep); }
.chat-foot { display: flex; gap: .5rem; padding: .7rem; border-top: 1px solid var(--line); background: var(--paper); }
.chat-foot input { flex: 1; border: 1px solid var(--line-2); border-radius: 999px; padding: .6rem .9rem; font: inherit; font-size: .92rem; }
.chat-foot input:focus { outline: none; border-color: var(--gold); }
.chat-foot button { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 999px; background: var(--gold-grad); color: #fff; display: grid; place-items: center; }
.chat-foot button svg { width: 20px; height: 20px; }
.chat-disc { text-align: center; font-size: .68rem; color: var(--ink-mute); padding: 0 1rem .6rem; background: var(--paper); }
@media (max-width: 480px) {
  .chat-panel { left: .6rem; right: .6rem; width: auto; bottom: 84px; height: min(72vh, 560px); }
}

/* =============================================================
   24. Valoración con IA (calculadora)
   ============================================================= */
.val-wrap { max-width: 900px; margin-inline: auto; }
.val-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(1.5rem,3.5vw,3rem); box-shadow: var(--shadow-m); position: relative; overflow: hidden; }
.val-step { display: none; }
.val-step.active { display: block; animation: valIn .5s var(--ease-out); }
@keyframes valIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.val-drop {
  border: 2px dashed var(--line-2); border-radius: var(--radius); padding: clamp(1.6rem,4vw,2.6rem); text-align: center;
  transition: border-color .3s, background .3s; cursor: pointer; background: var(--bg);
}
.val-drop:hover, .val-drop.drag { border-color: var(--gold); background: var(--bg-2); }
.val-drop .ic { width: 60px; height: 60px; margin: 0 auto 1rem; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; color: var(--gold-deep); }
.val-drop .ic svg { width: 30px; height: 30px; }
.val-drop h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.val-drop p { color: var(--ink-mute); font-size: .9rem; }
.val-preview { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.val-preview img { max-height: 300px; border-radius: var(--radius); box-shadow: var(--shadow-m); }
.val-loading { text-align: center; padding: 2rem 0; }
.val-spinner { width: 54px; height: 54px; margin: 0 auto 1.2rem; border-radius: 999px; border: 3px solid var(--gold-soft); border-top-color: var(--gold-deep); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.val-loading p { color: var(--ink-soft); font-family: var(--serif); font-size: 1.3rem; font-style: italic; }
.val-gate { display: grid; gap: 1rem; max-width: 460px; margin-inline: auto; }
.val-gate .lead-form { box-shadow: none; padding: 0; border: 0; background: transparent; }
.val-result .res-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.val-result .res-head .ok { width: 46px; height: 46px; border-radius: 999px; background: var(--gold-grad); color: #fff; display: grid; place-items: center; flex: 0 0 auto; }
.val-result .res-head h3 { font-size: 1.5rem; }
.val-summary { font-family: var(--serif); font-size: 1.3rem; font-style: italic; color: var(--ink-soft); background: var(--bg-2); border-left: 3px solid var(--gold); padding: 1rem 1.2rem; border-radius: 10px; margin-bottom: 1.4rem; }
.val-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.4rem; }
.val-chip { font-size: .84rem; padding: .5rem .9rem; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.val-chip b { color: var(--gold-deep); }
.val-obs { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.4rem; }
.val-obs li { padding-left: 1.5rem; position: relative; color: var(--ink-soft); font-size: .95rem; }
.val-obs li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); font-size: .8rem; top: .2rem; }
.val-disclaimer { font-size: .82rem; color: var(--ink-mute); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1.1rem; margin-bottom: 1.4rem; }
.val-err { background: #fdf1e3; color: #a9722a; border: 1px solid #e8cfa8; border-radius: 12px; padding: .8rem 1rem; font-size: .9rem; margin-top: 1rem; }

/* =============================================================
   22. Reduced motion — solo lo intrusivo
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .fab-wa::after { animation: none; }
  .splash img { animation: none; }
  .fab { animation: none; }
}

/* View transitions */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .5s; animation-timing-function: cubic-bezier(0.16,1,0.3,1); }
