/* =============================================================
   Clínica Dental Aurora — Glassmorphism médico
   1. Tokens · 2. Reset · 3. Utils · 4. Type · 5. Components
   6. Sections · 7. Effects · 8. Responsive · 9. Reduced-motion
   ============================================================= */

/* 1. TOKENS ------------------------------------------------- */
:root {
  --bg:        #e9f3f1;
  --bg-2:      #dcefec;
  --paper:     #ffffff;
  --ink:       #0f302d;
  --ink-soft:  #38534f;
  --ink-mute:  #6a827e;
  --glass:     rgba(255, 255, 255, 0.58);
  --glass-2:   rgba(255, 255, 255, 0.34);
  --glass-brd: rgba(255, 255, 255, 0.7);
  --accent:      #0f9d8f;
  --accent-deep: #0a7469;
  --accent-2:    #37bda8;
  --coral:       #ff8f7a;
  --gold:        #d8a34a;
  --line:      rgba(15, 48, 45, 0.10);
  --line-2:    rgba(15, 48, 45, 0.16);
  --shadow-sm: 0 6px 20px -10px rgba(10, 60, 55, 0.35);
  --shadow:    0 24px 50px -22px rgba(9, 60, 55, 0.45);
  --shadow-lg: 0 40px 80px -30px rgba(9, 60, 55, 0.5);
  --radius:    22px;
  --radius-lg: 30px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --maxw: 1200px;
  --gutter: clamp(1.1rem, 4vw, 3rem);
}

/* 2. RESET -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
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%; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font: inherit; color: inherit; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.06; letter-spacing: -0.02em; font-weight: 500; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem;
  background: var(--accent); color: #fff; z-index: 9999; border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* 3. UTILITIES ---------------------------------------------- */
[data-demo] { /* marker only, no visual change by default */ }
.glass {
  background: rgba(255, 255, 255, 0.72); /* solid fallback */
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@supports ((backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px))) {
  .glass {
    background: var(--glass);
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
  }
}
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section-head { max-width: var(--maxw); margin: 0 auto clamp(2rem, 5vw, 3.5rem); padding-inline: var(--gutter); text-align: center; }
.section-head h2, .est-head h2, .contact-copy h2 { font-size: clamp(1.9rem, 5vw, 3.2rem); }
.section-head h2 { max-width: 22ch; margin-inline: auto; }
.est-head h2 { max-width: 24ch; margin-inline: auto; }
.section-head h2 em, .est-head h2 em, .hero-title em, .contact-copy h2 em, h2 em { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--accent-deep); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-deep); margin-bottom: .9rem;
}
.section-lead { color: var(--ink-soft); max-width: 60ch; margin: 1rem auto 0; font-size: 1.05rem; }

/* 4. TYPOGRAPHY / MESH BG ---------------------------------- */
.page-mesh {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(42% 40% at 12% 8%, rgba(55, 189, 168, 0.32), transparent 60%),
    radial-gradient(46% 42% at 88% 14%, rgba(120, 205, 230, 0.30), transparent 62%),
    radial-gradient(50% 45% at 70% 92%, rgba(255, 180, 150, 0.18), transparent 60%),
    radial-gradient(45% 45% at 20% 85%, rgba(90, 200, 180, 0.20), transparent 60%),
    var(--bg);
  filter: blur(20px) saturate(120%);
  animation: meshDrift 34s ease-in-out infinite;
}
@keyframes meshDrift {
  0%, 100% { transform: scale(1.05) translate(0, 0); }
  50%      { transform: scale(1.18) translate(-1.5%, 1.5%); }
}

/* 5. COMPONENTS --------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: .96rem;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), background .3s;
  white-space: nowrap;
}
.btn-lg { padding: 1rem 1.8rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(118deg, var(--accent-deep), var(--accent) 45%, var(--accent-2));
  color: #fff; box-shadow: 0 14px 30px -12px rgba(15, 157, 143, 0.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -12px rgba(15, 157, 143, 0.8); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.6); color: var(--accent-deep);
  border: 1px solid var(--glass-brd); backdrop-filter: blur(8px);
}
.btn-ghost:hover { transform: translateY(-2px); background: #fff; }

/* NAV */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 900; transition: background .35s, box-shadow .35s, padding .35s; padding-block: .85rem; }
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 1.4rem;
}
.nav.is-scrolled {
  background: rgba(233, 243, 241, 0.82);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
  padding-block: .55rem;
}
.brand { display: flex; align-items: center; gap: .55rem; margin-right: auto; }
.brand-mark { fill: var(--accent); flex-shrink: 0; filter: drop-shadow(0 4px 8px rgba(15,157,143,.35)); }
.brand-text { display: flex; align-items: baseline; gap: .3rem; font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.brand-text em { color: var(--accent); font-style: normal; }
.brand-sub { font-size: .72rem; font-weight: 500; color: var(--ink-mute); letter-spacing: .02em; }
.nav-links { display: flex; gap: 1.6rem; }
.nav-links a { font-size: .95rem; font-weight: 500; color: var(--ink-soft); position: relative; padding-block: .3rem; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent);
  transition: width .3s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { padding: .6rem 1.2rem; font-size: .9rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: .4rem; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 6. SECTIONS ----------------------------------------------- */

/* HERO */
.hero { padding-top: clamp(7rem, 14vw, 10rem); padding-bottom: clamp(2rem, 6vw, 4rem); }
.hero-inner {
  max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.kicker { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 600; color: var(--accent-deep); margin-bottom: 1.1rem; }
.kicker .dot, .hc-live .dot, .chat-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 0 rgba(55,189,168,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(55,189,168,.55);} 70%{box-shadow:0 0 0 10px rgba(55,189,168,0);} 100%{box-shadow:0 0 0 0 rgba(55,189,168,0);} }
.hero-title { font-size: clamp(2.6rem, 6.5vw, 4.6rem); max-width: 15ch; }
.hero-sub { margin-top: 1.4rem; font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--ink-soft); max-width: 46ch; }
.hero-sub strong { color: var(--accent-deep); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-stats { list-style: none; display: flex; gap: clamp(1.2rem, 4vw, 2.6rem); margin-top: 2.6rem; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--serif); font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 500; color: var(--ink); line-height: 1; }
.hero-stats span { font-size: .82rem; color: var(--ink-mute); margin-top: .35rem; }

.hero-visual { position: relative; }
.hero-card { padding: 1.4rem; border-radius: var(--radius-lg); }
.hero-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.hc-badge { font-size: .78rem; font-weight: 700; color: var(--accent-deep); background: rgba(55,189,168,.16); padding: .3rem .7rem; border-radius: 999px; }
.hc-live { display: inline-flex; align-items: center; gap: .4rem; font-size: .76rem; color: var(--ink-mute); }
.hero-smile { background: linear-gradient(160deg, #f4fbfa, #e3f4f1); border-radius: 18px; padding: 1.4rem; }
.hero-card-foot { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1.1rem; }
.hc-stat { background: rgba(255,255,255,.55); border: 1px solid var(--line); border-radius: 14px; padding: .7rem .8rem; }
.hc-stat strong { display: block; font-size: 1.15rem; color: var(--accent-deep); }
.hc-stat span { font-size: .74rem; color: var(--ink-mute); }
.hero-float {
  position: absolute; padding: .6rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 600;
  color: var(--ink); box-shadow: var(--shadow-sm); animation: floaty 5s ease-in-out infinite;
}
.hero-float--1 { top: -12px; left: -14px; color: var(--accent-deep); }
.hero-float--2 { bottom: -16px; right: -10px; animation-delay: 1.4s; }
@keyframes floaty { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-9px);} }

/* TRUST BAR */
.trust { padding-block: 1.4rem; }
.trust-inner {
  max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter);
  display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1rem, 4vw, 3rem);
}
.trust-item { font-size: .92rem; font-weight: 500; color: var(--ink-soft); }

/* BENEFITS */
.benefit-grid, .treat-grid, .testi-grid, .gallery-grid {
  max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter);
  display: grid; gap: 1.2rem;
}
.benefit-grid { grid-template-columns: repeat(3, 1fr); }
.benefit { padding: 1.8rem; }
.benefit-ico { font-size: 1.9rem; margin-bottom: .8rem; }
.benefit h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.benefit p { color: var(--ink-soft); font-size: .96rem; }

/* TREATMENTS */
.treat-grid { grid-template-columns: repeat(3, 1fr); }
.treat { padding: 1.8rem; display: flex; flex-direction: column; transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.treat:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.treat-ico { font-size: 2rem; margin-bottom: .7rem; }
.treat h3 { font-size: 1.28rem; margin-bottom: .4rem; }
.treat p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 1.1rem; flex-grow: 1; }
.treat-price { display: flex; align-items: baseline; gap: .35rem; padding-top: 1rem; border-top: 1px solid var(--line); margin-bottom: .9rem; }
.treat-price span { font-size: .8rem; color: var(--ink-mute); }
.treat-price strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: var(--accent-deep); }
.treat-price em { font-style: normal; font-size: .82rem; color: var(--ink-mute); }
.treat-link { font-weight: 600; color: var(--accent-deep); font-size: .94rem; transition: gap .3s; }
.treat-link:hover { text-decoration: underline; }

/* ESTIMATOR */
.estimator { padding-inline: var(--gutter); }
.est-wrap { max-width: 900px; margin: 0 auto; padding: clamp(1.8rem, 4vw, 3rem); border-radius: var(--radius-lg); }
.est-head { text-align: center; margin-bottom: 2rem; }
.est-step { margin-bottom: 1.8rem; }
.est-label { display: block; font-weight: 600; font-size: 1.05rem; margin-bottom: .9rem; }
.est-options { display: flex; flex-wrap: wrap; gap: .7rem; }
.est-chip {
  padding: .75rem 1.15rem; border-radius: 14px; border: 1.5px solid var(--line-2); background: rgba(255,255,255,.6);
  font-weight: 500; font-size: .95rem; transition: all .25s var(--ease-out); display: inline-flex; align-items: center; gap: .5rem;
}
.est-chip:hover { border-color: var(--accent-2); transform: translateY(-2px); }
.est-chip.is-active { background: linear-gradient(118deg, var(--accent-deep), var(--accent-2)); color: #fff; border-color: transparent; box-shadow: 0 10px 24px -12px rgba(15,157,143,.7); }
.est-result { margin-top: 1.6rem; }
.est-result-card { text-align: center; background: linear-gradient(165deg, rgba(55,189,168,.14), rgba(120,205,230,.12)); border: 1px solid var(--glass-brd); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.4rem); }
.est-result-eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-deep); }
.est-range { font-family: var(--serif); font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 500; color: var(--ink); margin: .5rem 0; }
.est-cuota { font-size: 1.05rem; color: var(--ink-soft); margin-bottom: 1rem; }
.est-cuota strong { color: var(--accent-deep); }
.est-disclaimer { font-size: .85rem; color: var(--ink-mute); max-width: 46ch; margin: 0 auto 1.4rem; }

/* PROCESS */
.steps { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: step; }
.step { padding: 1.8rem; position: relative; }
.step-num { font-family: var(--serif); font-size: 2.4rem; font-weight: 500; color: var(--accent-2); opacity: .55; }
.step h3 { font-size: 1.2rem; margin: .4rem 0 .5rem; }
.step p { color: var(--ink-soft); font-size: .94rem; }

/* GALLERY / BEFORE-AFTER */
.gallery-grid { grid-template-columns: repeat(3, 1fr); }
.ba { padding: 1rem; overflow: hidden; }
.ba-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; border-radius: 14px; overflow: hidden; }
.ba-img { aspect-ratio: 3/4; display: grid; place-items: end center; padding-bottom: .6rem; position: relative; }
.ba-img span { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: rgba(15,48,45,.55); color: #fff; padding: .2rem .6rem; border-radius: 999px; }
.ba-before { background: linear-gradient(160deg, #cbd6d3, #aebbb7); }
.ba-after  { background: linear-gradient(160deg, #d6f3ec, #a9e3d5); }
.ba-b2 { background: linear-gradient(160deg, #d3cdc4, #b8ac9c); }
.ba-a2 { background: linear-gradient(160deg, #e6f6ef, #bfe9da); }
.ba-b3 { background: linear-gradient(160deg, #c9d2d6, #a7b6bd); }
.ba-a3 { background: linear-gradient(160deg, #dcf2f4, #b2e2e6); }
.ba figcaption { text-align: center; font-size: .92rem; color: var(--ink-soft); margin-top: .8rem; font-weight: 500; }

/* TESTIMONIALS */
.testi-grid { grid-template-columns: repeat(3, 1fr); }
.testi { padding: 1.8rem; }
.testi .stars { color: var(--gold); letter-spacing: .1em; margin-bottom: .7rem; }
.testi p { color: var(--ink); font-size: 1rem; margin-bottom: 1.1rem; }
.testi footer { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--ink-mute); font-weight: 500; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--accent-deep), var(--accent-2)); }

/* FAQ */
.faq-list { max-width: 780px; margin: 0 auto; padding-inline: var(--gutter); display: flex; flex-direction: column; gap: .8rem; }
.faq-item { border: 1px solid var(--glass-brd); border-radius: 16px; background: rgba(255,255,255,.6); overflow: hidden; transition: box-shadow .3s; }
.faq-item.is-open { box-shadow: var(--shadow-sm); }
.faq-q { width: 100%; text-align: left; padding: 1.15rem 1.3rem; font-weight: 600; font-size: 1.04rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-q .chev { flex-shrink: 0; transition: transform .3s var(--ease-out); color: var(--accent); font-size: 1.2rem; }
.faq-item.is-open .chev { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease-out); }
.faq-a p { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); }

/* CONTACT */
.contact { padding-inline: var(--gutter); }
.contact-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.contact-copy h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
.contact-info { list-style: none; margin: 1.6rem 0; display: flex; flex-direction: column; gap: .7rem; }
.contact-info li { display: flex; align-items: center; gap: .7rem; color: var(--ink-soft); }
.contact-info a { color: var(--accent-deep); font-weight: 500; }
.map-placeholder { display: grid; place-items: center; aspect-ratio: 16/9; color: var(--ink-mute); font-weight: 500; background: linear-gradient(150deg, #dcefeb, #cfe8ea); }
.contact-form { padding: clamp(1.5rem, 3.5vw, 2.4rem); display: flex; flex-direction: column; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-size: .86rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  padding: .8rem .95rem; border-radius: 12px; border: 1.5px solid var(--line-2); background: rgba(255,255,255,.75);
  transition: border-color .25s, box-shadow .25s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15,157,143,.15); }
.field textarea { resize: vertical; }
.consent { display: flex; align-items: flex-start; gap: .6rem; font-size: .84rem; color: var(--ink-mute); }
.consent input { margin-top: .2rem; accent-color: var(--accent); }
.form-note { font-size: .9rem; margin-top: .3rem; min-height: 1.2em; }
.form-note.ok { color: var(--accent-deep); font-weight: 600; }
.form-note.err { color: #c0533f; font-weight: 600; }

/* FOOTER */
.footer { margin-top: 3rem; border-top: 1px solid var(--line); background: rgba(255,255,255,.4); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 2.4rem var(--gutter); display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 1.5rem; align-items: center; }
.footer-brand .brand-text { font-size: 1.05rem; }
.footer-brand p { font-size: .85rem; color: var(--ink-mute); margin-top: .3rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-links a { font-size: .9rem; color: var(--ink-soft); }
.footer-links a:hover { color: var(--accent-deep); }
.footer-legal p { font-size: .8rem; color: var(--ink-mute); }

/* CHAT ASSISTANT */
.chat { position: fixed; bottom: clamp(1rem, 3vw, 1.8rem); right: clamp(1rem, 3vw, 1.8rem); z-index: 950; }
.chat-bubble {
  display: inline-flex; align-items: center; gap: .6rem; padding: .8rem 1.2rem; border-radius: 999px;
  background: linear-gradient(118deg, var(--accent-deep), var(--accent-2)); color: #fff; font-weight: 600;
  box-shadow: 0 16px 34px -12px rgba(15,157,143,.75); transition: transform .3s var(--ease-out);
}
.chat-bubble:hover { transform: translateY(-3px) scale(1.02); }
.chat-bubble-ico { font-size: 1.15rem; }
.chat.is-open .chat-bubble { display: none; }
.chat-panel {
  position: absolute; bottom: 0; right: 0; width: min(380px, 90vw); height: min(560px, 76vh);
  display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg);
  animation: chatIn .35s var(--ease-out);
}
@keyframes chatIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.chat-header { display: flex; align-items: center; gap: .7rem; padding: 1rem 1.1rem; background: linear-gradient(118deg, var(--accent-deep), var(--accent-2)); color: #fff; }
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; font-weight: 700; font-size: 1.1rem; }
.chat-header strong { display: block; font-size: 1rem; }
.chat-status { font-size: .76rem; opacity: .9; display: inline-flex; align-items: center; gap: .35rem; }
.chat-status .dot { background: #baffe9; }
.chat-close { margin-left: auto; color: #fff; font-size: 1rem; opacity: .85; }
.chat-close:hover { opacity: 1; }
.chat-log { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: .8rem; background: rgba(255,255,255,.5); }
.msg { max-width: 85%; padding: .75rem 1rem; border-radius: 16px; font-size: .93rem; line-height: 1.55; }
.msg-bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; box-shadow: var(--shadow-sm); }
.msg-user { background: linear-gradient(118deg, var(--accent-deep), var(--accent-2)); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg-typing { display: inline-flex; gap: .25rem; }
.msg-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); animation: typing 1.2s infinite; }
.msg-typing span:nth-child(2){animation-delay:.2s;} .msg-typing span:nth-child(3){animation-delay:.4s;}
@keyframes typing { 0%,60%,100%{opacity:.3;transform:translateY(0);} 30%{opacity:1;transform:translateY(-3px);} }
.chat-suggest { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; margin-top: .2rem; }
.chat-suggest button { text-align: left; padding: .55rem .85rem; border-radius: 14px; border: 1px solid var(--accent-2); background: rgba(55,189,168,.1); color: var(--accent-deep); font-size: .86rem; font-weight: 500; transition: background .25s; }
.chat-suggest button:hover { background: rgba(55,189,168,.2); }
.chat-input { display: flex; gap: .5rem; padding: .75rem; background: #fff; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; padding: .7rem .9rem; border-radius: 999px; border: 1.5px solid var(--line-2); }
.chat-input input:focus { outline: none; border-color: var(--accent); }
.chat-input button { width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; background: linear-gradient(118deg, var(--accent-deep), var(--accent-2)); color: #fff; font-size: 1rem; }

/* SPLASH */
.splash { position: fixed; inset: 0; z-index: 9998; background: linear-gradient(160deg, #eaf6f3, #d6efec); display: grid; place-items: center; gap: 1rem; grid-auto-flow: row; transition: opacity .6s var(--ease-out), visibility .6s; animation: splashSafety .01s 4.5s forwards; }
.splash.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes splashSafety { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.splash-mark { display: grid; place-items: center; }
.splash-tooth { fill: var(--accent); animation: toothPop 1.4s var(--ease-out) infinite alternate; transform-origin: center; }
@keyframes toothPop { from { transform: scale(.9); opacity: .6; } to { transform: scale(1.05); opacity: 1; } }
.splash-name { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: var(--accent-deep); letter-spacing: .04em; }

/* HERO PHOTO */
.hero-photo { border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; background: #dfeeeb; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* CLINIC BAND */
.clinic-band { position: relative; margin-block: clamp(1.5rem, 4vw, 3rem); min-height: clamp(380px, 50vw, 560px); display: grid; overflow: hidden; }
.clinic-band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.clinic-band-overlay { position: relative; display: flex; align-items: center; padding: clamp(2rem, 6vw, 4.5rem) var(--gutter);
  background: linear-gradient(100deg, rgba(7, 44, 41, .88) 0%, rgba(7, 44, 41, .55) 48%, rgba(7, 44, 41, .12) 78%, transparent 100%); }
.clinic-band-inner { max-width: 620px; color: #fff; }
.clinic-band-inner .eyebrow { color: #9fe8d8; }
.clinic-band-inner h2 { font-size: clamp(1.7rem, 4vw, 2.8rem); color: #fff; max-width: 18ch; }
.clinic-band-inner h2 em { color: #c6f2e7; }
.clinic-band-inner p { margin: 1rem 0 1.7rem; color: rgba(255, 255, 255, .92); max-width: 46ch; }

/* GALLERY PHOTOS */
.ba-photo { border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 2; background: #dfeeeb; }
.ba-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.ba:hover .ba-photo img { transform: scale(1.05); }

/* 7. EFFECTS (reveals) -------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }

/* 8. RESPONSIVE --------------------------------------------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin-inline: auto; order: -1; }
  .benefit-grid, .treat-grid, .testi-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: left; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav.is-open .nav-links {
    display: flex; position: absolute; top: 100%; left: var(--gutter); right: var(--gutter);
    flex-direction: column; gap: .4rem; background: rgba(255,255,255,.95); backdrop-filter: blur(18px);
    padding: 1rem; border-radius: 18px; box-shadow: var(--shadow); margin-top: .5rem;
  }
  .nav.is-open .nav-cta { display: inline-flex; position: absolute; top: calc(100% + 12.5rem); left: var(--gutter); right: var(--gutter); }
}
@media (max-width: 540px) {
  .benefit-grid, .treat-grid, .testi-grid, .gallery-grid, .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.4rem; }
  .chat-bubble-text { display: none; }
  .chat-bubble { padding: .9rem; }
  .chat-bubble-ico { font-size: 1.4rem; }
}

/* 9. REDUCED MOTION (only intrusive) ------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .page-mesh { animation: none; }
  .kicker .dot, .hc-live .dot, .chat-status .dot, .splash-tooth, .hero-float { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
