/* =============================================
   LAURA CAMELO ODONTOLOGÍA AVANZADA
   Premium Dental Clinic — Bogotá, Colombia
   ============================================= */

/* ---- Design Tokens ---- */
:root {
  --white:        #FFFFFF;
  --beige-xlight: #F8F6F3;
  --beige-light:  #F0EEEB;
  --beige:        #E1D8CE;
  --beige-dark:   #C8BDB3;
  --beige-deeper: #B0A398;

  --dark:         #1C1917;
  --dark-2:       #2C2825;
  --text:         #292420;
  --text-mid:     #5C5450;
  --text-muted:   #9B9290;
  --border:       #E8E4E0;
  --border-light: #F0EEEB;

  --gold:         #B8965A;
  --gold-light:   #D4AF7A;
  --success:      #2E7D4F;
  --whatsapp:     #25D366;

  --font-serif:   'Playfair Display', Georgia, serif;
  --font-sans:    'Urbanist', system-ui, -apple-system, sans-serif;

  --nav-h:        72px;
  --section-gap:  clamp(72px, 10vw, 128px);
  --container:    1200px;
  --radius-sm:    8px;
  --radius:       14px;
  --radius-lg:    24px;
  --radius-xl:    32px;

  --shadow-sm:    0 2px 8px rgba(28,25,23,.06);
  --shadow:       0 4px 24px rgba(28,25,23,.08);
  --shadow-lg:    0 12px 48px rgba(28,25,23,.12);
  --shadow-xl:    0 24px 72px rgba(28,25,23,.16);

  --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out:  cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:     180ms;
  --dur:          260ms;
  --dur-slow:     420ms;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { background: none; border: none; cursor: pointer; font: inherit; }
strong { font-weight: 600; }

:focus-visible {
  outline: 2px solid var(--beige-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--dark);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p { color: var(--text-mid); font-size: clamp(0.95rem, 1.5vw, 1.05rem); }

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}

.section-header h2 { margin-bottom: 1rem; }

.section-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--text-mid);
  line-height: 1.7;
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all var(--dur) var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.btn:focus-visible { outline: 2px solid var(--beige-dark); outline-offset: 3px; }

.btn-primary {
  background: var(--dark);
  color: var(--white);
  box-shadow: 0 2px 16px rgba(28,25,23,.18);
}
.btn-primary:hover {
  background: var(--dark-2);
  box-shadow: 0 6px 28px rgba(28,25,23,.24);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--beige-light);
  color: var(--dark);
}
.btn-secondary:hover {
  background: var(--beige);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 1.5px solid var(--beige-dark);
}
.btn-outline:hover {
  background: var(--beige-light);
  border-color: var(--beige);
  transform: translateY(-1px);
}

/* ---- Reveal Animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.75s var(--ease-out),
              transform 0.75s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 90ms; }
.reveal:nth-child(3) { transition-delay: 180ms; }
.reveal:nth-child(4) { transition-delay: 270ms; }
.reveal:nth-child(5) { transition-delay: 360ms; }
.reveal:nth-child(6) { transition-delay: 450ms; }

/* Image scale-in reveal */
.reveal-img {
  overflow: hidden;
}
.reveal-img > img {
  transform: scale(1.07);
  transition: transform 1.4s var(--ease-out);
}
.reveal-img.visible > img {
  transform: scale(1);
}

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.stagger > *:nth-child(1)  { transition-delay: 0ms; }
.stagger > *:nth-child(2)  { transition-delay: 80ms; }
.stagger > *:nth-child(3)  { transition-delay: 160ms; }
.stagger > *:nth-child(4)  { transition-delay: 240ms; }
.stagger > *:nth-child(5)  { transition-delay: 320ms; }
.stagger > *:nth-child(6)  { transition-delay: 400ms; }
.stagger > *:nth-child(7)  { transition-delay: 480ms; }
.stagger > *:nth-child(8)  { transition-delay: 560ms; }
.stagger.visible > * { opacity: 1; transform: translateY(0); }

/* Hero load animations */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroImgReveal {
  from { clip-path: inset(0 0 100% 0); }
  to   { clip-path: inset(0 0 0% 0); }
}

/* =============================================
   NAVIGATION
   ============================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}

#navbar.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
}

#navbar.hero-dark { background: transparent; }

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 36px; width: auto; transition: opacity var(--dur-fast); }

.logo-light { display: none; }
.logo-dark  { display: block; }

#navbar.hero-dark .logo-dark  { display: none; }
#navbar.hero-dark .logo-light { display: block; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 450;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.nav-link:hover { color: var(--dark); background: var(--beige-light); }

#navbar.hero-dark .nav-link { color: rgba(255,255,255,.85); }
#navbar.hero-dark .nav-link:hover { color: var(--white); background: rgba(255,255,255,.12); }

.nav-cta {
  margin-left: 0.5rem;
  padding: 0.55rem 1.25rem;
  background: var(--dark);
  color: var(--white) !important;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--dur) var(--ease-out);
}
.nav-cta:hover { background: var(--dark-2); transform: translateY(-1px); box-shadow: var(--shadow); }

#navbar.hero-dark .nav-cta {
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.3);
}
#navbar.hero-dark .nav-cta:hover { background: rgba(255,255,255,.28); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast);
}
.nav-toggle:hover { background: var(--beige-light); }
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--dur) var(--ease-out);
  transform-origin: center;
}
#navbar.hero-dark .nav-toggle span { background: var(--white); }

.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--white);
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero-content {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(3rem,8vw,6rem) clamp(1.25rem, 5vw, 2.5rem);
  display: grid;
  grid-template-columns: 54% 46%;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
  width: 100%;
}

.hero-text {
  max-width: 580px;
  animation: heroFadeUp 0.9s var(--ease-out) 0.1s both;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--beige-dark);
  flex-shrink: 0;
}

.hero-headline {
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  line-height: 1.05;
  color: var(--dark);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.hero-headline em {
  font-style: italic;
  font-weight: 400;
  color: #bd997c;
}

.hero-body {
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-image {
  position: relative;
  display: flex;
  justify-content: flex-end;
  animation: heroFadeUp 1s var(--ease-out) 0.3s both;
}

.hero-img-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  max-width: 500px;
  width: 100%;
  aspect-ratio: 500 / 660;
  animation: heroImgReveal 1.1s var(--ease-out) 0.15s both;
}

.hero-img-wrap img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: top center;
  display: block;
  will-change: transform;
}

.hero-badge {
  position: absolute;
  bottom: 1.75rem;
  left: -1.25rem;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.6rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  box-shadow: 0 8px 32px rgba(28,25,23,.14);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--dark);
  white-space: nowrap;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: heroFadeUp 0.8s var(--ease-out) 0.9s both;
  z-index: 2;
}

.hero-badge img { width: 22px; height: 22px; object-fit: contain; }

/* =============================================
   STATS BAR
   ============================================= */
.stats-bar {
  background: var(--beige-light);
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem clamp(1.5rem, 4vw, 3.5rem);
  gap: 0.5rem;
  position: relative;
}
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40%;
  background: var(--border);
}

.stat-value {
  display: flex;
  align-items: baseline;
  gap: 0.1rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--dark);
  line-height: 1;
}

.stat-suffix { font-size: 0.6em; color: var(--text-mid); }
.stat-text-value { font-family: var(--font-serif); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 600; color: var(--dark); }

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--beige-dark);
  opacity: 0.5;
}

/* =============================================
   ABOUT
   ============================================= */
.about {
  padding: var(--section-gap) 0;
  background: var(--white);
}

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

.about-image { position: relative; }

.about-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.about-img-wrap img {
  width: 100%;
  height: auto;
  aspect-ratio: 580/440;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}
.about-img-wrap:hover img { transform: scale(1.02); }

.about-img-accent {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 40%;
  height: 40%;
  background: var(--beige);
  border-radius: var(--radius);
  z-index: -1;
}

.about-text h2 { margin-bottom: 1.5rem; }
.about-text p + p { margin-top: 1rem; }
.about-text .btn { margin-top: 2rem; }

/* =============================================
   DOCTOR
   ============================================= */
.doctor {
  padding: var(--section-gap) 0;
  background: var(--beige-light);
}

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

.doctor-images {
  position: relative;
  display: grid;
  grid-template-columns: 3fr 1.5fr;
  grid-template-rows: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.doctor-img-main {
  grid-column: 1;
  grid-row: 1 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.doctor-img-main img {
  width: 100%;
  aspect-ratio: 460/580;
  object-fit: cover;
  object-position: top center;
  transition: transform 600ms var(--ease-out);
}
.doctor-img-main:hover img { transform: scale(1.02); }

.doctor-img-secondary {
  grid-column: 2;
  grid-row: 2;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  align-self: end;
  margin-bottom: 1rem;
}
.doctor-img-secondary img {
  width: 100%;
  aspect-ratio: 220/280;
  object-fit: cover;
  object-position: top center;
}

.doctor-text { padding-top: 1rem; }
.doctor-text h2 { margin-bottom: 0.75rem; }

.doctor-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-mid);
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.doctor-text p + p { margin-top: 1rem; }

.doctor-credentials {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem 1.75rem;
}
.doctor-credentials li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.45;
}
.doctor-credentials li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  margin-top: 0.42em;
}

.doctor-signature {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.doctor-signature img {
  height: 150px;
  width: auto;
  opacity: 0.85;
  -webkit-mask-image: linear-gradient(105deg, #000 45%, transparent 55%);
          mask-image: linear-gradient(105deg, #000 45%, transparent 55%);
  -webkit-mask-size: 250% 100%;
          mask-size: 250% 100%;
  animation: signatureWrite 11s ease-in-out infinite;
}

/* Escritura: la máscara barre izq→der revelando el trazo (0–2.6s),
   firma completa visible hasta los 10s y se desvanece antes de reiniciar */
@keyframes signatureWrite {
  0%    { -webkit-mask-position: 100% 0; mask-position: 100% 0; opacity: 0.85; }
  24%   { -webkit-mask-position: 0% 0;   mask-position: 0% 0;   opacity: 0.85; }
  91%   { -webkit-mask-position: 0% 0;   mask-position: 0% 0;   opacity: 0.85; }
  96.5% { -webkit-mask-position: 0% 0;   mask-position: 0% 0;   opacity: 0; }
  100%  { -webkit-mask-position: 100% 0; mask-position: 100% 0; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .doctor-signature img {
    animation: none;
    -webkit-mask-image: none;
            mask-image: none;
  }
}

/* =============================================
   TREATMENTS
   ============================================= */
.treatments {
  padding: var(--section-gap) 0;
  background: var(--white);
}

.treatments-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: start;
}

.treatments-list {
  display: flex;
  flex-direction: column;
}

.treatment-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.5rem;
  padding: 1.75rem 0.5rem 1.75rem 0;
  border-bottom: 1px solid var(--border);
  transition: background var(--dur-fast), padding var(--dur-fast);
  border-radius: var(--radius-sm);
}
.treatments-list .treatment-row:first-child { border-top: 1px solid var(--border); }
.treatment-row:hover {
  background: var(--beige-xlight);
  padding-left: 1rem;
  padding-right: 0.75rem;
}

.treatment-row-num {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--beige-dark);
  line-height: 1.5;
  padding-top: 0.2rem;
  transition: color var(--dur-fast);
  letter-spacing: 0.04em;
  user-select: none;
}
.treatment-row:hover .treatment-row-num { color: var(--dark); }

.treatment-row-body h3 {
  font-size: 1.12rem;
  color: var(--dark);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.treatment-row-tags {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.treatment-row-body > p:not(.treatment-row-tags) {
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.7;
}

.treatment-row-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--dark);
  margin-top: 0.875rem;
  transition: gap var(--dur-fast);
}
.treatment-row-link:hover { gap: 0.625rem; }
.treatment-row-link svg { transition: transform var(--dur-fast); flex-shrink: 0; }
.treatment-row-link:hover svg { transform: translateX(3px); }

.treatment-visual {
  border-radius: 10px;
  overflow: hidden;
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  aspect-ratio: 360/500;
}
.treatment-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}
.treatment-visual:hover img { transform: scale(1.03); }

.treatment-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,25,23,.88) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 2rem;
  text-align: center;
  gap: 1rem;
}
.treatment-visual-overlay p {
  color: rgba(255,255,255,.85);
  font-size: 0.95rem;
  font-weight: 500;
}

/* =============================================
   TECHNOLOGY
   ============================================= */
.technology {
  padding: var(--section-gap) 0;
  background: var(--beige-light);
}

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

.tech-text h2 { margin-bottom: 1.25rem; }
.tech-text > p { margin-bottom: 2.5rem; }

.tech-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tech-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.tech-item-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--beige);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.tech-item strong { display: block; font-size: 0.95rem; color: var(--dark); margin-bottom: 0.25rem; }
.tech-item p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; }

.tech-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.tech-image img {
  width: 100%;
  aspect-ratio: 500/640;
  object-fit: cover;
  object-position: top center;
  transition: transform 600ms var(--ease-out);
}
.tech-image:hover img { transform: scale(1.02); }

/* =============================================
   GALLERY — PER-PATIENT CAROUSEL RAIL
   ============================================= */
.gallery {
  padding: var(--section-gap) 0;
  background: var(--white);
}

.gallery .section-header h2 em {
  font-style: italic;
  font-weight: 400;
  color: #bd997c;
}

.gallery-track-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1rem 0 2rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
}
.gallery-track-wrapper::-webkit-scrollbar { display: none; }
.gallery-track-wrapper.is-grabbing { cursor: grabbing; }

.gallery-track {
  display: flex;
  gap: 1rem;
  padding: 0.5rem clamp(1.25rem, 5vw, 2.5rem) 0.5rem;
  width: max-content;
}

/* Each patient card */
.patient-card {
  position: relative;
  width: 290px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--dark);
  transition: transform var(--dur) var(--ease-out);
}
.patient-card:hover { transform: translateY(-4px); }

.pc-slides {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.pc-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.pc-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.pc-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out);
}
.patient-card:hover .pc-slide.active img { transform: scale(1.03); }

/* Nav arrows */
.pc-prev, .pc-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 34px; height: 34px;
  background: rgba(255,255,255,.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  opacity: 0;
  transition: opacity var(--dur-fast), background var(--dur-fast), transform var(--dur-fast);
  cursor: pointer;
  flex-shrink: 0;
}
.pc-prev { left: 0.625rem; }
.pc-next { right: 0.625rem; }
.patient-card:hover .pc-prev,
.patient-card:hover .pc-next { opacity: 1; }
.pc-prev:hover { background: var(--white); transform: translateY(-50%) scale(1.06); }
.pc-next:hover { background: var(--white); transform: translateY(-50%) scale(1.06); }
.patient-card[data-slides="1"] .pc-prev,
.patient-card[data-slides="1"] .pc-next { display: none; }

/* Footer overlay */
.pc-footer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2.5rem 0.875rem 0.75rem;
  background: linear-gradient(to top, rgba(28,25,23,.75) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  pointer-events: none;
}

.pc-label {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  letter-spacing: 0.1em;
  line-height: 1;
  flex-shrink: 0;
}

.pc-dots {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
  pointer-events: all;
  max-width: 70%;
}

.pc-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.pc-dot.active {
  background: var(--white);
  transform: scale(1.35);
}

.gallery-cta {
  text-align: center;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
  margin-top: 1rem;
}

/* =============================================
   PROCESS
   ============================================= */
.process {
  padding: var(--section-gap) 0;
  background: var(--beige-xlight);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all var(--dur) var(--ease-out);
}
.process-step:hover {
  border-color: var(--beige-dark);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.step-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--beige-dark);
  line-height: 1;
}

.step-content h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.step-content p { font-size: 0.875rem; line-height: 1.65; }

.process-cta { text-align: center; }

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials {
  padding: var(--section-gap) 0;
  background: var(--dark);
}

.testimonials .section-eyebrow { color: var(--beige-dark); }
.testimonials .section-header h2 { color: var(--white); }

.google-reviews-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,.55);
  letter-spacing: 0.06em;
  margin-top: 1rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
}
.testimonial-card              { grid-column: span 2; }
.testimonial-card:nth-child(4),
.testimonial-card:nth-child(5) { grid-column: span 3; }

.testimonial-card {
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 2rem 1.875rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.testimonial-card:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.2);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,.25);
}

/* Reviewer header */
.tc-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}
.tc-avatar {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--av, rgba(255,255,255,.12));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  letter-spacing: 0;
}
.tc-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.tc-meta cite {
  font-style: normal;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--white);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tc-meta span {
  font-size: 0.71rem;
  color: rgba(255,255,255,.38);
  letter-spacing: 0.03em;
}
.tc-stars {
  flex-shrink: 0;
  align-self: flex-start;
  color: #F59E0B;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

/* Quote decoration */
.testimonial-card blockquote::before {
  display: block;
  content: '\201C';
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 0.65;
  color: rgba(255,255,255,.07);
  margin-bottom: 0.4rem;
  font-weight: 700;
}
.testimonial-card blockquote p {
  font-size: 0.9rem;
  line-height: 1.78;
  color: rgba(255,255,255,.7);
  font-style: normal;
}

/* =============================================
   FAQ
   ============================================= */
.faq {
  padding: var(--section-gap) 0;
  background: var(--white);
}

.faq-wrap { max-width: 780px; margin: 0 auto; }
.faq .section-header { max-width: 100%; text-align: left; margin-bottom: 3rem; }
.faq .section-header h2 { text-align: left; }
.faq .section-subtitle { text-align: left; }

.faq-list { display: flex; flex-direction: column; gap: 0; }

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.975rem;
  font-weight: 500;
  color: var(--dark);
  transition: color var(--dur-fast);
}
.faq-question:hover { color: var(--text-mid); }
.faq-question[aria-expanded="true"] { color: var(--dark); }

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--dur) var(--ease-out);
}
.faq-question[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--dur-slow) var(--ease-out);
}
.faq-answer.open { max-height: 400px; }
.faq-answer p {
  padding-bottom: 1.5rem;
  font-size: 0.925rem;
  line-height: 1.75;
  color: var(--text-mid);
}

/* =============================================
   LOCATION
   ============================================= */
.location {
  padding: var(--section-gap) 0;
  background: var(--beige-light);
}

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

.location-contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.location-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.location-contact-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: var(--beige);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
}

.location-contact-item strong {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.location-contact-item p,
.location-contact-item a {
  font-size: 0.925rem;
  color: var(--text);
  transition: color var(--dur-fast);
}
.location-contact-item a:hover { color: var(--dark); text-decoration: underline; }

.location-nav-btns {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.location-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.location-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 480/280;
  object-fit: cover;
}

.location-map iframe {
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--dark);
  padding: clamp(3.5rem, 6vw, 5rem) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-logo {
  height: 32px;
  width: auto;
  margin-bottom: 1.25rem;
  opacity: 0.9;
}

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,.5);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 1.75rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}
.footer-social a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.65);
  transition: all var(--dur-fast);
}
.footer-social a:hover {
  background: rgba(255,255,255,.14);
  color: var(--white);
  border-color: rgba(255,255,255,.25);
  transform: translateY(-2px);
}

.footer-links h3 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 1.25rem;
}
.footer-links ul { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,.55);
  transition: color var(--dur-fast);
}
.footer-links a:hover { color: var(--white); }

.footer-contact h3 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 0.75rem;
}
.footer-contact > p {
  font-size: 0.85rem;
  color: rgba(255,255,255,.45);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.footer-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1.25rem;
  background: var(--whatsapp);
  color: var(--white);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
  transition: all var(--dur) var(--ease-out);
}
.footer-wa-btn:hover { background: #1eb855; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,211,102,.3); }

.footer-email-link {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,.45);
  transition: color var(--dur-fast);
  margin-bottom: 0.5rem;
}
.footer-email-link:hover { color: rgba(255,255,255,.8); }

.footer-bottom {
  padding: 1.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,.25);
}
.footer-seo-tags a {
  font-size: 0.78rem;
  color: rgba(255,255,255,.2);
  transition: color var(--dur-fast);
}
.footer-seo-tags a:hover { color: rgba(255,255,255,.45); }

/* =============================================
   WHATSAPP FLOATING BUTTON
   ============================================= */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 60px; height: 60px;
  background: var(--whatsapp);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.4);
  transition: all var(--dur) var(--ease-out);
}
.whatsapp-float:hover {
  background: #1eb855;
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 10px 32px rgba(37,211,102,.5);
}

.whatsapp-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--whatsapp);
  animation: waPulse 2.5s ease-out infinite;
}

@keyframes waPulse {
  0%   { transform: scale(1); opacity: 0.6; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* =============================================
   CURSOR SMOKE — estela de humo beige
   ============================================= */
.smoke-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 900;              /* sobre el contenido, bajo navbar (1000) y WhatsApp (999) */
  pointer-events: none;
  mix-blend-mode: multiply;  /* solo oscurece: beige sobre blanco, invisible sobre oscuro */
}
@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .smoke-canvas { display: none; }
}

/* =============================================
   SCROLL PROGRESS BAR
   ============================================= */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2.5px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  z-index: 1200;
  pointer-events: none;
}

/* =============================================
   BRANDS MARQUEE — cenefa de marcas
   ============================================= */
.brands {
  background: var(--beige);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.6rem 0 1.9rem;
  overflow: hidden;
}
.brands-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1.4rem;
}
.brands-marquee {
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.brands-track {
  display: flex;
  width: max-content;
  animation: brandsMarquee 36s linear infinite;
  will-change: transform;
}
.brands:hover .brands-track { animation-play-state: paused; }
.brands-set {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.brands-set li {
  display: flex;
  align-items: center;
  margin-right: clamp(3.5rem, 7vw, 6rem);
}
.brands-set img {
  height: 38px;
  width: auto;
  display: block;
}
/* Alturas por logo — igualan el peso visual entre lockups
   horizontales (Ivoclar, VALO) y apilados (Medit, Tokuyama) */
.brands-set li:nth-child(1) img { height: 38px; }  /* 3M */
.brands-set li:nth-child(2) img { height: 33px; }  /* Ivoclar — wordmark ancho */
.brands-set li:nth-child(3) img { height: 46px; }  /* BISCO */
.brands-set li:nth-child(4) img { height: 68px; }  /* Medit — lockup apilado */
.brands-set li:nth-child(5) img { height: 76px; }  /* Tokuyama — lockup vertical */
.brands-set li:nth-child(6) img { height: 36px; }  /* VALO X — wordmark ancho */
.brands-set li:nth-child(7) img { height: 48px; }  /* Curaprox — caja azul densa */
/* VALO X: letras blancas — sombra sutil para definirlas sobre el beige */
.brands-set li:nth-child(6) img { filter: drop-shadow(0 1px 2px rgba(28,25,23,.3)); }

@keyframes brandsMarquee {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .brands-track { animation: none; }
}

/* =============================================
   SCROLL PARALLAX IMAGES
   ============================================= */
[data-parallax] { overflow: hidden; }
[data-parallax] img {
  will-change: transform;
  transition: none !important;
}

/* =============================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================= */
@media (max-width: 1024px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem clamp(1.25rem, 5vw, 2.5rem) 2rem;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: all var(--dur) var(--ease-out);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-link {
    padding: 0.875rem 1rem;
    font-size: 1rem;
    color: var(--dark) !important;
  }

  .nav-cta {
    margin: 0.5rem 0 0;
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    color: var(--white) !important;
    background: var(--dark) !important;
  }

  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-text { max-width: 100%; }
  .hero-body { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-image { justify-content: center; }
  .hero-img-wrap { max-width: 420px; }
  .hero-badge { left: 50%; transform: translateX(-50%); bottom: -1.5rem; }

  .about-grid { grid-template-columns: 1fr; }
  .about-text { order: -1; }
  .about-img-accent { display: none; }

  .doctor-grid { grid-template-columns: 1fr; }
  .doctor-images { max-width: 480px; margin: 0 auto; }

  .treatments-layout { grid-template-columns: 1fr; }
  .treatment-visual {
    position: relative;
    top: auto;
    aspect-ratio: 3/2;
    order: -1;
    max-width: 480px;
    margin: 0 auto;
  }

  .tech-grid { grid-template-columns: 1fr; }
  .tech-image { max-width: 480px; margin: 0 auto; }

  .process-grid { grid-template-columns: repeat(2, 1fr); }

  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-card,
  .testimonial-card:nth-child(4),
  .testimonial-card:nth-child(5) { grid-column: span 1; }

  .location-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

/* =============================================
   RESPONSIVE — MOBILE (≤640px)
   ============================================= */
@media (max-width: 640px) {
  :root {
    --section-gap: clamp(52px, 12vw, 72px);
    --nav-h: 60px;
  }

  /* --- Global typography scale for mobile --- */
  h2 { font-size: clamp(1.75rem, 7.5vw, 2.2rem); line-height: 1.2; }
  h3 { font-size: clamp(1.05rem, 4.5vw, 1.3rem); }
  p  { font-size: clamp(0.9375rem, 3.8vw, 1rem); }

  /* --- Container horizontal padding --- */
  .container { padding-left: 1.25rem; padding-right: 1.25rem; }

  /* === HERO === */
  .hero-content {
    padding: 2.5rem 1.25rem 3.5rem;
    gap: 2rem;
  }
  .hero-headline {
    font-size: clamp(2rem, 8.5vw, 2.8rem);
    line-height: 1.15;
  }
  .hero-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
  }
  .hero-body {
    font-size: clamp(0.9375rem, 3.8vw, 1rem);
    line-height: 1.75;
    margin-top: 0.75rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-top: 1.5rem;
  }
  .hero-actions .btn {
    justify-content: center;
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: 0.9rem;
    min-height: 52px;
  }
  .hero-img-wrap {
    max-width: 100%;
    aspect-ratio: 4 / 5;
  }
  .hero-badge { display: none; }

  /* === STATS BAR === */
  .stats-grid {
    gap: 0;
    flex-direction: column;
  }
  .stat-divider {
    width: 40px;
    height: 1px;
    margin: 0 auto;
  }
  .stat-item { padding: 1.5rem 1.5rem; }
  .stat-number { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .stat-text-value { font-size: clamp(1.3rem, 5.5vw, 1.8rem); }
  .stat-label { font-size: 0.78rem; }

  /* === ABOUT === */
  .about-grid { gap: 2rem; }
  .about-img-wrap { aspect-ratio: 4/3; }
  .about-text p { margin-bottom: 0.75rem; }

  /* === DOCTOR === */
  .doctor-grid { gap: 2rem; }
  .doctor-images { max-width: 100%; }
  .doctor-text { text-align: center; }
  .doctor-signature { justify-content: center; }
  .doctor-credentials { grid-template-columns: 1fr; }
  .doctor-cred { font-size: 0.82rem; padding: 0.6rem 1rem; }

  /* === TREATMENTS === */
  .treatment-visual { aspect-ratio: 4/3; }
  .treatment-row {
    gap: 0.75rem;
    padding: 1.25rem 0;
  }
  .treatment-row-num {
    font-size: 0.7rem;
    min-width: 32px;
  }
  .treatment-row-body h3 { font-size: clamp(1rem, 4.5vw, 1.2rem); }
  .treatment-row-tags { font-size: 0.78rem; }
  .treatment-row-link { font-size: 0.78rem; }

  /* === GALLERY === */
  .gallery .section-header { margin-bottom: 1.5rem; }
  .patient-card { width: 270px; }
  .pc-img-wrap { aspect-ratio: 3/4; }

  /* === PROCESS === */
  .process-grid { grid-template-columns: 1fr; gap: 1rem; }
  .process-step {
    display: grid;
    grid-template-columns: 48px 1fr;
    align-items: start;
    gap: 1rem;
    padding: 1.25rem 1rem;
  }
  .step-number {
    font-size: 1.4rem;
    padding-top: 0.1rem;
    line-height: 1;
  }
  .step-content { text-align: left; }
  .step-content h3 { font-size: clamp(0.95rem, 4vw, 1.1rem); margin-bottom: 0.3rem; }
  .step-content p { font-size: 0.85rem; }

  /* === TESTIMONIALS === */
  .testimonials-grid { grid-template-columns: 1fr; gap: 1rem; }
  .testimonial-card {
    padding: 1.5rem 1.25rem;
  }
  .testimonial-text { font-size: 0.9rem; line-height: 1.65; }
  .testimonial-name { font-size: 0.9rem; }

  /* === FAQ === */
  .faq-question {
    font-size: 0.92rem;
    padding: 1rem 1.25rem;
    min-height: 56px;
    text-align: left;
    line-height: 1.4;
  }
  .faq-answer p { font-size: 0.88rem; line-height: 1.7; }

  /* === LOCATION === */
  .location-grid { gap: 2rem; }
  .location-nav-btns { flex-direction: column; gap: 0.75rem; }
  .location-nav-btn {
    width: 100%;
    justify-content: center;
    min-height: 52px;
    font-size: 0.88rem;
  }
  .location-contact-item { font-size: 0.88rem; }

  /* === FOOTER === */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-brand { grid-column: 1; }
  .footer-logo img { height: 32px; }
  .footer-brand p { font-size: 0.82rem; }
  .footer-seo-tags { gap: 0.4rem; }
  .footer-seo-tags a { font-size: 0.72rem; padding: 0.25rem 0.6rem; }

  /* === WHATSAPP === */
  .whatsapp-float {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 52px;
    height: 52px;
  }

  /* === BRANDS MARQUEE === */
  .brands { padding: 1.25rem 0 1.5rem; }
  .brands-label { font-size: 0.62rem; margin-bottom: 1rem; }
  .brands-set li { margin-right: 2.25rem; }
  .brands-set img { height: 30px; }
  .brands-set li:nth-child(1) img { height: 28px; }  /* 3M */
  .brands-set li:nth-child(2) img { height: 24px; }  /* Ivoclar */
  .brands-set li:nth-child(3) img { height: 34px; }  /* BISCO */
  .brands-set li:nth-child(4) img { height: 50px; }  /* Medit */
  .brands-set li:nth-child(5) img { height: 55px; }  /* Tokuyama */
  .brands-set li:nth-child(6) img { height: 26px; }  /* VALO X */
  .brands-set li:nth-child(7) img { height: 36px; }  /* Curaprox */
  .brands-track { animation-duration: 26s; }
}

/* =============================================
   RESPONSIVE — SMALL PHONES (≤390px)
   ============================================= */
@media (max-width: 390px) {
  h2 { font-size: clamp(1.6rem, 7.5vw, 2rem); }

  .hero-headline { font-size: clamp(1.85rem, 8vw, 2.4rem); }
  .hero-content  { padding: 2rem 1rem 3rem; }

  .container { padding-left: 1rem; padding-right: 1rem; }

  .hero-actions .btn { padding: 0.85rem 1.25rem; font-size: 0.875rem; }

  .stat-number { font-size: clamp(1.6rem, 7.5vw, 2.2rem); }

  .patient-card { width: 250px; }

  .process-step { padding: 1rem 0.75rem; gap: 0.75rem; }
  .step-number { font-size: 1.2rem; }

  .faq-question { font-size: 0.875rem; }
}

/* =============================================
   PRINT
   ============================================= */
@media print {
  #navbar, .whatsapp-float, .footer-social { display: none; }
  body { color: #000; }
  .hero { min-height: auto; }
}


/* =============================================
   HERO — parallax will-change & warm gradient
   ============================================= */
.hero-text { will-change: transform, opacity; }
.hero {
  background: linear-gradient(155deg, var(--white) 30%, var(--beige-xlight) 100%);
}

/* =============================================
   GOLD ACCENT SYSTEM
   ============================================= */

/* Section eyebrows throughout the page */
.section-eyebrow               { color: var(--gold); }
.testimonials .section-eyebrow { color: var(--gold-light); }

/* Hero decorative line */
.hero-eyebrow::before { background: var(--gold); }

/* Treatment list numbers */
.treatment-row-num { color: var(--gold); }

/* About image accent corner */
.about-img-accent {
  background: var(--gold-light);
  opacity: 0.28;
}

/* Outline button gold tint */
.btn-outline         { border-color: rgba(184,150,90,.38); }
.btn-outline:hover   { border-color: var(--gold-light); background: rgba(212,175,122,.06); }

/* Hero badge gold ring */
.hero-badge { border-color: rgba(184,150,90,.2); }

/* Italic headings warm tone */
h1 em, h2 em, h3 em { color: #bd997c; font-style: italic; }
