/* =========================================================
   Beauty Spa · Centro de Estética
   Hoja de estilos principal
   ========================================================= */

:root {
  --sage: #8fa79e;
  --sage-dark: #6c867c;
  --sage-deep: #3f5b50;
  --sage-light: #cfdbd5;
  --cream: #f8f5ef;
  --cream-2: #efeade;
  --sand: #e7e0d2;
  --ink: #1f2b26;
  --ink-soft: #35443e;
  --white: #ffffff;
  --gold: #c2a367;
  --wa: #25d366;
  --wa-dark: #128c4a;
  --shadow-s: 0 6px 20px rgba(31, 43, 38, .06);
  --shadow-m: 0 18px 45px rgba(31, 43, 38, .12);
  --shadow-l: 0 30px 70px rgba(31, 43, 38, .18);
  --radius: 18px;
  --radius-s: 12px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;
  --header-h: 78px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -.01em;
}

h2 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
h2 em, h1 em { font-style: italic; color: var(--sage-deep); }
h3 { font-size: 1.35rem; font-weight: 500; }

p { margin: 0; }

.wrap {
  width: min(1220px, 100% - clamp(2rem, 7vw, 6rem));
  margin-inline: auto;
}

section { position: relative; }

/* ---------- Utilidades ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: 1rem 1.7rem;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--sans);
  font-size: .86rem;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; fill: currentColor; flex: none; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-m); }
.btn:active { transform: translateY(0); }

.btn--wa { --btn-bg: var(--wa-dark); --btn-fg: #fff; box-shadow: 0 10px 26px rgba(18, 140, 74, .28); }
.btn--wa:hover { --btn-bg: #0e7a40; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: rgba(31, 43, 38, .22);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .5); border-color: var(--sage-dark); }
.btn--ghost svg { fill: none; }

.btn--dark { --btn-bg: var(--ink); --btn-fg: #fff; }
.btn--dark:hover { --btn-bg: #2c3d36; }

.btn--ig {
  --btn-bg: linear-gradient(105deg, #f9ce34 0%, #ee2a7b 45%, #6228d7 100%);
  --btn-fg: #fff;
  border: none;
  box-shadow: 0 10px 26px rgba(98, 40, 215, .22);
}
.btn--ig:hover { filter: saturate(1.15) brightness(1.04); }

.btn--lg { padding: 1.15rem 2.1rem; font-size: .9rem; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Topbar
   ========================================================= */
.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, .9);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 500;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 38px;
}
.topbar__item { display: inline-flex; align-items: center; gap: .5rem; }
.topbar__item svg { width: 14px; height: 14px; fill: var(--sage-light); flex: none; }
.topbar a { transition: color .25s; }
.topbar a:hover { color: #fff; }
.topbar__item--right { color: rgba(255, 255, 255, .98); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(248, 245, 239, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(31, 43, 38, .07);
  transition: box-shadow .35s var(--ease), background .35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(248, 245, 239, .97);
  box-shadow: 0 10px 30px rgba(31, 43, 38, .07);
}
.header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand { display: inline-flex; align-items: center; gap: .85rem; }
.brand__mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sage);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.28rem;
  letter-spacing: .03em;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .12);
  flex: none;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: .02em;
}
.brand__text em {
  font-style: normal;
  font-size: .6rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-top: .3rem;
}

.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav > a:not(.nav__cta) {
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding-block: .4rem;
  transition: color .25s;
}
.nav > a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width .35s var(--ease);
}
.nav > a:not(.nav__cta):hover { color: var(--ink); }
.nav > a:not(.nav__cta):hover::after { width: 100%; }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .78rem 1.35rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background .3s, transform .3s var(--ease), box-shadow .3s;
}
.nav__cta svg { width: 16px; height: 16px; fill: var(--sage-light); }
.nav__cta:hover { background: var(--sage-deep); transform: translateY(-1px); box-shadow: var(--shadow-s); }

.burger {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(31, 43, 38, .16);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.burger span {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s;
}
.burger span:nth-child(1) { top: 17px; transform: translateX(-50%); }
.burger span:nth-child(2) { top: 22px; transform: translateX(-50%); }
.burger span:nth-child(3) { top: 27px; transform: translateX(-50%); }
.burger.is-open span:nth-child(1) { top: 22px; transform: translateX(-50%) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 22px; transform: translateX(-50%) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: 0;
  background:
    radial-gradient(1100px 620px at 88% -10%, #e9efe9 0%, rgba(233, 239, 233, 0) 62%),
    linear-gradient(180deg, var(--cream) 0%, #f4f0e7 100%);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
}
.hero__copy h1 {
  font-size: clamp(2.7rem, 5.6vw, 4.5rem);
  margin-bottom: 1.4rem;
  letter-spacing: -.015em;
  max-width: 13ch;
}
.hero__lead {
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.15vw, 1.09rem);
  max-width: 46ch;
  margin-bottom: 2.1rem;
}
.hero__lead strong { color: var(--ink); font-weight: 500; }

.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 2.6rem; }

.hero__facts {
  list-style: none;
  margin: 0;
  padding: 1.6rem 0 0;
  display: flex;
  gap: clamp(1.4rem, 3.5vw, 3rem);
  border-top: 1px solid rgba(31, 43, 38, .12);
}
.hero__facts li { display: flex; flex-direction: column; }
.hero__facts strong {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--sage-deep);
  line-height: 1.2;
}
.hero__facts span {
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  max-width: 14ch;
}

.hero__media {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(1.1rem, 2vw, 1.7rem);
  padding-block: 1rem;
}
.hero__sign {
  position: relative;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(31, 43, 38, .1);
  box-shadow: var(--shadow-l);
  background: var(--cream-2);
}
.hero__sign img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1000 / 339;
  object-fit: cover;
}
.hero__sign picture { display: block; }
.hero__id {
  display: flex;
  align-items: center;
  gap: .9rem;
  flex-wrap: wrap;
  padding-inline: .2rem;
}
.hero__avatar {
  width: clamp(48px, 6vw, 62px);
  height: clamp(48px, 6vw, 62px);
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 8px 20px rgba(31, 43, 38, .16);
}
.hero__id-name {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.1vw, 1.65rem);
  line-height: 1.05;
  color: var(--ink);
}
.hero__id-sub {
  font-size: .6rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.hero__id-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--sage-deep);
  border-bottom: 1px solid currentColor;
  padding-bottom: .2rem;
  transition: opacity .3s;
}
.hero__id-link svg { width: 16px; height: 16px; fill: none; }
.hero__id-link:hover { opacity: .75; }
.hero__quote {
  margin: 0;
  max-width: 300px;
  background: rgba(255, 255, 255, .96);
  border-radius: var(--radius-s);
  border-left: 3px solid var(--gold);
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow-m);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--ink);
}

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid rgba(31, 43, 38, .1);
  background: rgba(255, 255, 255, .35);
  overflow: hidden;
  padding-block: 1rem;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee__track span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink-soft);
  white-space: nowrap;
}
.marquee__track i { color: var(--gold); font-style: normal; font-size: .8rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================================================
   Secciones
   ========================================================= */
.section { padding-block: clamp(4rem, 8vw, 7.5rem); }
.section--galeria {
  background: linear-gradient(180deg, #fff 0%, var(--cream) 100%);
  border-top: 1px solid rgba(31, 43, 38, .06);
}

.section__head { max-width: 720px; margin-bottom: clamp(2.4rem, 4vw, 3.6rem); }
.section__lead {
  color: var(--ink-soft);
  margin-top: 1.3rem;
  max-width: 56ch;
  font-size: 1.02rem;
}

.section__head--row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.section__head--row > div:first-child { max-width: 640px; }
.section__head-aside { max-width: 330px; }
.section__head-aside--wide { max-width: 430px; }
.section__head-aside p { color: var(--ink-soft); font-size: .96rem; margin-bottom: 1.3rem; }
.section__head-aside p:last-child { margin-bottom: 0; }

.section__head--center { text-align: center; margin-inline: auto; }
.section__head--center .eyebrow { justify-content: center; }
.section__head--center .section__lead { margin-inline: auto; }

/* ---------- Tratamientos ---------- */
.treatments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 5vw, 4.5rem);
  border-top: 1px solid rgba(31, 43, 38, .13);
}
.treatment {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 1.05rem;
  padding: clamp(1.15rem, 2vw, 1.5rem) 0;
  border-bottom: 1px solid rgba(31, 43, 38, .13);
}
.treatment__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(143, 167, 158, .16);
  color: var(--sage-deep);
  transition: background .35s, color .35s, transform .35s var(--ease);
}
.treatment__icon svg { width: 22px; height: 22px; fill: none; }
.treatment:hover .treatment__icon { background: var(--sage); color: #fff; transform: translateY(-2px); }
.treatment__body h3 {
  font-family: var(--serif);
  font-size: clamp(1.18rem, 1.6vw, 1.34rem);
  font-weight: 500;
  line-height: 1.2;
}
.treatment__body p {
  margin-top: .25rem;
  font-size: .89rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 42ch;
}
.treatment__link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: .6rem;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--sage-deep);
  border-bottom: 1px solid rgba(77, 107, 96, .3);
  padding-bottom: .15rem;
  transition: gap .3s var(--ease), color .3s, border-color .3s;
}
.treatment__link:hover { gap: .75rem; color: var(--ink); border-color: var(--ink); }

.services__note {
  margin-top: 2rem;
  text-align: center;
  font-size: .95rem;
  color: var(--ink-soft);
}
.services__note a {
  color: var(--sage-deep);
  font-weight: 500;
  border-bottom: 1px solid currentColor;
}

/* ---------- Galería ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: clamp(.7rem, 1.2vw, 1.1rem);
  grid-auto-flow: dense;
}
.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-s);
  background: var(--cream-2);
  display: block;
  grid-row: span 1;
  grid-column: span 1;
}
.tile--wide { grid-column: span 2; }
.tile--tall { grid-row: span 2; }
.tile--top img { object-position: 50% 18%; }
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter .6s;
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 30, 26, .62) 0%, rgba(20, 30, 26, .05) 45%, rgba(20, 30, 26, 0) 70%);
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.tile__open {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: zoom-in;
}
.tile__open:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
.tile__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  z-index: 2;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .4s var(--ease), transform .45s var(--ease);
  pointer-events: none;
}
.tile__tag {
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .9);
}
.tile__cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .95);
  color: var(--ink);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 500;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  pointer-events: auto;
  transition: background .25s, transform .25s;
}
.tile__cta:hover { background: #fff; transform: translateY(-2px); }
.tile__cta::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(135deg, #f9ce34, #ee2a7b 50%, #6228d7);
  flex: none;
}
.tile:hover img, .tile:focus-visible img { transform: scale(1.06); }
.tile:hover::after, .tile:focus-visible::after { opacity: 1; }
.tile:hover .tile__overlay, .tile:focus-visible .tile__overlay { opacity: 1; transform: none; }

.tile[hidden] { display: none; }
.gallery .tile img { object-position: 50% 32%; }

.gallery__more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  margin-top: clamp(2rem, 3.5vw, 3rem);
  text-align: center;
}
.gallery__count {
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.gallery__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  justify-content: center;
}
#galleryMore[hidden] { display: none; }

/* ---------- Nosotros ---------- */
.section--nosotros {
  background:
    radial-gradient(800px 500px at 0% 100%, #eaf0ea 0%, rgba(234, 240, 234, 0) 70%),
    var(--cream-2);
}
.nosotros {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.nosotros__panel {
  position: relative;
  aspect-ratio: 1 / 1.05;
  border-radius: 220px 220px var(--radius) var(--radius);
  background:
    radial-gradient(110% 70% at 50% 0%, rgba(255, 255, 255, .4) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(160deg, #a6bab0 0%, var(--sage) 50%, var(--sage-deep) 100%);
  box-shadow: var(--shadow-m);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(2rem, 5vw, 3.4rem);
  overflow: hidden;
}
.nosotros__ring {
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 200px 200px 14px 14px;
  pointer-events: none;
}
.nosotros__bigquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.35;
  color: #fff;
  max-width: 22ch;
}
.nosotros__sign {
  margin-top: 1rem;
  font-size: .66rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .9);
}
.nosotros__stats {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, .28);
  width: 100%;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.nosotros__stats div { display: flex; flex-direction: column; }
.nosotros__stats strong {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
}
.nosotros__stats span {
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .84);
}
.nosotros__copy h2 { margin-bottom: 1.4rem; }
.nosotros__copy > p { color: var(--ink-soft); max-width: 52ch; margin-bottom: 1.8rem; }
.nosotros__copy strong { color: var(--ink); font-weight: 500; }

.checks { list-style: none; margin: 0 0 2.2rem; padding: 0; display: grid; gap: .8rem; }
.checks li { display: flex; align-items: flex-start; gap: .7rem; font-size: .96rem; color: var(--ink); }
.checks svg {
  width: 20px;
  height: 20px;
  padding: 3px;
  border-radius: 50%;
  background: rgba(143, 167, 158, .18);
  color: var(--sage-deep);
  flex: none;
  margin-top: .18rem;
}

/* ---------- Instagram band ---------- */
.ig {
  background: var(--ink);
  color: #fff;
  padding-block: clamp(2.6rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}
.ig::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -120px;
  top: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 167, 158, .35), transparent 65%);
  pointer-events: none;
}
.ig__inner {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  flex-wrap: wrap;
  justify-content: space-between;
  position: relative;
}
.ig__profile { display: flex; align-items: center; gap: 1rem; }
.ig__avatar {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, .35);
  flex: none;
}
.ig__handle {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: .01em;
}
.ig__handle svg { width: 18px; height: 18px; fill: none; stroke: var(--sage-light); }
.ig__meta { font-size: .8rem; letter-spacing: .06em; color: rgba(255, 255, 255, .74); }
.ig__text { max-width: 34ch; color: rgba(255, 255, 255, .88); font-size: .95rem; }
.ig .btn--dark { --btn-bg: #fff; --btn-fg: var(--ink); }

/* ---------- Contacto ---------- */
.contact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(.9rem, 1.6vw, 1.3rem);
}
.contact__card {
  background: var(--white);
  border: 1px solid rgba(31, 43, 38, .08);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  box-shadow: var(--shadow-s);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
a.contact__card:hover { transform: translateY(-5px); box-shadow: var(--shadow-m); border-color: var(--sage-light); }
.contact__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(143, 167, 158, .14);
  margin-bottom: .7rem;
}
.contact__icon svg { width: 22px; height: 22px; fill: var(--sage-deep); stroke: var(--sage-deep); }
.contact__icon svg[stroke] { fill: none; }
.contact__card h3 { font-size: 1.2rem; }
.contact__card p { font-size: .92rem; color: var(--ink-soft); }
.contact__action {
  margin-top: auto;
  padding-top: .9rem;
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-weight: 500;
}
.contact__card--wa {
  background: linear-gradient(160deg, #1aa75c 0%, #0f8a49 100%);
  border-color: transparent;
  color: #fff;
}
.contact__card--wa .contact__icon { background: rgba(255, 255, 255, .18); }
.contact__card--wa .contact__icon svg { fill: #fff; stroke: none; }
.contact__card--wa p { color: rgba(255, 255, 255, .94); }
.contact__card--wa .contact__action { color: #fff; }

/* ---------- Mapa ---------- */
.map {
  margin-top: clamp(1.2rem, 2.4vw, 2rem);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  background: var(--white);
  border: 1px solid rgba(31, 43, 38, .08);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-s);
}
.map__frame {
  position: relative;
  min-height: 340px;
  background: var(--cream-2);
  border-right: 1px solid rgba(31, 43, 38, .07);
}
.map__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(.9) contrast(.98);
}
.map__info {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .6rem;
}
.map__info h3 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); line-height: 1.15; }
.map__info > p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: .94rem;
  line-height: 1.65;
  max-width: 36ch;
}
.map__info strong { color: var(--ink); font-weight: 500; }
.map__info .btn { align-self: flex-start; margin-top: .9rem; }

.cta-panel {
  margin-top: clamp(2rem, 4vw, 3.2rem);
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(115deg, var(--sage-dark) 0%, var(--sage-deep) 100%);
  color: #fff;
  padding: clamp(1.8rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-m);
  position: relative;
  overflow: hidden;
}
.cta-panel::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  right: -80px;
  bottom: -160px;
  pointer-events: none;
}
.cta-panel h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .4rem; }
.cta-panel p { color: rgba(255, 255, 255, .9); font-size: .98rem; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .72);
  padding-block: 2.4rem;
  font-size: .84rem;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer__brand { display: flex; align-items: center; gap: .8rem; color: #fff; }
.brand__mark--footer { width: 42px; height: 42px; font-size: 1.1rem; }
.footer__brand strong { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; display: block; }
.footer__brand em { font-style: normal; font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.footer__nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer__nav a { transition: color .25s; }
.footer__nav a:hover { color: #fff; }
.footer__address { font-size: .8rem; }
.footer__address a { color: rgba(255, 255, 255, .84); border-bottom: 1px solid rgba(255, 255, 255, .3); }
.footer__address a:hover { color: #fff; }
.footer__legal { font-size: .78rem; width: 100%; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 1.3rem; margin-top: .4rem; }

/* ---------- WhatsApp flotante ---------- */
.whatsapp-float {
  position: fixed;
  right: clamp(1rem, 2.4vw, 2rem);
  bottom: clamp(1rem, 2.4vw, 2rem);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.4rem .95rem 1.05rem;
  border-radius: 999px;
  background: var(--wa-dark);
  color: #fff;
  box-shadow: 0 14px 34px rgba(18, 140, 74, .38);
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 500;
  transition: transform .3s var(--ease), box-shadow .3s, background .3s;
}
.whatsapp-float svg { width: 24px; height: 24px; fill: #fff; flex: none; }
.whatsapp-float:hover { transform: translateY(-3px) scale(1.02); background: #0b6f38; box-shadow: 0 18px 40px rgba(18, 140, 74, .45); }
.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid rgba(37, 211, 102, .55);
  animation: pulse 2.8s var(--ease) infinite;
  pointer-events: none;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: .8; }
  70% { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 22, 19, .93);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  animation: fadeIn .3s var(--ease);
}
.lightbox[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox__figure {
  margin: 0;
  max-width: min(920px, 94vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.lightbox__figure img {
  max-height: 72vh;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-l);
  object-fit: contain;
}
.lightbox__figure figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: #fff;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
}
.lightbox__figure .btn { font-family: var(--sans); font-style: normal; padding: .8rem 1.25rem; font-size: .74rem; }
.lightbox__close {
  position: absolute;
  top: clamp(.8rem, 2vw, 1.6rem);
  right: clamp(.8rem, 2vw, 1.6rem);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: background .25s, transform .25s;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .2); transform: rotate(90deg); }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  transition: background .25s;
}
.lightbox__nav:hover { background: rgba(255, 255, 255, .22); }
.lightbox__nav--prev { left: clamp(.5rem, 2vw, 2rem); }
.lightbox__nav--next { right: clamp(.5rem, 2vw, 2rem); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .contact { grid-template-columns: repeat(2, 1fr); }
  .ig__inner { justify-content: flex-start; }
  .ig__text { max-width: 100%; flex-basis: 100%; }
}

@media (max-width: 940px) {
  .topbar__item:first-child { display: none; }
  .topbar__inner { justify-content: center; }

  .nav {
    position: fixed;
    inset: calc(var(--header-h) + 38px) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    padding: 1rem clamp(1rem, 5vw, 2.5rem) 1.6rem;
    border-bottom: 1px solid rgba(31, 43, 38, .1);
    box-shadow: 0 24px 40px rgba(31, 43, 38, .12);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform .45s var(--ease), opacity .35s, visibility .35s;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav > a:not(.nav__cta) { padding: 1rem 0; border-bottom: 1px solid rgba(31, 43, 38, .07); font-size: .9rem; }
  .nav__cta { margin-top: 1.2rem; justify-content: center; padding: 1rem; }
  .burger { display: block; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy h1 { max-width: 100%; }
  .hero__media { order: -1; max-width: 520px; margin-inline: auto; margin-bottom: .4rem; }
  .hero__quote { max-width: 100%; font-size: .95rem; padding: .9rem 1rem; }
  .treatments { grid-template-columns: 1fr; }
  .map { grid-template-columns: 1fr; }
  .map__frame { min-height: 300px; border-right: 0; border-bottom: 1px solid rgba(31, 43, 38, .07); }
  .nosotros { grid-template-columns: 1fr; }
  .nosotros__panel { max-width: 420px; margin-inline: auto; aspect-ratio: 1 / .82; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 165px; }
  .tile--wide { grid-column: span 2; }
  .gallery .tile__overlay { opacity: 1; transform: none; padding: .8rem; }
  .gallery .tile::after { opacity: .55; }
  .tile__tag { display: none; }
  .tile__cta { font-size: .62rem; padding: .42rem .7rem; }
  .ig__inner { flex-direction: column; align-items: flex-start; }
  .ig .btn { width: 100%; }
  .cta-panel { flex-direction: column; align-items: flex-start; }
  .cta-panel .btn { width: 100%; }
  .hero__facts { gap: 1.2rem; flex-wrap: wrap; }
  .whatsapp-float__label { display: none; }
  .whatsapp-float { padding: 1rem; right: 1rem; bottom: 1rem; }
  .whatsapp-float svg { width: 26px; height: 26px; }
  .lightbox__nav { width: 42px; height: 42px; font-size: 1.5rem; }
  .section__head--row { flex-direction: column; align-items: flex-start; gap: 1.6rem; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .contact { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .hero__quote { display: none; }
  .hero__id-link { margin-left: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 145px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
