/* =================== FONTS =================== */
@font-face {
  font-family: "Einer Grotesk";
  src: url("fonts/EinerGrotesk-Light.woff2") format("woff2"),
       url("fonts/EinerGrotesk-Light.woff") format("woff");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Einer Grotesk";
  src: url("fonts/EinerGrotesk-Regular.woff2") format("woff2"),
       url("fonts/EinerGrotesk-Regular.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Einer Grotesk";
  src: url("fonts/EinerGrotesk-Book.woff2") format("woff2"),
       url("fonts/EinerGrotesk-Book.woff") format("woff");
  font-weight: 350; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Einer Grotesk";
  src: url("fonts/EinerGrotesk-Bold.woff2") format("woff2"),
       url("fonts/EinerGrotesk-Bold.woff") format("woff");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* =================== VARIABLES =================== */
:root {
  --ink: #0e0e0e;
  --ink-2: #2a2a2a;
  --paper: #ffffff;
  --paper-2: #f5f5f5;
  --line: #e0e0e0;
  --muted: #7a7468;
  --white: #ffffff;
  --radius: 2px;
  --container: 1440px;
  --gutter: 48px;
  --serif: "Einer Grotesk", "Inter", sans-serif;
}

/* =================== BASE =================== */
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--paper); color: var(--ink);
  font-family: var(--serif); font-weight: 300;
  letter-spacing: -.005em; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }

/* =================== UTILITIES =================== */
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.mono {
  font-family: var(--serif); font-weight: 400;
  text-transform: uppercase; letter-spacing: .22em;
  font-size: 11px; color: var(--ink);
}
.mono.muted { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; opacity: .5; }

/* =================== HEADER =================== */
header.site {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .4s ease, color .4s ease, border-color .4s ease;
  color: var(--paper);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
header.site .bar {
  max-width: var(--container); margin: 0 auto; padding: 18px var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 24px;
}
header.site .logo {
  font-family: var(--serif); font-weight: 300;
  font-size: 22px; letter-spacing: .35em;
  display: flex; align-items: center;
}
header.site .logo img {
  height: 26px; width: auto; display: block;
  filter: brightness(0) invert(1);
  transition: filter .4s ease;
}
header.site.scrolled .logo img { filter: brightness(0); }
footer .brand img { height: 34px; width: auto; display: block; filter: brightness(0) invert(1) !important; }
header.site nav ul {
  list-style: none; display: flex; gap: 28px;
  margin: 0; padding: 0; justify-content: center;
}
header.site nav a {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 400; opacity: .92; position: relative; padding: 4px 0;
}
header.site nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
header.site nav a:hover::after, header.site nav a.active::after { transform: scaleX(1); }
header.site .actions { display: flex; gap: 10px; justify-content: flex-end; align-items: center; }
header.site.scrolled { background: var(--paper); color: var(--ink); border-bottom-color: var(--line); }

/* =================== BUTTONS =================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border: 1px solid currentColor; border-radius: 999px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 400; cursor: pointer; background: transparent; color: inherit;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.btn:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn.dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.dark:hover { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.solid { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn.solid:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn.light { color: var(--white); border-color: rgba(255,255,255,.6); }
.btn.light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn svg { width: 12px; height: 12px; flex-shrink: 0; }

/* =================== SECTION BASE =================== */
section.block { padding: 140px 0; position: relative; }
section.block.tight { padding: 100px 0; }
section.block h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(36px, 5vw, 68px); line-height: 1.02;
  letter-spacing: -.02em; margin: 0;
}
section.block h2 em { font-style: italic; }
.block-head {
  display: grid; grid-template-columns: 1fr 1.8fr;
  gap: 60px; align-items: end; margin-bottom: 64px;
}
.block-head .left .eyebrow { margin-bottom: 16px; display: inline-flex; }
.block-head .right p { font-size: 17px; line-height: 1.6; max-width: 620px; margin: 0; color: var(--ink-2); }

/* =================== PAGE INTRO (inner pages) =================== */
.page-intro { padding: 160px 0 90px; background: var(--paper); }
.page-intro .breadcrumb {
  display: flex; align-items: center; gap: 8px; margin-bottom: 28px;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.page-intro .breadcrumb a:hover { color: var(--ink); }
.page-intro .breadcrumb .sep { opacity: .4; }
.page-intro .eyebrow { margin-bottom: 16px; display: inline-flex; }
.page-intro h1 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(48px, 7vw, 96px); line-height: .95;
  letter-spacing: -.025em; margin: 20px 0 24px;
}
.page-intro h1 em { font-style: italic; }
.page-intro .lead { font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 560px; margin: 0; }

/* =================== TREATMENT CARDS =================== */
.treat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; background: var(--line); }
.treat {
  background: var(--paper-2); padding: 40px 32px 36px; position: relative;
  min-height: 420px; display: flex; flex-direction: column; justify-content: space-between;
  transition: background .4s ease, color .4s ease; cursor: pointer; overflow: hidden;
}
.treat .num { font-size: 11px; letter-spacing: .22em; color: var(--muted); text-transform: uppercase; }
.treat h3 {
  font-family: var(--serif); font-weight: 300; font-size: 34px;
  line-height: 1.05; letter-spacing: -.01em; margin: 16px 0 10px;
}
.treat p { font-size: 14px; line-height: 1.55; color: var(--ink-2); margin: 0 0 20px; max-width: 36ch; }
.treat .meta { display: flex; gap: 18px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.treat .img {
  position: absolute; inset: auto 0 0 auto; width: 48%; height: 58%;
  background-size: cover; background-position: center;
  opacity: .55; filter: grayscale(.2) contrast(.95);
  transition: opacity .5s ease, transform .6s ease;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}
.treat .arrow {
  position: absolute; right: 32px; top: 40px; width: 36px; height: 36px;
  border-radius: 99px; border: 1px solid var(--ink);
  display: flex; align-items: center; justify-content: center; color: var(--ink);
  transition: background .3s ease, color .3s ease, transform .3s ease; font-size: 18px;
}
.treat:hover { background: var(--ink); color: var(--paper); }
.treat:hover h3, .treat:hover p { color: inherit; }
.treat:hover .meta, .treat:hover .num { color: rgba(255,255,255,.6); }
.treat:hover .img { opacity: .9; transform: scale(1.04); }
.treat:hover .arrow { background: var(--paper); color: var(--ink); border-color: var(--paper); transform: rotate(-45deg); }
.ph-labios   { background: linear-gradient(135deg, #b89886, #6b4a38); }
.ph-menton   { background: linear-gradient(135deg, #a99883, #5a4734); }
.ph-pomulos  { background: linear-gradient(135deg, #c5a78f, #73553f); }
.ph-naso     { background: linear-gradient(135deg, #9f8b78, #4e3d2e); }
.ph-rino     { background: linear-gradient(135deg, #b19a84, #624b3a); }
.ph-antiarrugas { background: linear-gradient(135deg, #a28b76, #564231); }
.treat-cta { display: flex; justify-content: center; margin-top: 56px; }

/* =================== BEFORE/AFTER SLIDER =================== */
.ba-slider {
  position: relative; border-radius: var(--radius); overflow: hidden;
  user-select: none; touch-action: none;
}
.ba-slider .side { position: absolute; inset: 0; background-size: cover; background-position: center; }
.ba-slider .after { clip-path: inset(0 0 0 var(--sp, 50%)); }
.ba-slider .divider { position: absolute; top: 0; bottom: 0; left: var(--sp, 50%); width: 2px; background: var(--paper); transform: translateX(-1px); }
.ba-slider .handle {
  position: absolute; top: 50%; left: var(--sp, 50%); transform: translate(-50%,-50%);
  width: 48px; height: 48px; border-radius: 99px; background: var(--paper); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  cursor: ew-resize; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.ba-slider .label {
  position: absolute; top: 20px; font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--paper); padding: 6px 10px; border: 1px solid rgba(255,255,255,.4);
  border-radius: 99px; backdrop-filter: blur(4px);
}
.ba-slider .label.l { left: 20px; }
.ba-slider .label.r { right: 20px; }

/* =================== FOOTER =================== */
footer { background: var(--ink); color: var(--paper); padding: 100px 0 40px; }
footer .grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; }
footer h5 { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: rgba(243,240,232,.55); margin: 0 0 20px; font-weight: 400; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 10px; font-size: 14px; color: rgba(243,240,232,.85); }
footer li a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }
footer .brand { font-family: var(--serif); font-weight: 300; font-size: 40px; letter-spacing: .3em; margin-bottom: 24px; display: block; }
footer .tag { font-size: 14px; line-height: 1.6; color: rgba(243,240,232,.7); max-width: 360px; }
footer .bottom {
  margin-top: 80px; padding-top: 28px; border-top: 1px solid rgba(243,240,232,.15);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px; font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(243,240,232,.5);
}
.news-inline { display: flex; margin-top: 16px; max-width: 400px; }
.news-inline input {
  flex: 1; padding: 14px 16px; background: transparent;
  border: 1px solid rgba(243,240,232,.3); border-right: none;
  color: var(--paper); font: inherit; font-size: 14px; outline: none;
}
.news-inline input::placeholder { color: rgba(243,240,232,.5); }
.news-inline button {
  padding: 14px 22px; background: var(--paper); color: var(--ink);
  border: 1px solid var(--paper); cursor: pointer;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  transition: background .3s, color .3s;
}
.news-inline button:hover { background: transparent; color: var(--paper); }

/* =================== WHATSAPP FLOATING =================== */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  width: 60px; height: 60px; border-radius: 99px;
  background: var(--ink); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(0,0,0,.25); cursor: pointer; transition: transform .3s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 26px; height: 26px; }

/* =================== NEWSLETTER POPUP =================== */
.popup-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 60;
  display: none; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; transition: opacity .4s ease;
}
.popup-backdrop.on { display: flex; opacity: 1; }
.popup {
  max-width: 520px; width: 100%; background: var(--paper);
  padding: 50px 44px 40px; position: relative;
  transform: translateY(20px); transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.popup-backdrop.on .popup { transform: translateY(0); }
.popup .close { position: absolute; top: 20px; right: 20px; width: 32px; height: 32px; border: none; background: transparent; cursor: pointer; font-size: 20px; color: var(--muted); }
.popup .close:hover { color: var(--ink); }
.popup h3 { font-family: var(--serif); font-weight: 300; font-size: 34px; line-height: 1.1; letter-spacing: -.01em; margin: 0 0 12px; }
.popup p { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin: 0 0 24px; }
.popup form { display: flex; margin-bottom: 12px; }
.popup input { flex: 1; padding: 14px 16px; border: 1px solid var(--ink); border-right: none; font: inherit; font-size: 14px; outline: none; background: var(--white); }
.popup button.sub { padding: 14px 22px; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); cursor: pointer; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; transition: background .3s, color .3s; }
.popup button.sub:hover { background: transparent; color: var(--ink); }
.popup .fine { font-size: 11px; color: var(--muted); line-height: 1.5; }

/* =================== REVEAL =================== */
.reveal {
  opacity: 0; transform: translateY(24px) scale(.99);
  transition: opacity .75s cubic-bezier(.2,.8,.2,1), transform .75s cubic-bezier(.2,.8,.2,1);
  will-change: transform, opacity;
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .1s; }
.reveal[data-d="2"] { transition-delay: .2s; }
.reveal[data-d="3"] { transition-delay: .3s; }
.reveal[data-d="4"] { transition-delay: .4s; }

/* =================== HAMBURGER TOGGLE =================== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
  color: inherit;
  z-index: 200;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: transform .42s cubic-bezier(.2,.8,.2,1), opacity .3s ease, width .3s ease;
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* =================== MOBILE NAV OVERLAY =================== */
.mob-nav {
  position: fixed; inset: 0; z-index: 190;
  background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column;
  padding: 0 32px 52px;
  transform: translateX(100%);
  transition: transform .55s cubic-bezier(.2,.8,.2,1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mob-nav-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0 40px; flex-shrink: 0;
}
.mob-nav-hdr .mob-logo img { height: 24px; width: auto; display: block; filter: brightness(0) invert(1); }
.mob-close {
  background: none; border: none; cursor: pointer; color: rgba(255,255,255,.7);
  font-size: 28px; font-weight: 300; line-height: 1; padding: 4px 8px;
  transition: color .2s; display: flex; align-items: center; justify-content: center;
}
.mob-close:hover { color: #fff; }
.mob-nav.open { transform: translateX(0); }

.mob-nav .m-links { list-style: none; margin: 0; padding: 0; }
.mob-nav .m-links li {
  border-top: 1px solid rgba(255,255,255,.1);
  transform: translateX(32px);
  opacity: 0;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .4s ease;
}
.mob-nav.open .m-links li { transform: none; opacity: 1; }
.mob-nav.open .m-links li:nth-child(1) { transition-delay: .07s; }
.mob-nav.open .m-links li:nth-child(2) { transition-delay: .11s; }
.mob-nav.open .m-links li:nth-child(3) { transition-delay: .15s; }
.mob-nav.open .m-links li:nth-child(4) { transition-delay: .19s; }
.mob-nav.open .m-links li:nth-child(5) { transition-delay: .23s; }
.mob-nav .m-links a {
  display: block;
  font-size: clamp(30px, 8vw, 46px);
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: 1;
  padding: 20px 0;
  color: rgba(255,255,255,.88);
  transition: color .2s, opacity .2s;
}
.mob-nav .m-links a:hover { color: #fff; }
.mob-nav .m-links a.active { opacity: .45; }

.mob-cta {
  margin-top: 44px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s ease .28s, transform .4s ease .28s;
}
.mob-nav.open .mob-cta { opacity: 1; transform: none; }
.mob-cta .btn { font-size: 12px; }

.mob-info {
  margin-top: auto;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  opacity: 0;
  transition: opacity .4s ease .32s;
}
.mob-nav.open .mob-info { opacity: 1; }
.mob-info a { color: rgba(255,255,255,.35); }

/* =================== RESPONSIVE =================== */
@media (max-width: 1100px) {
  :root { --gutter: 28px; }
  .block-head { grid-template-columns: 1fr; gap: 24px; }
  .treat-grid { grid-template-columns: 1fr 1fr; }
  footer .grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  header.site nav,
  header.site .actions { display: none; }
  header.site .bar { grid-template-columns: 1fr auto; }
  .nav-toggle { display: flex; }
  section.block { padding: 90px 0; }
  .page-intro { padding: 120px 0 60px; }
}
@media (max-width: 640px) {
  .treat-grid { grid-template-columns: 1fr; }
  footer .grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; }
}
