:root {
  --ivory: #f7f2ea;
  --sand: #eadfd2;
  --nude: #d5c0ab;
  --paper: #fffdf9;
  --ink: #251d19;
  --ink-soft: #574a43;
  --espresso: #251d19;
  --espresso-2: #322620;
  --bronze: #835729;
  --gold: #d2a66c;
  --line: rgba(72, 53, 42, 0.14);
  --white-line: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 70px rgba(58, 41, 31, 0.1);
  --radius: 22px;
  color-scheme: light;
  --muted: #6f6056;
  --header-bg: rgba(247, 242, 234, 0.98);
  --treatment-bg: #faf6f0;
  --portrait-bg: #d8c1aa;
  --portrait-mark: rgba(98, 68, 44, 0.08);
  --portrait-label: rgba(255, 253, 249, 0.97);
  --photo-bg: #c7a27d;
  --team-photo-bg: #b99879;
  --panel-bg: rgba(255, 253, 249, 0.5);
  --gallery-bg: #ede5da;
  --contact-bg: #2c221d;
  --footer-bg: #1f1815;
  --section-ink: #fff8ef;
  --section-muted: #cbb9ac;
  --button-bg: #90602f;
  --button-hover: #775025;
  --button-ink: #fffdf9;
  --focus: #90602f;
  --whatsapp: #24764f;
  --whatsapp-hover: #1b603e;
  --font: "Outfit", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* The menu is a disclosure; opening it never shifts the page scrollbar. */

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--espresso);
  color: white;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled {
  border-color: var(--line);
  background: var(--header-bg);
  box-shadow: 0 10px 32px rgba(50, 35, 27, 0.06);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid var(--bronze);
  border-radius: 50%;
  color: var(--bronze);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--bronze);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.menu-toggle {
  display: grid;
  width: 46px;
  height: 46px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  place-content: center;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.main-nav {
  position: fixed;
  inset: 76px 0 auto;
  display: flex;
  max-height: min(440px, calc(100svh - 76px));
  overflow-y: auto;
  flex-direction: column;
  background: var(--ivory);
  padding: 16px 20px 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.main-nav.open {
  pointer-events: auto;
  border-bottom: 1px solid var(--line);
  opacity: 1;
}

.main-nav a {
  padding: 12px 4px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.main-nav .nav-cta {
  margin-top: 8px;
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-ink);
  text-align: center;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding: 116px 0 70px;
  background: var(--ivory);
}

.hero::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 32%;
  height: 100%;
  background: var(--sand);
  content: "";
  opacity: 0.48;
}

.hero-glow {
  position: absolute;
  top: 18%;
  left: -130px;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  background: var(--nude);
  filter: blur(95px);
  opacity: 0.28;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: center;
  gap: 54px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--bronze);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow > span {
  display: block;
  width: 38px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  max-width: 700px;
  margin-bottom: 24px;
  font-size: clamp(2.75rem, 10vw, 5.7rem);
  font-weight: 500;
  letter-spacing: -0.055em;
}

.hero h1 em {
  display: block;
  color: var(--bronze);
  font-style: normal;
  font-weight: 300;
}

.hero-copy > p {
  max-width: 560px;
  margin-bottom: 32px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: box-shadow 160ms ease, background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button svg {
  width: 18px;
  height: 18px;
}



.button-primary {
  background: var(--button-bg);
  box-shadow: 0 13px 30px rgba(146, 101, 51, 0.18);
  color: var(--button-ink);
}



.text-link {
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
}

.trust-row {
  display: grid;
  margin-top: 44px;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.trust-row div {
  display: flex;
  padding: 18px 10px 0 0;
  flex-direction: column;
}

.trust-row strong {
  font-size: 0.82rem;
  font-weight: 600;
}

.trust-row span {
  color: var(--muted);
  font-size: 0.72rem;
}

.hero-portrait {
  position: relative;
  width: min(100%, 480px);
  aspect-ratio: 1086 / 1448;
  margin-inline: auto;
  align-self: end;
}

.hero-portrait::before {
  position: absolute;
  right: -15%;
  bottom: 0;
  left: 3%;
  height: 76%;
  border-radius: 48% 48% 6px 6px;
  background: var(--portrait-bg);
  content: "";
}

.hero-portrait img {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
}

.portrait-ring {
  position: absolute;
  z-index: 1;
  top: 8%;
  right: -11%;
  width: 80%;
  aspect-ratio: 1;
  border: 1px solid var(--bronze);
  border-radius: 50%;
}

.portrait-monogram {
  position: absolute;
  z-index: 1;
  top: -14%;
  right: -5%;
  color: var(--portrait-mark);
  font-size: 19rem;
  font-weight: 300;
  line-height: 1;
}

.portrait-label {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 25px;
  display: flex;
  min-width: 190px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--portrait-label);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  flex-direction: column;
}

.portrait-label span {
  color: var(--bronze);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portrait-label strong {
  margin-top: 2px;
  font-size: 0.98rem;
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  bottom: 25px;
  left: 50%;
  display: none;
  align-items: center;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue svg {
  width: 16px;
}

.section {
  padding: 92px 0;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 42px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading.centered .eyebrow {
  justify-content: center;
}

.section-heading h2 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 7vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.treatments {
  background: var(--paper);
}

.treatment-grid {
  display: grid;
  gap: 14px;
}

.treatment-card {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--treatment-bg);
  transition: box-shadow 160ms ease, border-color 160ms ease;
}



.treatment-card::after {
  position: absolute;
  right: -45px;
  bottom: -55px;
  width: 135px;
  height: 135px;
  border: 1px solid rgba(183, 131, 72, 0.25);
  border-radius: 50%;
  content: "";
}

.icon-wrap {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 48px;
  border: 1px solid rgba(183, 131, 72, 0.36);
  border-radius: 50%;
  color: var(--bronze);
  place-items: center;
}

.icon-wrap svg {
  width: 22px;
}

.card-number {
  position: absolute;
  top: 28px;
  right: 28px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.treatment-card h3 {
  max-width: 270px;
  margin-bottom: 12px;
  font-size: 1.22rem;
  font-weight: 500;
}

.treatment-card p {
  max-width: 310px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.specialists {
  position: relative;
  overflow: hidden;
  background: var(--espresso);
  color: var(--section-ink);
}

.specialists::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 46px 46px;
  content: "";
  pointer-events: none;
}

.specialists-orbit {
  position: absolute;
  top: 70px;
  right: -190px;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(210, 166, 108, 0.13);
  border-radius: 50%;
}

.specialists-orbit::after {
  position: absolute;
  inset: 68px;
  border: 1px solid rgba(210, 166, 108, 0.1);
  border-radius: 50%;
  content: "";
}

.specialists .container {
  position: relative;
  z-index: 2;
}

.eyebrow.light {
  color: var(--gold);
}

.specialists-heading p {
  color: var(--section-muted);
}

.director-card {
  display: grid;
  overflow: hidden;
  margin-bottom: 52px;
  border: 1px solid var(--white-line);
  border-radius: 30px;
  background: var(--espresso-2);
}

.director-image {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  background: var(--photo-bg);
}

.director-image::after {
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  content: "";
}

.director-image img {
  position: absolute;
  z-index: 2;
  right: 50%;
  bottom: 0;
  height: 96%;
  width: auto;
  max-width: none;
  object-fit: contain;
  transform: translateX(50%);
}

.image-halo {
  position: absolute;
  top: 16%;
  left: 50%;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  transform: translateX(-50%);
}

.director-copy {
  padding: 34px 28px 38px;
}

.gold-label {
  color: var(--bronze);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.director-copy h3 {
  margin: 9px 0 6px;
  font-size: clamp(2.1rem, 7vw, 4.2rem);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.director-role {
  margin-bottom: 0;
  color: var(--section-muted);
}

.gold-rule {
  width: 56px;
  height: 1px;
  margin: 24px 0;
  background: var(--gold);
}

.director-copy > p:not(.director-role) {
  max-width: 530px;
  margin-bottom: 28px;
  color: var(--section-muted);
}

.button-outline {
  border-color: rgba(210, 166, 108, 0.6);
  color: var(--gold);
}



.team-grid {
  display: grid;
  gap: 16px;
}

.team-card {
  overflow: hidden;
  border: 1px solid var(--white-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
  transition: box-shadow 160ms ease, border-color 160ms ease;
}



.team-photo {
  position: relative;
  height: 330px;
  overflow: hidden;
  background: var(--team-photo-bg);
}

.team-photo::before {
  position: absolute;
  top: 38px;
  left: 50%;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  content: "";
  transform: translateX(-50%);
}

.team-photo img {
  position: absolute;
  z-index: 2;
  right: 50%;
  bottom: 0;
  width: auto;
  max-width: none;
  height: 95%;
  object-fit: contain;
  transform: translateX(50%);
}

.team-copy {
  min-height: 128px;
  padding: 22px;
}

.team-copy h3 {
  margin-bottom: 9px;
  font-size: 1.2rem;
  font-weight: 500;
}

.team-copy p {
  margin-bottom: 0;
  color: var(--section-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.differentials {
  background: var(--sand);
}

.differential-grid {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel-bg);
}

.differential-item {
  display: grid;
  padding: 28px;
  grid-template-columns: 54px 1fr;
  gap: 18px;
}

.differential-item + .differential-item {
  border-top: 1px solid var(--line);
}

.diff-icon {
  display: grid;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--espresso);
  color: var(--gold);
  place-items: center;
}

.diff-icon svg {
  width: 22px;
}

.differential-item h3 {
  margin: 2px 0 8px;
  font-size: 1.1rem;
  font-weight: 600;
}

.differential-item p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.contact {
  padding: 92px 0;
  background: var(--contact-bg);
  color: white;
}

.contact-grid {
  display: grid;
  gap: 44px;
}

.contact-copy h2 {
  margin-bottom: 22px;
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.05em;
}

.contact-copy > p:not(.service-area) {
  max-width: 530px;
  color: var(--section-muted);
}

.contact address {
  display: flex;
  margin: 34px 0 8px;
  align-items: center;
  gap: 16px;
  font-style: normal;
}

.address-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border: 1px solid rgba(210, 166, 108, 0.45);
  border-radius: 50%;
  color: var(--gold);
  place-items: center;
}

.address-icon svg {
  width: 20px;
}

.contact address div:last-child {
  display: flex;
  flex-direction: column;
}

.contact address strong {
  font-weight: 500;
}

.contact address span,
.service-area {
  color: var(--section-muted);
  font-size: 0.88rem;
}

.service-area {
  margin: 0 0 26px 64px;
}

.contact-button svg {
  width: 19px;
}

.map-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}

.map-card iframe {
  display: block;
  width: 100%;
  min-height: 410px;
  border: 0;
  filter: saturate(0.55) sepia(0.12);
}

.map-link {
  display: flex;
  min-height: 58px;
  padding: 12px 20px;
  align-items: center;
  justify-content: space-between;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.map-link svg {
  width: 18px;
  color: var(--bronze);
}

.site-footer {
  padding: 62px 0 20px;
  background: var(--footer-bg);
  color: white;
}

.footer-grid {
  display: grid;
  gap: 38px;
}

.footer-brand .brand-mark {
  color: var(--gold);
}

.footer-brand .brand-copy small {
  color: var(--gold);
}

.footer-grid > div:first-child > p {
  max-width: 370px;
  margin: 18px 0 0;
  color: var(--section-muted);
  font-size: 0.9rem;
}

.footer-links,
.footer-social {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
}

.footer-links strong,
.footer-social strong {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-links a {
  color: var(--section-muted);
  font-size: 0.9rem;
}



.social-row {
  display: flex;
  gap: 10px;
}

.social-row a {
  display: grid;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: var(--gold);
  place-items: center;
  transition: background 180ms ease, color 180ms ease;
}



.social-row svg {
  width: 18px;
}

.footer-bottom {
  display: flex;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--section-muted);
  flex-direction: column;
  gap: 5px;
  font-size: 0.75rem;
}

.whatsapp-float {
  position: fixed;
  z-index: 80;
  right: 18px;
  bottom: 18px;
  display: flex;
  min-height: 54px;
  padding: 0 20px;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: var(--whatsapp);
  box-shadow: 0 14px 34px rgba(22, 74, 49, 0.34);
  color: white;
  font-size: 0.88rem;
  font-weight: 600;
  transition: box-shadow 160ms ease, background-color 160ms ease;
}



.whatsapp-float svg {
  width: 21px;
}

.reveal {
  opacity: 1;
  transform: none;

}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 620px) {
  .container {
    width: min(1160px, calc(100% - 64px));
  }

  .treatment-grid,
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }



  .team-photo {
    height: 370px;
  }

  .footer-grid {
    grid-template-columns: 1.6fr 0.7fr 0.7fr;
  }

  .footer-bottom {
    justify-content: space-between;
    flex-direction: row;
  }
}

@media (min-width: 1100px) {
  .header-inner {
    min-height: 88px;
  }

  .menu-toggle {
    display: none;
  }

  .main-nav {
    position: static;
    display: flex;
    max-height: none;
    overflow: visible;
    padding: 0;
    align-items: center;
    flex-direction: row;
    background: transparent;
    gap: 4px;
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav a {
    padding: 10px 12px;
  }

  .main-nav .nav-cta {
    margin: 0 0 0 8px;
    padding: 11px 18px;
  }

  .hero {
    padding: 118px 0 50px;
  }

  .hero::before {
    width: 38%;
  }

  .hero-grid {
    min-height: calc(100svh - 168px);
    grid-template-columns: 1.05fr 0.95fr;
    gap: 30px;
  }

  .hero h1 {
    font-size: clamp(4.2rem, 6.2vw, 5.85rem);
  }

  .hero-portrait {
    width: 100%;
    max-width: 560px;
    margin: 0;
  }



  .portrait-label {
    right: 0;
    bottom: 40px;
  }

  .scroll-cue {
    display: flex;
  }

  .section {
    padding: 124px 0;
  }

  .section-heading {
    margin-bottom: 58px;
  }

  .treatment-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .director-card {
    min-height: 540px;
    grid-template-columns: 0.9fr 1.1fr;
  }

  .director-image {
    min-height: 540px;
  }

  .director-copy {
    display: flex;
    padding: 60px 62px;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
  }

  .team-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .team-photo {
    height: 300px;
  }

  .differential-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .differential-item {
    min-height: 190px;
    padding: 32px;
  }

  .differential-item + .differential-item {
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .contact {
    padding: 120px 0;
  }

  .contact-grid {
    align-items: center;
    grid-template-columns: 0.86fr 1.14fr;
    gap: 76px;
  }
}

@media (min-width: 1180px) {
  .team-photo {
    height: 340px;
  }
}

@media (max-width: 430px) {
  .brand-copy strong {
    font-size: 0.82rem;
  }

  .brand-copy small {
    font-size: 0.55rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .trust-row span {
    font-size: 0.65rem;
  }

  .service-area {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* Expanded pages share the original palette, typography and components. */
[hidden] { display: none !important; }
.main-nav:not(.open) { visibility: hidden; }
.main-nav.open { visibility: visible; }
.team-card { display: block; }
.profile-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; color: var(--gold); font-size: .9rem; }

.footer-phone { color: var(--gold); font-size: .9rem; }
.footer-bottom { padding-bottom: 65px; }
.results { background: var(--paper); }
.cases-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.case-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ivory); }
.case-heading h3 { margin: 8px 0 22px; font-weight: 500; font-size: 1.45rem; line-height: 1.25; }
.case-comparison-layout { display: grid; gap: 28px; }
.case-comparison-layout > div { min-width: 0; }
.comparison { position: relative; aspect-ratio: 540 / 1050; max-width: 430px; margin-inline: auto; overflow: hidden; border-radius: 14px; background: var(--espresso); }
.comparison-photo { position: absolute; inset: 0; background-image: url('assets/casos/caso-2-5.jpg'); background-size: 200% auto; background-repeat: no-repeat; }
.comparison-before { background-position: left bottom; clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.comparison-after { background-position: right bottom; }
.comparison-divider { position: absolute; left: var(--split); top: 0; bottom: 0; width: 2px; background: white; transform: translateX(-50%); pointer-events: none; }
.comparison-handle { position: absolute; z-index: 2; top: 50%; left: clamp(30px, var(--split), calc(100% - 30px)); display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--bronze); border-radius: 50%; background: var(--paper); color: var(--ink); box-shadow: 0 2px 12px rgba(0, 0, 0, .25); transform: translate(-50%, -50%); font-size: 1.3rem; line-height: 1; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }
.comparison-handle > span { pointer-events: none; }
.comparison-handle:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.comparison-handle:active { border-color: var(--ink); }
.comparison-label { position: absolute; top: 14px; padding: 4px 12px; border-radius: 99px; background: rgba(37,29,25,.85); color: white; font-size: .875rem; pointer-events: none; }
.label-before { left: 12px; }
.label-after { right: 12px; }
.comparison-control { display: block; margin-top: 14px; text-align: center; font-size: 1rem; font-weight: 500; }
.comparison-range { display: block; width: 100%; height: 44px; margin: 0; accent-color: var(--bronze); cursor: auto; }
.case-note, .results-disclaimer { font-size: .9rem; color: var(--ink-soft); line-height: 1.55; }
.case-note { margin: 8px 0 0; }
.results-disclaimer { max-width: 810px; margin: 32px auto 0; text-align: center; }
.gallery-caption { color: var(--ink-soft); font-size: .95rem; }
.gallery-track { display: flex; width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; border-radius: 14px; background: var(--gallery-bg); scrollbar-width: thin; scrollbar-color: var(--bronze) transparent; }
.gallery-slide { flex: 0 0 100%; min-width: 0; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.gallery-slide img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: contain; }
.gallery-slide figcaption { padding: 8px 12px; color: var(--ink-soft); text-align: center; font-size: .875rem; }
.gallery-controls { display: flex; gap: 18px; align-items: center; justify-content: center; margin-top: 14px; }
.gallery-controls button { min-width: 46px; min-height: 46px; border: 1px solid var(--bronze); border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 1.1rem; cursor: pointer; }
.gallery-controls button:disabled { opacity: .35; cursor: default; }
.gallery-status { font-size: .9rem; color: var(--ink-soft); min-width: 42px; text-align: center; }
.profile-page .site-header { background: var(--header-bg); border-color: var(--line); }
.profile-hero { padding: 110px 0 70px; background: var(--ivory); }
.breadcrumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; color: var(--ink-soft); font-size: .9rem; }

.profile-grid { display: grid; gap: 36px; align-items: center; }
.profile-portrait { position: relative; height: 430px; overflow: hidden; background: var(--photo-bg); border-radius: 160px 160px 24px 24px; }
.profile-portrait img { position: absolute; bottom: 0; width: 100%; height: 96%; object-fit: contain; object-position: center bottom; }
.profile-intro h1 { font-weight: 400; font-size: clamp(2.7rem, 7vw, 4.8rem); letter-spacing: -.05em; }
.profile-intro h2 { font-size: 1.25rem; font-weight: 500; }
.profile-intro > p { color: var(--ink-soft); }
.profile-specialty { font-size: 1.15rem; }
.profile-contact-note { font-size: .875rem; margin: 16px 0 0; }
.profile-intro .button { text-align: center; }
.profile-treatments { background: var(--paper); }
.profile-treatment-list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.profile-treatment-list li { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ivory); }
.profile-treatment-list h3 { margin: 18px 0 0; font-size: 1.3rem; font-weight: 500; line-height: 1.3; }
.profile-contact { background: var(--espresso); color: white; padding-block: 64px; }
.profile-contact .container { display: flex; align-items: flex-start; flex-direction: column; gap: 20px; }
.profile-contact h2 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 400; }
.profile-contact p { color: #d5c0ab; }
.other-specialists { display: grid; gap: 12px; }
.other-specialists a { display: flex; justify-content: space-between; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }

.other-specialists span { color: var(--bronze); }
.back-link { display: inline-block; margin-top: 30px; color: var(--ink-soft); text-decoration: underline; }
@media (min-width: 700px) {
  .cases-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .case-featured { grid-column: 1 / -1; }
  .case-comparison-layout { grid-template-columns: 1fr 1fr; align-items: start; }
  .case-card { padding: 28px; }
  .other-specialists, .profile-treatment-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (min-width: 900px) {
  .profile-grid { grid-template-columns: .85fr 1.15fr; gap: 70px; }
  .profile-portrait { height: 590px; }
  .profile-treatment-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .profile-contact .container { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (min-width: 1100px) {
  .main-nav:not(.open) { visibility: visible; }
  .main-nav { gap: 0; }
  .main-nav a { padding-inline: 9px; font-size: .875rem; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-track { scroll-behavior: auto; }
}

/* Shared theme and interaction rules. Decorative motion never moves a hit target. */
.header-inner { gap: 12px; }
.header-brand { position: relative; flex: 1 1 250px; min-width: 0; max-width: 250px; height: 64px; }
.brand-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
.header-controls { display: flex; align-items: center; flex: 0 0 auto; gap: 8px; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 4px; width: 64px; height: 44px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink-soft); }
.theme-toggle svg { box-sizing: content-box; flex: 0 0 18px; width: 18px; height: 18px; padding: 3px; border-radius: 50%; pointer-events: none; }
.theme-toggle[aria-pressed="false"] .theme-sun,
.theme-toggle[aria-pressed="true"] .theme-moon { background: var(--button-bg); color: var(--button-ink); }
.menu-toggle { width: 44px; height: 44px; flex: 0 0 44px; }
.site-header { background: var(--header-bg); }
.main-nav a { flex: 0 0 auto; min-height: 44px; display: inline-flex; align-items: center; }
.main-nav .nav-cta { background: var(--button-bg); color: var(--button-ink); justify-content: center; }
.hero-portrait { display: block; }
.hero-glow, .hero::before, .hero-portrait::before, .hero-portrait > *,
.specialists-orbit, .treatment-card::after, .director-image::after,
.team-photo::before, .image-halo { pointer-events: none; }
.specialists, .contact, .site-footer, .profile-contact { --focus: #e8c18e; }
.specialists .gold-label { color: var(--gold); }
.footer-bottom { color: var(--section-muted); }
.map-card { background: var(--paper); }
.social-row a { width: 44px; height: 44px; }
.breadcrumbs a, .back-link, .text-link, a.profile-link { min-height: 44px; display: inline-flex; align-items: center; }
.breadcrumbs { align-items: center; }
.gallery-track { touch-action: pan-x pan-y; }
.gallery-controls button:disabled { opacity: .55; }
:where(a[href], button:not(:disabled)) { cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; }
:where(a, button, .treatment-card, .case-card, .director-card, .differential-item, .profile-treatment-list li) {
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
:where(.button svg, .theme-toggle svg, .other-specialists a > span, .icon-wrap, .diff-icon, .team-photo img) {
  transition: scale 160ms ease;
}
:where(a, button, input, [tabindex]):focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.button-primary:focus-visible, .nav-cta:focus-visible { background: var(--button-hover); color: var(--button-ink); }
.button-outline:focus-visible, .social-row a:focus-visible { background: var(--gold); color: var(--espresso); }
.whatsapp-float:focus-visible { background: var(--whatsapp-hover); }
.team-card:focus-within, .other-specialists a:focus-within, .case-card:focus-within { border-color: var(--bronze); box-shadow: var(--shadow); }
.theme-toggle:active, .menu-toggle:active, .gallery-controls button:enabled:active { background: var(--sand); border-color: var(--bronze); }
.button-primary:active, .nav-cta:active { background: var(--button-hover); }
@media (hover: hover) and (pointer: fine) {
  .button-primary:hover, .main-nav .nav-cta:hover { background: var(--button-hover); color: var(--button-ink); box-shadow: 0 8px 22px rgba(58, 41, 31, .18); }
  .button-outline:hover, .social-row a:hover { background: var(--gold); color: var(--espresso); }
  .whatsapp-float:hover { background: var(--whatsapp-hover); box-shadow: 0 10px 28px rgba(22, 74, 49, .24); }
  .theme-toggle:hover, .menu-toggle:hover, .gallery-controls button:enabled:hover { border-color: var(--bronze); background: var(--sand); }
  .treatment-card:hover, .case-card:hover, .profile-treatment-list li:hover, .other-specialists a:hover { border-color: var(--bronze); box-shadow: var(--shadow); }
  .team-card:hover, .director-card:hover { border-color: var(--gold); box-shadow: var(--shadow); }
  .differential-item:hover { background: var(--paper); }
  .hero-portrait:hover .portrait-label { box-shadow: 0 16px 36px rgba(58, 41, 31, .18); }
  .text-link:hover, .back-link:hover, .breadcrumbs a:hover, .main-nav a:not(.nav-cta):hover, .map-link:hover { color: var(--bronze); }
  .footer-links a:hover, .director-copy h3 a:hover { color: var(--gold); }
  .profile-link:hover { text-decoration: underline; text-underline-offset: 4px; }
  .header-brand:hover { opacity: .88; }
  .button:hover svg, .theme-toggle:hover svg, .other-specialists a:hover > span,
  .treatment-card:hover .icon-wrap, .differential-item:hover .diff-icon { scale: 1.04; }
  .team-card:hover .team-photo img { scale: 1.015; }
}
@media (max-width: 1099px) {
  .main-nav { box-shadow: 0 16px 28px rgba(37, 29, 25, .12); }
}
@media (min-width: 1100px) {
  .header-brand { flex: 0 1 250px; }
  .header-inner { gap: 16px; }
  .main-nav { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .button svg, .theme-toggle svg, .other-specialists a > span, .icon-wrap, .diff-icon, .team-photo img { scale: 1 !important; }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ivory: #191512;
  --sand: #30261f;
  --nude: #70543e;
  --paper: #211b17;
  --ink: #f7eee4;
  --ink-soft: #d5c5b7;
  --muted: #c7b4a4;
  --espresso: #110f0d;
  --espresso-2: #211b17;
  --bronze: #dfb883;
  --gold: #dfb883;
  --line: rgba(230, 200, 169, .23);
  --white-line: rgba(230, 200, 169, .18);
  --shadow: 0 16px 42px rgba(0, 0, 0, .24);
  --header-bg: rgba(25, 21, 18, .98);
  --treatment-bg: #2a211b;
  --portrait-bg: #49382c;
  --portrait-mark: rgba(223, 184, 131, .09);
  --portrait-label: rgba(33, 27, 23, .97);
  --photo-bg: #59412f;
  --team-photo-bg: #4c392a;
  --panel-bg: #261e19;
  --gallery-bg: #30261f;
  --contact-bg: #181310;
  --footer-bg: #100d0b;
  --button-bg: #dfb883;
  --button-hover: #f0cc9b;
  --button-ink: #251d19;
  --focus: #e8c18e;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
  color-scheme: dark;
  --ivory: #191512;
  --sand: #30261f;
  --nude: #70543e;
  --paper: #211b17;
  --ink: #f7eee4;
  --ink-soft: #d5c5b7;
  --muted: #c7b4a4;
  --espresso: #110f0d;
  --espresso-2: #211b17;
  --bronze: #dfb883;
  --gold: #dfb883;
  --line: rgba(230, 200, 169, .23);
  --white-line: rgba(230, 200, 169, .18);
  --shadow: 0 16px 42px rgba(0, 0, 0, .24);
  --header-bg: rgba(25, 21, 18, .98);
  --treatment-bg: #2a211b;
  --portrait-bg: #49382c;
  --portrait-mark: rgba(223, 184, 131, .09);
  --portrait-label: rgba(33, 27, 23, .97);
  --photo-bg: #59412f;
  --team-photo-bg: #4c392a;
  --panel-bg: #261e19;
  --gallery-bg: #30261f;
  --contact-bg: #181310;
  --footer-bg: #100d0b;
  --button-bg: #dfb883;
  --button-hover: #f0cc9b;
  --button-ink: #251d19;
  --focus: #e8c18e;
  }
  :root:not([data-theme]) .logo-light { display: none; }
  :root:not([data-theme]) .logo-dark { display: block; }
}

.header-brand { transition: opacity 160ms ease; }
.portrait-label { transition: box-shadow 160ms ease; }
@media (prefers-reduced-motion: reduce) {
  .header-brand, .portrait-label { transition: none; }
}
