/* =========================================================
   Perla · Nails Lashes Brows Aesthetic — soft luxury editorial
   ========================================================= */

:root {
  --bg: #F6F0EE;
  --surface: #FAF6F5;
  --surface-rose: #F3E4E2;
  --rose: #B9787D;
  --rose-deep: #9A5A60;
  --rose-soft: #DDB3B5;
  --ink: #1E1A1B;
  --on-ink: #FAF6F5;
  --muted: #8C8183;
  --line: #E8DCDA;
  --watermark: rgba(30, 26, 27, 0.06);
  --glass: rgba(255, 255, 255, 0.7);
  --edge: linear-gradient(90deg, transparent 55%, rgba(205, 152, 156, 0.28));
  --shadow: 0 30px 60px -30px rgba(120, 70, 74, 0.25);

  --f-serif: "Instrument Serif", "Playfair Display", Georgia, serif;
  --f-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-script: "Allura", "Snell Roundhand", cursive;

  --r-xl: 40px;
  --r-lg: 24px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #161213;
  --surface: #1F1A1B;
  --surface-rose: #2A2022;
  --rose: #D49A9E;
  --rose-deep: #E6B4B7;
  --rose-soft: #7C5357;
  --ink: #F5EDEB;
  --on-ink: #1E1A1B;
  --muted: #A8999B;
  --line: #352B2D;
  --watermark: rgba(245, 237, 235, 0.05);
  --glass: rgba(31, 26, 27, 0.72);
  --edge: linear-gradient(90deg, transparent 55%, rgba(212, 154, 158, 0.12));
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  background-image: var(--edge);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, p, figure, blockquote, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--rose-soft); color: var(--ink); }

.shell { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: 99px; transition: top .3s; }
.skip:focus { top: 16px; }

/* ---------- Tipografía ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rose); }
.eyebrow--center { justify-content: center; }

.display {
  font-family: var(--f-serif); font-weight: 400;
  font-size: clamp(56px, 9vw, 116px); line-height: .92; letter-spacing: -.03em;
  text-wrap: balance;
}
.display--md { font-size: clamp(44px, 6.4vw, 84px); }
.display em, .h2 em { font-style: italic; color: var(--rose); }

.h2 {
  font-family: var(--f-sans); font-weight: 300;
  font-size: clamp(30px, 4vw, 52px); line-height: 1.05; letter-spacing: -.03em;
  text-wrap: balance;
}
.h2 > span { display: block; }

.tone {
  background: linear-gradient(90deg, var(--rose-deep), var(--rose) 45%, var(--rose-soft));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Botones ---------- */
.btn {
  --pad: 6px;
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  padding: var(--pad) var(--pad) var(--pad) 22px; min-height: 48px;
  background: var(--ink); color: var(--on-ink);
  border-radius: 99px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  transition: transform .4s var(--ease), padding .4s var(--ease), background-color .3s;
  will-change: transform;
}
.btn__arrow {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--on-ink); color: var(--ink);
  transition: transform .5s var(--ease);
}
.btn__arrow svg { width: 15px; height: 15px; stroke-width: 2; }
.btn:hover { padding-left: 28px; background: var(--rose-deep); }
.btn:hover .btn__arrow { transform: rotate(45deg); }
.btn:active { transform: scale(.97); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn--ghost .btn__arrow { background: var(--ink); color: var(--on-ink); }
.btn--ghost:hover { background: var(--surface); border-color: var(--rose-soft); }
.btn--wa { width: 100%; justify-content: space-between; }

.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 60%, transparent);
  transition: border-color .3s, transform .3s var(--ease), color .3s;
}
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn:hover { border-color: var(--rose); color: var(--rose); transform: translateY(-2px); }
.icon-btn:active { transform: scale(.94); }

.arrows { display: flex; gap: 10px; }
.arrow {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: var(--on-ink);
  transition: transform .35s var(--ease), background-color .3s;
}
.arrow svg { width: 18px; height: 18px; }
.arrow--light { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.arrow:hover { transform: scale(1.08); }
.arrow:active { transform: scale(.94); }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  background: var(--bg);
  transition: opacity .7s var(--ease), visibility .7s;
}
.loader__mark { display: grid; justify-items: center; gap: 6px; }
.loader__word {
  font-family: var(--f-serif); font-size: 72px; line-height: 1; color: var(--rose); letter-spacing: -.02em;
  clip-path: inset(0 100% 0 0); animation: wipe 1.1s var(--ease) .1s forwards;
}
.loader__sub { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); opacity: 0; animation: fade .6s .7s forwards; }
.loader__bar { width: 120px; height: 1px; background: var(--line); margin-top: 14px; overflow: hidden; }
.loader__bar i { display: block; height: 100%; background: var(--rose); transform-origin: left; transform: scaleX(0); animation: grow 1.4s var(--ease) forwards; }
.is-loaded .loader { opacity: 0; visibility: hidden; }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
@keyframes fade { to { opacity: 1; } }
@keyframes grow { to { transform: scaleX(1); } }

/* ---------- Skeleton ---------- */
.ph { position: relative; overflow: hidden; background: var(--surface-rose); border-radius: var(--r-lg); isolation: isolate; }
.ph::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  background-size: 220% 100%; animation: shimmer 1.4s linear infinite;
  transition: opacity .5s;
}
.ph.loaded::after { opacity: 0; animation: none; }
.ph img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.ph.loaded img { opacity: 1; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }

/* ---------- Navegación ---------- */
.nav { position: sticky; top: 0; z-index: 100; padding: 14px 0; transition: padding .4s var(--ease); }
.nav__inner {
  width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 8px 10px 8px 22px; border-radius: 99px;
  border: 1px solid transparent;
  transition: background-color .4s, border-color .4s, box-shadow .4s;
}
.nav.is-scrolled .nav__inner {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  border-color: var(--line); box-shadow: var(--shadow);
}
.logo { display: grid; line-height: 1; }
.logo__word { font-family: var(--f-serif); font-size: 32px; color: var(--rose); letter-spacing: -.02em; }
.logo__sub { font-size: 8.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.nav__links { display: flex; gap: 28px; font-size: 13px; font-weight: 500; }
.nav__links a, .footer__links a, .info-list a { position: relative; }
.nav__links a::after, .footer__links a::after, .info-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: var(--rose);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.nav__links a:hover::after, .footer__links a:hover::after, .info-list a:hover::after { transform: scaleX(1); }
.nav__links a:hover { color: var(--rose-deep); }
.nav__tools { display: flex; align-items: center; gap: 8px; }

.pill-toggle {
  display: flex; padding: 3px; gap: 2px; border-radius: 99px; border: 1px solid var(--line);
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}
.pill-toggle span { padding: 7px 10px; border-radius: 99px; transition: background-color .3s, color .3s; color: var(--muted); }
html[lang="es"] .pill-toggle [data-lang="es"], html[lang="en"] .pill-toggle [data-lang="en"] { background: var(--ink); color: var(--on-ink); }

.theme-toggle .i-moon { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-moon { display: block; }
.theme-toggle svg { transition: transform .6s var(--ease); }
.theme-toggle:hover svg { transform: rotate(40deg); }

.menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ink);
  place-items: center; align-content: center; gap: 5px;
}
.menu-btn span { display: block; width: 16px; height: 1.5px; background: var(--on-ink); transition: transform .4s var(--ease); }
.menu-open .menu-btn span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 110px var(--gutter) 40px;
  clip-path: circle(0% at calc(100% - 40px) 40px);
  transition: clip-path .7s var(--ease);
}
.mobile-menu[hidden] { display: flex; visibility: hidden; }
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; }
.mobile-menu nav { display: grid; gap: 6px; }
.mobile-menu nav a {
  font-family: var(--f-serif); font-size: clamp(44px, 12vw, 64px); line-height: 1.05; letter-spacing: -.02em;
  opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .6s var(--ease), color .3s;
}
.mobile-menu nav a:hover { color: var(--rose); }
.menu-open .mobile-menu nav a { opacity: 1; transform: none; }
.menu-open .mobile-menu nav a:nth-child(2) { transition-delay: .05s; }
.menu-open .mobile-menu nav a:nth-child(3) { transition-delay: .1s; }
.menu-open .mobile-menu nav a:nth-child(4) { transition-delay: .15s; }
.menu-open .mobile-menu nav a:nth-child(5) { transition-delay: .2s; }
.menu-open .mobile-menu nav a:nth-child(6) { transition-delay: .25s; }
.mobile-menu__foot { display: grid; gap: 16px; justify-items: start; color: var(--muted); font-size: 13px; }
.menu-open { overflow: hidden; }

/* ---------- 1. HERO ---------- */
.hero { margin-top: 8px; }
.hero__card {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  background:
    radial-gradient(70% 90% at 100% 60%, color-mix(in srgb, var(--rose-soft) 55%, transparent), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
  padding: clamp(18px, 2.4vw, 28px);
  min-height: min(820px, calc(100svh - 110px));
  display: flex; flex-direction: column;
}
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 3; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px 7px 10px;
  border-radius: 99px; border: 1px solid var(--line); background: var(--glass);
  font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.chip svg { width: 14px; height: 14px; color: var(--rose); }

.hero__watermark {
  position: absolute; left: 0; right: 0; bottom: -2%; z-index: 0;
  display: flex; justify-content: center; pointer-events: none;
}
.hero__watermark span {
  font-family: var(--f-sans); font-weight: 300; line-height: .8; letter-spacing: -.04em;
  font-size: clamp(120px, 27vw, 400px); color: var(--watermark);
  will-change: transform;
}

.hero__grid {
  position: relative; z-index: 2; flex: 1;
  display: grid; grid-template-columns: 1fr minmax(260px, 30%) 1fr; gap: clamp(20px, 3vw, 48px);
  align-items: center; padding: clamp(20px, 3vw, 40px) clamp(4px, 1.5vw, 20px) 0;
}
.hero__left { display: grid; gap: 22px; justify-items: start; align-self: start; padding-top: 4vh; }
.hero__title {
  font-family: var(--f-sans); font-weight: 300; font-size: clamp(32px, 3.6vw, 54px);
  line-height: 1.02; letter-spacing: -.035em; text-wrap: balance;
}
.hero__title > span { display: block; }
.hero__title-2 { position: relative; display: inline-block !important; padding-bottom: 10px; }
.brush { position: absolute; left: -2%; bottom: -6px; width: 104%; height: 18px; color: var(--rose); }
.brush path { stroke-width: 2.4; stroke-dasharray: 520; stroke-dashoffset: 520; }
.is-ready .brush path { animation: draw 1.4s var(--ease) 1.6s forwards; }
.hero__lead { max-width: 34ch; color: var(--muted); font-size: 14.5px; }

.hero__portrait {
  align-self: end; aspect-ratio: 3 / 4.3; width: 100%;
  border-radius: 999px 999px var(--r-lg) var(--r-lg);
  box-shadow: var(--shadow);
}
.hero__portrait img { object-position: 50% 50%; }

.hero__right { display: grid; gap: 28px; justify-items: end; text-align: right; align-self: start; padding-top: 2vh; }
.hero__headline {
  font-family: var(--f-sans); font-weight: 300; font-size: clamp(32px, 3.9vw, 58px);
  line-height: 1; letter-spacing: -.035em;
}
.hero__headline > span { display: block; }

.glass {
  position: relative; width: min(100%, 330px); text-align: left;
  padding: 18px 18px 16px; border-radius: 22px;
  background: var(--glass); border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.glass__list { display: grid; gap: 10px; padding-right: 44px; font-size: 12.5px; font-weight: 500; line-height: 1.35; }
.glass__list li, .feature-list li { position: relative; padding-left: 20px; }
.glass__list li::before, .feature-list li::before {
  content: "✳"; position: absolute; left: 0; top: 0; color: var(--rose); font-size: 12px;
}
.glass__go {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); display: grid; place-items: center; background: var(--surface);
  transition: transform .5s var(--ease), background-color .3s, color .3s;
}
.glass__go svg { width: 14px; height: 14px; }
.glass__go:hover { transform: rotate(45deg); background: var(--ink); color: var(--on-ink); }
.glass__proof { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.glass__proof strong { color: var(--ink); font-size: 15px; }
.avatars { display: flex; }
.avatars img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface); }
.avatars img + img { margin-left: -10px; }

/* Entrada del hero */
.hero .chip, .hero__lead, .hero .btn, .hero__headline > span, .glass { opacity: 0; transform: translateY(18px); }
.hero__portrait { opacity: 0; transform: translateY(60px); }
.hero__watermark span { opacity: 0; transform: scale(1.08); }
.split .w { display: inline-block; opacity: 0; transform: translateY(.5em); }
.is-ready .hero .chip, .is-ready .hero__lead, .is-ready .hero .btn,
.is-ready .hero__headline > span, .is-ready .glass, .is-ready .hero__portrait {
  opacity: 1; transform: none;
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
}
.is-ready .hero__watermark span { opacity: 1; transform: scale(1); transition: opacity 1.6s var(--ease), transform 2s var(--ease); }
.is-ready .split .w { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(.35s + var(--i) * .07s); }
.is-ready .hero .chip:nth-child(2) { transition-delay: .1s; }
.is-ready .hero__portrait { transition-delay: .2s; transition-duration: 1.4s; }
.is-ready .hero__lead { transition-delay: .9s; }
.is-ready .hero .btn { transition-delay: 1.05s; }
.is-ready .hero__headline > span:nth-child(1) { transition-delay: .6s; }
.is-ready .hero__headline > span:nth-child(2) { transition-delay: .72s; }
.is-ready .hero__headline > span:nth-child(3) { transition-delay: .84s; }
.is-ready .glass { transition-delay: 1.2s; }
/* el botón del hero vuelve a su transición normal tras entrar */
.is-ready.hero-done .hero .btn { transition: transform .4s var(--ease), padding .4s var(--ease), background-color .3s; }

@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 2. ¿TE SUENA FAMILIAR? ---------- */
.pain { padding: clamp(80px, 11vw, 150px) 0 clamp(60px, 8vw, 110px); }
.pain__grid { display: grid; grid-template-columns: 1.15fr .85fr .6fr; gap: clamp(24px, 4vw, 64px); align-items: stretch; }
.pain__left { display: flex; flex-direction: column; gap: 18px; }
.pain__text { margin-top: auto; max-width: 420px; }
.pain__line { font-size: 15px; line-height: 1.5; min-height: 3em; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.pain__line strong { font-weight: 600; }
.pain__line.is-swapping { opacity: 0; transform: translateY(8px); }
.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 18px; }
.progress button { position: relative; height: 18px; }
.progress button::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--line); }
.progress button::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
}
.progress button[aria-selected="true"]::after { animation: progress 6s linear forwards; }
.progress.is-paused button[aria-selected="true"]::after { animation-play-state: paused; }
.progress button.is-done::after { transform: scaleX(1); }
@keyframes progress { to { transform: scaleX(1); } }

.pain__media { position: relative; aspect-ratio: 3 / 3.9; }
.pain__media figure { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity .9s var(--ease), transform 1.2s var(--ease); }
.pain__media figure.is-active { opacity: 1; transform: none; }

.pain__side { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.oval-num { position: relative; width: clamp(130px, 13vw, 170px); aspect-ratio: 16 / 9; display: grid; place-items: center; }
.oval-num svg { position: absolute; inset: -6%; width: 112%; height: 112%; color: var(--rose); }
.oval-num__n { font-family: var(--f-serif); font-size: clamp(54px, 6vw, 76px); line-height: 1; transition: opacity .3s; }
.draw { stroke-width: 1.6; stroke-dasharray: 600; stroke-dashoffset: 600; }
.in .draw, .in.draw, .reveal.in .draw { animation: draw 1.6s var(--ease) .3s forwards; }

/* ---------- 3. MÉTODO ---------- */
.method__card {
  position: relative; border-radius: var(--r-xl); background: var(--surface-rose);
  padding: clamp(40px, 6vw, 80px) clamp(18px, 5vw, 72px);
  border: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.method__head { position: relative; display: grid; justify-items: center; gap: 16px; text-align: center; margin-bottom: clamp(36px, 5vw, 64px); }
.script-note {
  position: absolute; left: 2%; top: 58%;
  font-family: var(--f-script); font-size: clamp(34px, 3.6vw, 48px); color: var(--rose); line-height: 1;
  display: flex; align-items: flex-start; gap: 0;
  transform: rotate(-6deg);
}
.script-note svg { width: 70px; height: 36px; margin-top: 16px; }
.method__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.method__img { aspect-ratio: 4 / 4.4; }
.method__body { display: grid; gap: 32px; justify-items: start; }
.feature-list { width: 100%; }
.feature-list li { display: grid; gap: 4px; padding-block: 18px; border-bottom: 1px solid color-mix(in srgb, var(--rose-soft) 55%, transparent); }
.feature-list li:first-child { border-top: 1px solid color-mix(in srgb, var(--rose-soft) 55%, transparent); }
.feature-list li::before { top: 18px; }
.feature-list strong { font-size: 14.5px; font-weight: 700; }
.feature-list span { font-size: 13.5px; color: var(--muted); max-width: 46ch; }

/* ---------- Encabezados de sección ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head > div { display: grid; gap: 14px; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center .eyebrow { margin-bottom: -8px; }

/* ---------- 4. SERVICIOS ---------- */
.services { padding-top: clamp(90px, 12vw, 160px); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); }
.svc {
  border-radius: 28px; background: var(--surface); border: 1px solid var(--line);
  padding: 10px; display: grid; grid-template-rows: auto 1fr;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity .7s var(--ease);
}
.svc .ph { aspect-ratio: 4 / 3.6; border-radius: 20px; }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.svc:hover img, .bento figure:hover img, .gallery__track figure:hover img, .method__img:hover img { transform: scale(1.04); }
.svc__body { display: grid; gap: 6px; padding: 18px 12px 10px; align-content: start; }
.svc h3 { font-family: var(--f-serif); font-weight: 400; font-size: 28px; line-height: 1.05; letter-spacing: -.01em; }
.svc p { color: var(--muted); font-size: 13.5px; }
.svc__more {
  display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 14px;
  border-top: 1px solid var(--line); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.svc__more i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); transition: transform .5s var(--ease), background-color .3s, color .3s; }
.svc__more svg { width: 13px; height: 13px; }
.svc__more:hover i, .svc:hover .svc__more i { transform: rotate(45deg); background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.services__also { margin-top: 28px; text-align: center; color: var(--muted); font-size: 14px; }
.services__also span { color: var(--rose-deep); font-weight: 600; }

/* ---------- 5. ESPACIO ---------- */
.space { padding-top: clamp(90px, 12vw, 160px); }
.bento {
  display: grid; gap: clamp(10px, 1.4vw, 18px);
  grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 280px 280px;
  grid-template-areas: "a b d" "a c e";
}
.bento__a { grid-area: a; } .bento__b { grid-area: b; } .bento__c { grid-area: c; } .bento__e { grid-area: e; }
.bento__d {
  grid-area: d; border-radius: var(--r-lg); background: var(--ink); color: var(--on-ink);
  padding: 28px; display: flex; flex-direction: column; justify-content: space-between;
}
.bento__quote { font-family: var(--f-serif); font-size: clamp(24px, 2.2vw, 30px); line-height: 1.12; }
.bento__addr { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .65; }

/* ---------- 6. GALERÍA ---------- */
.gallery { padding-top: clamp(90px, 12vw, 160px); }
.gallery__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 24vw, 320px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2));
  scroll-padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2));
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track figure { aspect-ratio: 3 / 4; scroll-snap-align: start; }
.gallery__track figure:nth-child(even) { margin-top: 40px; }
.gallery__foot { display: flex; justify-content: center; margin-top: 40px; }

/* ---------- 7. TESTIMONIOS ---------- */
.reviews { padding-top: clamp(90px, 12vw, 160px); }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); }
.review {
  display: flex; flex-direction: column; gap: 18px; padding: 30px; border-radius: 28px;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity .7s var(--ease);
}
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.review:nth-child(2) { background: var(--surface-rose); }
.stars { color: var(--rose); letter-spacing: 3px; font-size: 13px; }
.review blockquote { font-family: var(--f-serif); font-style: italic; font-size: clamp(22px, 1.9vw, 26px); line-height: 1.22; flex: 1; }
.review figcaption { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.review figcaption > span:last-child { display: grid; line-height: 1.3; }
.review small { color: var(--muted); font-size: 12px; }
.initial { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--rose); color: #fff; font-family: var(--f-serif); font-size: 20px; }

/* ---------- 8. PROMO ---------- */
.promo { padding-top: clamp(90px, 12vw, 160px); }
.promo__band {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: linear-gradient(120deg, var(--surface-rose), color-mix(in srgb, var(--rose-soft) 70%, var(--surface-rose)));
  padding: clamp(60px, 9vw, 120px) var(--gutter);
  display: grid; justify-items: center; gap: 18px; text-align: center;
}
.promo__watermark {
  position: absolute; inset: auto 0 -6% 0; text-align: center; pointer-events: none;
  font-weight: 300; font-size: clamp(120px, 26vw, 380px); line-height: .8; letter-spacing: -.04em;
  color: rgba(255, 255, 255, .35);
}
[data-theme="dark"] .promo__watermark { color: rgba(255, 255, 255, .04); }
.promo__script { position: relative; font-family: var(--f-script); font-size: clamp(48px, 7vw, 96px); line-height: 1; color: var(--rose-deep); }
.promo__text { position: relative; color: var(--ink); opacity: .7; }
.promo .btn { position: relative; margin-top: 8px; }

/* ---------- 9. CONTACTO ---------- */
.contact { padding: clamp(90px, 12vw, 160px) 0 clamp(80px, 10vw, 140px); }
.contact__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact__form-wrap { display: grid; gap: 16px; }
.contact__lead { color: var(--muted); max-width: 46ch; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; margin-top: 18px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.field label small { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface);
  transition: border-color .3s, box-shadow .3s, background-color .3s;
  appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B9787D' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 16px; padding-right: 44px;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--rose-soft); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rose) 18%, transparent); }
.field__err { display: none; font-size: 12.5px; color: #B4434B; }
[data-theme="dark"] .field__err { color: #F09AA0; }
.field.is-invalid input, .field.is-invalid select { border-color: #C9545C; }
.field.is-invalid .field__err { display: block; animation: shake .4s var(--ease); }
.field.is-valid input, .field.is-valid select { border-color: color-mix(in srgb, #4E9A6B 60%, var(--line)); }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.form__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.form__status { font-size: 13.5px; color: var(--rose-deep); }

.contact__info { display: grid; gap: 22px; padding: 12px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); }
.map { aspect-ratio: 4 / 3; border-radius: 20px; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.4) sepia(.15); }
[data-theme="dark"] .map iframe { filter: grayscale(.6) invert(.9) hue-rotate(180deg) brightness(.9); }
.map.loaded::after { opacity: 0; animation: none; }
.info-list { display: grid; gap: 16px; padding: 4px 12px; }
.info-list dt { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rose); }
.info-list dd { font-size: 14px; }
.contact__info .btn { margin: 0 4px 4px; width: auto; }

/* ---------- 10. FOOTER ---------- */
.footer { position: relative; overflow: hidden; padding-top: 60px; border-top: 1px solid var(--line); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.footer__brand { display: grid; line-height: 1; }
.footer__brand .logo__word { font-size: 44px; }
.footer__links { display: flex; gap: 26px; flex-wrap: wrap; font-size: 13px; font-weight: 500; }
.footer__social { display: flex; gap: 8px; }
.footer__watermark {
  font-weight: 300; font-size: clamp(110px, 27vw, 420px); line-height: .78; letter-spacing: -.045em;
  text-align: center; color: var(--watermark); margin-top: 30px; user-select: none;
}
.footer__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 18px 0 28px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }

/* ---------- Flotantes ---------- */
.fab-wa, .to-top {
  position: fixed; right: max(16px, 2vw); z-index: 80; display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%; box-shadow: var(--shadow);
  transition: transform .4s var(--ease), opacity .4s, visibility .4s, background-color .3s;
}
.fab-wa { bottom: max(16px, 2vw); background: var(--rose); color: #fff; }
.fab-wa svg { width: 24px; height: 24px; }
.fab-wa:hover { transform: scale(1.08); background: var(--rose-deep); }
.fab-wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--rose); animation: ping 2.6s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.to-top {
  bottom: calc(max(16px, 2vw) + 66px); width: 46px; height: 46px; background: var(--ink); color: var(--on-ink);
  opacity: 0; visibility: hidden; transform: translateY(12px);
}
.to-top svg { width: 18px; height: 18px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); }
.to-top:active { transform: scale(.94); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .menu-btn { display: grid; }
  .hero__grid { grid-template-columns: 1fr 1fr; grid-template-areas: "l p" "r p"; align-items: start; }
  .hero__left { grid-area: l; }
  .hero__portrait { grid-area: p; align-self: stretch; aspect-ratio: auto; min-height: 520px; }
  .hero__right { grid-area: r; justify-items: start; text-align: left; padding-top: 0; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .pain__grid { grid-template-columns: 1fr 1fr; }
  .pain__side { grid-column: 1 / -1; flex-direction: row; align-items: center; }
}

@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .hide-sm { display: none; }
  .nav { padding: 10px 0; }
  .nav__inner { padding: 6px 6px 6px 16px; }
  .logo__word { font-size: 28px; }
  .nav .logo__sub { white-space: nowrap; letter-spacing: .16em; font-size: 7.5px; }
  .hero__card { min-height: 0; padding: 16px; border-radius: 30px; }
  .hero__grid { grid-template-columns: 1fr; grid-template-areas: "l" "p" "r"; padding: 26px 0 0; gap: 28px; }
  .hero__portrait { min-height: 0; aspect-ratio: 3 / 3.7; border-radius: 999px 999px 22px 22px; }
  .hero__title { font-size: clamp(34px, 10vw, 44px); }
  .hero__headline { font-size: clamp(32px, 9vw, 42px); }
  .hero__right { justify-items: stretch; }
  .glass { width: 100%; }
  .hero__watermark { bottom: auto; top: 46%; }
  .pain__grid { grid-template-columns: 1fr; }
  .pain__media { order: -1; aspect-ratio: 4 / 4.4; }
  .pain__left { order: 0; }
  .pain__side { order: 1; }
  .oval-num { width: 120px; }
  .method__grid { grid-template-columns: 1fr; }
  .script-note { position: static; transform: rotate(-4deg); margin-top: -6px; }
  .services__grid, .reviews__grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 200px 200px auto; grid-template-areas: "a a" "b c" "e e" "d d"; }
  .bento__d { min-height: 200px; }
  .gallery__track { grid-auto-columns: 72vw; }
  .gallery__track figure:nth-child(even) { margin-top: 0; }
  .contact__grid { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .form__actions .btn { width: 100%; justify-content: space-between; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .field input, .field select, .field textarea { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .reveal, .split .w, .hero .chip, .hero__lead, .hero .btn, .hero__headline > span, .glass, .hero__portrait, .hero__watermark span { opacity: 1 !important; transform: none !important; }
  .draw, .brush path { stroke-dashoffset: 0 !important; }
}

/* Logo en el bento del espacio */
.bento__logo { display: grid; place-items: center; background: #F8ECE9; }
.bento__logo img { position: absolute; inset: 0; margin: auto; width: auto; height: 86%; aspect-ratio: 1; object-fit: cover; clip-path: circle(46.5%); }
.bento__logo:hover img { transform: scale(1.04) rotate(-3deg); }

/* ---------- Ajustes móvil ---------- */
@media (max-width: 760px) {
  /* Servicios: carrusel deslizable en vez de 6 tarjetas apiladas */
  .services__grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px;
    scroll-padding-inline: var(--gutter);
  }
  .services__grid::-webkit-scrollbar { display: none; }
  .svc { scroll-snap-align: start; }
  .svc h3 { font-size: 25px; }
  .services__hint { display: block; }

  /* Botones flotantes más compactos y fuera del contenido */
  .fab-wa { width: 48px; height: 48px; right: 12px; bottom: 12px; }
  .fab-wa svg { width: 22px; height: 22px; }
  .to-top { width: 40px; height: 40px; right: 16px; bottom: 70px; }
  .contact, .footer__legal { padding-bottom: 84px; }

  /* Slider: número y flechas con aire, flechas a la izquierda */
  .pain__side { flex-direction: row-reverse; justify-content: space-between; align-items: center; padding-right: 0; }
  .oval-num { width: 104px; margin-right: 6px; }
}
.services__hint { display: none; margin-top: 4px; text-align: center; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Ajustes tablet / iPad ---------- */
@media (max-width: 1080px) {
  .script-note { position: static; transform: rotate(-4deg); margin-top: -6px; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__info { grid-template-columns: 1.1fr 1fr; align-items: start; }
  .contact__info .map { grid-row: span 2; height: 100%; aspect-ratio: auto; min-height: 260px; }
  .reviews__grid { gap: 12px; }
  .review { padding: 24px; }
}
@media (max-width: 760px) {
  .contact__info { grid-template-columns: 1fr; }
  .contact__info .map { grid-row: auto; aspect-ratio: 4 / 3; min-height: 0; }
}
@media (max-width: 1080px) { .footer__legal { padding-bottom: 90px; } }

/* ---------- Reserva en línea ---------- */
.book { padding-top: clamp(90px, 12vw, 160px); }
.book__lead { max-width: 38ch; color: var(--muted); }
.book__card {
  border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line);
  padding: clamp(14px, 2vw, 24px); display: grid; gap: 18px;
}
.book__services { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.book__services::-webkit-scrollbar { display: none; }
.book__services button {
  flex: none; padding: 10px 16px; border-radius: 99px; border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 600; white-space: nowrap; background: var(--bg);
  transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.book__services button:hover { border-color: var(--rose); color: var(--rose-deep); }
.book__services button:active { transform: scale(.96); }
.book__services button[aria-selected="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.book__cal { position: relative; min-height: 640px; border-radius: 20px; overflow: hidden; background: var(--bg); }
.book__cal iframe { border-radius: 20px; }
.book__loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; }
.book__loading span { width: 8px; height: 8px; border-radius: 50%; background: var(--rose); animation: dot 1s var(--ease) infinite alternate; }
.book__loading span:nth-child(2) { animation-delay: .15s; } .book__loading span:nth-child(3) { animation-delay: .3s; }
@keyframes dot { to { opacity: .2; transform: translateY(-6px); } }
.book__fallback { display: grid; justify-items: center; gap: 12px; text-align: center; padding: clamp(36px, 6vw, 72px) 16px; }
.book__fallback[hidden], .book__services[hidden], .book__cal[hidden] { display: none; }
.book__icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-rose); color: var(--rose); }
.book__icon svg { width: 26px; height: 26px; }
.book__fb-title { font-family: var(--f-serif); font-size: clamp(28px, 3vw, 38px); line-height: 1.05; }
.book__fb-text { color: var(--muted); max-width: 44ch; margin-bottom: 8px; }
@media (max-width: 760px) {
  .book__card { border-radius: 26px; }
  .book__cal { min-height: 560px; margin-inline: -6px; }
}

/* Aviso nails bar sin cita y nota de precios */
.book__walkin { padding: 14px 18px; border-radius: 16px; background: var(--surface-rose); font-size: 14px; color: var(--ink); }
.book__walkin strong { color: var(--rose-deep); }
.services__price { margin-top: 28px; text-align: center; font-size: 15px; }
.services__price a { color: var(--rose-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.services__price a:hover { color: var(--rose); }
.services__price + .services__also { margin-top: 8px; }

/* Chip de ubicación → Google Maps */
.chip--link { transition: border-color .3s, background-color .3s, transform .3s var(--ease); }
.chip--link .chip__go { width: 11px; height: 11px; color: var(--muted); margin-left: 2px; transition: transform .4s var(--ease), color .3s; }
.chip--link:hover { border-color: var(--rose); background: var(--surface); transform: translateY(-1px); }
.chip--link:hover .chip__go { transform: rotate(45deg); color: var(--rose); }
.chip--link:active { transform: scale(.97); }
