/* ===== Dentstyle Design System ===== */
:root {
  /* Brand palette */
  --gold: #C6AC6F;
  --gold-bright: #D3B775;
  --gold-deep: #A98C4D;
  --white: #FFFFFF;
  --ivory: #F7F2E6;
  --ivory-soft: #FBF8F1;
  --champagne: #EFE4CC;
  --warm-gray: #948B85;
  --warm-gray-soft: #B5ADA7;

  /* Ink (warm dark) */
  --ink: #2A2520;
  --ink-soft: #4A413A;
  --ink-mute: #76695E;

  /* Surfaces */
  --bg: #FBF8F1;
  --bg-paper: #FFFFFF;
  --bg-alt: #F2EADB;

  /* Radii */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-pill: 999px;

  /* Shadows — refined, warm */
  --shadow-xs: 0 1px 2px rgba(74, 56, 30, 0.06);
  --shadow-sm: 0 4px 14px -6px rgba(74, 56, 30, 0.10), 0 1px 3px rgba(74, 56, 30, 0.04);
  --shadow-md: 0 18px 40px -20px rgba(74, 56, 30, 0.18), 0 6px 14px -10px rgba(74, 56, 30, 0.08);
  --shadow-lg: 0 30px 70px -30px rgba(74, 56, 30, 0.28), 0 10px 24px -16px rgba(74, 56, 30, 0.10);
  --shadow-gold: 0 14px 30px -14px rgba(198, 172, 111, 0.55);

  /* Gradients */
  --grad-gold: linear-gradient(135deg, #D3B775 0%, #C6AC6F 45%, #A98C4D 100%);
  --grad-gold-soft: linear-gradient(135deg, #E5D2A0 0%, #C6AC6F 100%);
  --grad-bg-hero: radial-gradient(120% 80% at 30% 30%, #FBF8F1 0%, #F4EBD5 55%, #ECDFC0 100%);
  --grad-pearl: radial-gradient(circle at 30% 30%, #FFFFFF 0%, #F4ECDD 45%, #CFBE99 100%);

  /* Type */
  --font-display: "Cormorant Garamond", "Cormorant", "Playfair Display", Georgia, serif;
  --font-body: "Outfit", "Manrope", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-eyebrow: "Outfit", system-ui, sans-serif;

  /* Motion */
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }

::selection { background: rgba(198, 172, 111, 0.35); color: var(--ink); }

/* Type ramp */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.display em, .display .italic {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-deep);
  letter-spacing: 0.005em;
}
.eyebrow {
  font-family: var(--font-eyebrow);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.lead {
  font-size: clamp(15px, 1.4vw, 17.5px);
  line-height: 1.6;
  color: var(--ink-soft);
  font-weight: 400;
}

/* ===== Buttons ===== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.005em;
  transition: transform .35s var(--ease-premium), box-shadow .35s var(--ease-premium), background .3s ease;
  overflow: hidden;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--grad-gold);
  color: #FFFEF8;
  box-shadow: var(--shadow-gold);
}
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0; left: -130%;
  width: 60%; height: 100%;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.5) 50%, transparent 70%);
  transform: skewX(-20deg);
  transition: left .9s var(--ease-premium);
  pointer-events: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -18px rgba(198, 172, 111, 0.75); }
.btn-primary:hover::before { left: 130%; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--gold);
}
.btn-ghost:hover { background: rgba(198, 172, 111, 0.08); transform: translateY(-2px); }

.btn-arrow {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-deep);
  transition: all .3s var(--ease-premium);
}
.btn-arrow:hover { background: var(--gold); color: white; transform: translateX(3px); }

/* ===== Sections / containers ===== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .container { padding: 0 40px; } }
@media (min-width: 1280px) { .container { padding: 0 56px; } }

section { position: relative; }

/* divider spark */
.divider-spark {
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  margin: 0 auto;
}
.divider-spark::before, .divider-spark::after {
  content: "";
  width: 90px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 40%, var(--gold) 60%, transparent);
}

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-premium), transform .9s var(--ease-premium); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0 !important; transition-duration: 0.001ms !important; }
}

/* Hide secondary ornaments on small screens */
@media (max-width: 640px) {
  .hero .spark { display: none; }
  .pearl-decor-md { display: none; }
}

/* ===== Header ===== */
.dh {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  padding: 18px 0;
  transition: background .4s var(--ease-soft), backdrop-filter .4s var(--ease-soft), border-color .4s ease, padding .3s ease;
  border-bottom: 1px solid transparent;
}
.dh.scrolled {
  background: rgba(251, 248, 241, 0.72);
  backdrop-filter: saturate(1.4) blur(18px);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  border-color: rgba(198, 172, 111, 0.18);
  padding: 12px 0;
}
.dh-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.dh-logo img { height: 64px; width: auto; }
.dh-nav {
  display: none;
  gap: 32px;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-soft);
}
.dh-nav a {
  position: relative;
  padding: 8px 0;
  transition: color .2s ease;
}
.dh-nav a:hover { color: var(--gold-deep); }
.dh-nav a.active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 18px; height: 1.5px;
  background: var(--gold);
}
.dh-cta { display: none; }
.dh-burger {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-deep);
}

@media (min-width: 1024px) {
  .dh-nav { display: flex; }
  .dh-cta { display: inline-flex; }
  .dh-burger { display: none; }
}

/* Mobile drawer */
.dh-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(42, 37, 32, 0.5);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease-soft);
}
.dh-drawer.open { opacity: 1; pointer-events: auto; }
.dh-drawer-panel {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: min(86vw, 380px);
  background: var(--ivory-soft);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transform: translateX(110%);
  transition: transform .5s var(--ease-premium);
  box-shadow: -20px 0 60px -20px rgba(74, 56, 30, 0.25);
}
.dh-drawer.open .dh-drawer-panel { transform: translateX(0); }
.dh-drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}
.dh-drawer-nav { display: flex; flex-direction: column; gap: 4px; }
.dh-drawer-nav a {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid rgba(198, 172, 111, 0.18);
  color: var(--ink);
}
.dh-drawer-nav a:last-child { border-bottom: 0; }
.dh-drawer-foot { margin-top: auto; padding-top: 24px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 110px;
  padding-bottom: 60px;
  overflow: hidden;
  background: var(--grad-bg-hero);
  isolation: isolate;
}
.hero::before {
  /* soft grain/noise overlay */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(255, 250, 230, 0.6), transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(211, 183, 117, 0.18), transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero { padding-top: 140px; padding-bottom: 120px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 60px; }
}
.hero-text { max-width: 560px; }
.hero-title {
  font-size: clamp(42px, 7.6vw, 92px);
  margin: 18px 0 18px;
}
.hero-sub {
  max-width: 460px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero image stage */
.hero-stage {
  position: relative;
  aspect-ratio: 4 / 4;
  max-height: 360px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .hero-stage { max-height: 520px; max-width: 480px; aspect-ratio: 4 / 4.4; }
}
@media (min-width: 1024px) {
  .hero-stage { max-height: 720px; max-width: none; aspect-ratio: 4 / 5; margin: 0; }
}
.hero-portrait {
  position: absolute;
  inset: 0;
  border-radius: 50% 50% 8% 8% / 55% 55% 6% 6%;
  overflow: hidden;
  box-shadow: 0 60px 100px -50px rgba(74, 56, 30, 0.35);
  z-index: 3;
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }

/* Gold arcs */
.arc {
  position: absolute;
  pointer-events: none;
  z-index: 2;
}
.arc svg { width: 100%; height: 100%; overflow: visible; }
.arc-1 { top: -8%; left: -12%; width: 70%; height: 80%; z-index: 1; opacity: .7; }
.arc-2 { bottom: -10%; right: -10%; width: 70%; height: 70%; z-index: 4; opacity: .85; }

/* Pearls */
.pearl {
  position: absolute;
  border-radius: 50%;
  background: var(--grad-pearl);
  box-shadow:
    inset 0 -3px 8px rgba(74, 56, 30, 0.15),
    inset 4px 4px 8px rgba(255, 255, 255, 0.7),
    0 12px 24px -10px rgba(74, 56, 30, 0.25);
  pointer-events: none;
  will-change: transform;
}
.pearl::after {
  content: "";
  position: absolute;
  top: 15%; left: 18%;
  width: 28%; height: 22%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.85), transparent 70%);
  border-radius: 50%;
  filter: blur(2px);
}

@keyframes float-y {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -16px, 0); }
}
@keyframes float-y-2 {
  0%, 100% { transform: translate3d(0, -10px, 0); }
  50% { transform: translate3d(0, 14px, 0); }
}
@keyframes float-orbit {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(8px, -12px, 0) rotate(8deg); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}

.float-a { animation: float-y 7s ease-in-out infinite; }
.float-b { animation: float-y-2 9s ease-in-out infinite; }
.float-c { animation: float-orbit 11s ease-in-out infinite; }

/* sparkle */
.spark {
  position: absolute;
  width: 14px; height: 14px;
  color: var(--gold);
  pointer-events: none;
}

/* ===== TrustStrip ===== */
.trust {
  background: var(--bg-paper);
  border-top: 1px solid rgba(198, 172, 111, 0.18);
  border-bottom: 1px solid rgba(198, 172, 111, 0.18);
  padding: 40px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 16px;
}
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-item { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.trust-icon {
  width: 42px; height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-deep);
}
.trust-title {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.1;
  font-weight: 500;
  margin: 0;
}
.trust-desc {
  font-size: 13.5px;
  color: var(--ink-mute);
  margin: 0;
  max-width: 220px;
}

/* ===== Treatments ===== */
.section-pad { padding: 100px 0; }
@media (max-width: 767px) { .section-pad { padding: 72px 0; } }

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  margin-bottom: 56px;
}
.section-head .display {
  font-size: clamp(36px, 4.6vw, 56px);
  max-width: 760px;
}

.treatments {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.treatments-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 640px) { .treatments-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .treatments-grid { grid-template-columns: repeat(4, 1fr); gap: 26px; } }

.tcard {
  background: var(--bg-paper);
  border: 1px solid rgba(198, 172, 111, 0.18);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .5s var(--ease-premium), box-shadow .5s var(--ease-premium), border-color .3s ease;
}
.tcard-media {
  aspect-ratio: 4 / 3.4;
  overflow: hidden;
  position: relative;
  background: var(--bg-alt);
}
.tcard-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s var(--ease-premium);
}
.tcard-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tcard-title {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.1;
  font-weight: 500;
  margin: 0;
}
.tcard-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-mute);
  margin: 0 0 8px;
}
.tcard-foot { margin-top: auto; }

@media (hover: hover) {
  .tcard:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(198, 172, 111, 0.5);
  }
  .tcard:hover .tcard-media img { transform: scale(1.06); }
  .tcard:hover .btn-arrow { background: var(--gold); color: white; }
}

/* ===== Before/After ===== */
.ba {
  background: var(--bg-paper);
  position: relative;
  overflow: hidden;
}
.ba-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--ivory-soft), var(--champagne) 100%);
  padding: 36px;
  border: 1px solid rgba(198, 172, 111, 0.25);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 900px) {
  .ba-shell { grid-template-columns: 0.7fr 1.3fr; padding: 48px; gap: 48px; }
}
.ba-eyebrow { margin-bottom: 14px; }
.ba-title { font-size: clamp(34px, 4vw, 48px); margin: 0 0 24px; }

.ba-viewer {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #ddd;
  cursor: ew-resize;
  user-select: none;
  touch-action: none;
  box-shadow: var(--shadow-md);
}
.ba-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
}
.ba-img-top-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  will-change: clip-path;
}
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.7), white, rgba(255,255,255,0.7));
  transform: translateX(-1px);
  pointer-events: none;
}
.ba-knob {
  position: absolute;
  top: 50%;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--gold);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-deep);
  box-shadow: 0 8px 20px -6px rgba(74, 56, 30, 0.4);
  pointer-events: none;
}
.ba-tag {
  position: absolute;
  bottom: 18px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  pointer-events: none;
}
.ba-tag-before { left: 18px; background: rgba(42, 37, 32, 0.78); color: #FBF8F1; backdrop-filter: blur(6px); }
.ba-tag-after { right: 18px; background: rgba(251, 248, 241, 0.85); color: var(--ink); backdrop-filter: blur(6px); }

/* ===== Experience ===== */
.exp {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.exp-eyebrow { text-align: center; display: block; margin-bottom: 60px; }
.exp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 640px) { .exp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .exp-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.exp-step { display: flex; flex-direction: column; gap: 14px; padding: 8px; position: relative; }
.exp-step-head { display: flex; align-items: center; gap: 14px; }
.exp-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-deep);
  flex-shrink: 0;
}
.exp-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 30px;
  color: var(--gold);
  line-height: 1;
}
.exp-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin: 0;
  line-height: 1.15;
}
.exp-desc { font-size: 13.5px; color: var(--ink-mute); margin: 0; max-width: 230px; }

/* ===== Testimonials ===== */
.tt {
  background: var(--bg-paper);
  position: relative;
  overflow: hidden;
}
.tt-eyebrow { text-align: center; display: block; margin-bottom: 38px; }
.tt-track-wrap { position: relative; }
.tt-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 8px 4px 24px;
  scroll-behavior: smooth;
}
.tt-track::-webkit-scrollbar { display: none; }
.tt-card {
  flex: 0 0 86%;
  scroll-snap-align: center;
  background: var(--bg);
  border: 1px solid rgba(198, 172, 111, 0.2);
  border-radius: var(--r-md);
  padding: 26px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (min-width: 768px) { .tt-card { flex: 0 0 calc(50% - 11px); } }
@media (min-width: 1024px) { .tt-card { flex: 0 0 calc(33.333% - 15px); } }

.tt-stars { display: flex; gap: 3px; color: var(--gold); }
.tt-quote {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.35;
  font-weight: 400;
  color: var(--ink);
  margin: 0;
  font-style: italic;
}
.tt-author { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.tt-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--bg-alt);
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(198, 172, 111, 0.3);
}
.tt-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tt-name { font-size: 14px; font-weight: 500; color: var(--ink); }
.tt-role { font-size: 12px; color: var(--ink-mute); }

.tt-arrows { display: flex; justify-content: center; gap: 14px; margin-top: 18px; }
.tt-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-deep);
  background: transparent;
  transition: all .3s var(--ease-premium);
}
.tt-arrow:hover { background: var(--gold); color: white; }
.tt-arrow:disabled { opacity: 0.35; cursor: not-allowed; }

/* ===== Final CTA ===== */
.fcta {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  background: linear-gradient(135deg, var(--ivory-soft) 0%, var(--champagne) 100%);
  isolation: isolate;
}
.fcta-inner {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}
@media (min-width: 768px) {
  .fcta-inner { flex-direction: row; justify-content: center; gap: 36px; text-align: left; }
}
.fcta-title { font-size: clamp(38px, 4.8vw, 56px); margin: 0; }
.fcta-actions { display: flex; align-items: center; gap: 18px; }
.fcta-note { font-size: 13.5px; color: var(--ink-mute); max-width: 200px; }

/* ===== Footer ===== */
.foot {
  background: var(--ink);
  color: #E8DFC9;
  padding: 64px 0 30px;
  position: relative;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(232, 223, 201, 0.12);
}
@media (min-width: 768px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot-logo img { height: 42px; }
.foot-blurb { font-size: 14px; color: rgba(232, 223, 201, 0.7); max-width: 320px; margin-top: 14px; }
.foot-h {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--gold-bright);
  margin: 0 0 14px;
  font-weight: 400;
}
.foot-links { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: rgba(232, 223, 201, 0.78); }
.foot-links a:hover { color: var(--gold-bright); }
.foot-social { display: flex; gap: 12px; margin-top: 6px; }
.foot-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(232, 223, 201, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(232, 223, 201, 0.78);
  transition: all .3s ease;
}
.foot-social a:hover { background: var(--gold); color: white; border-color: var(--gold); }
.foot-bottom {
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
  color: rgba(232, 223, 201, 0.5);
  text-align: center;
}
@media (min-width: 640px) { .foot-bottom { flex-direction: row; justify-content: space-between; text-align: left; } }

/* ===== Floating WhatsApp ===== */
.fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--grad-gold);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 32px -10px rgba(198, 172, 111, 0.7), 0 4px 12px rgba(0,0,0,0.1);
  transition: transform .3s var(--ease-premium);
}
.fab:hover { transform: translateY(-3px) scale(1.04); }
.fab::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(198, 172, 111, 0.5);
  animation: pulse-ring 2.6s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.8; }
  70% { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}
@media (min-width: 1024px) {
  .fab { right: 28px; bottom: 28px; width: 60px; height: 60px; }
}

/* Hero portrait placeholder gradient mode */
.portrait-placeholder {
  width: 100%; height: 100%;
  background:
    radial-gradient(120% 80% at 40% 25%, #F0D8AB 0%, #C9A87A 38%, #8E724B 100%);
}

/* Prevent hero callout from clipping on narrow screens */
@media (max-width: 639px) {
  .hero-callout {
    left: 0 !important;
    right: 0;
    margin: 0 auto;
    bottom: -20px !important;
  }
}

/* Treatment card footer row */
.tcard-foot {
  margin-top: auto;
  padding-top: 8px;
}

/* Image placeholder cards */
.img-placeholder {
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(135deg, #F0E4C7 0px, #F0E4C7 10px, #E8D8B0 10px, #E8D8B0 20px);
  display: flex;
  align-items: flex-end;
  padding: 12px;
  color: var(--ink-soft);
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.05em;
}

/* Avatar placeholder */
.avatar-ph { width: 100%; height: 100%; background: linear-gradient(135deg, #E5D2A0, #A98C4D); }

/* ===== 3D Premium System ===== */

/* Revelación 3D al scroll */
.reveal-3d {
  opacity: 0;
  transform: perspective(1000px) rotateX(-12deg) translateY(45px) scale(0.96);
  transform-origin: top center;
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1), transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}
.reveal-3d.in {
  opacity: 1;
  transform: perspective(1000px) rotateX(0deg) translateY(0) scale(1);
}

/* Interacción táctil de las perlas */
.pearl {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}
.pearl-tapped {
  animation: pearl-pop 0.75s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
}
@keyframes pearl-pop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.22) translate3d(-6px, -10px, 0); }
  100% { transform: scale(1); }
}

@media (hover: hover) {
  .pearl:hover {
    transform: scale(1.15) translate3d(8px, -8px, 0) !important;
    box-shadow:
      inset 0 -3px 8px rgba(74, 56, 30, 0.15),
      inset 4px 4px 8px rgba(255, 255, 255, 0.85),
      0 20px 35px -12px rgba(198, 172, 111, 0.45);
  }
}

/* Slider Antes/Después con soporte 3D */
.ba-viewer {
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}
