/* =============================================================
   1. Tokens
   ============================================================= */
/* Identidad MAKTUB — paleta y tipografías del manual de marca */
:root {
  --bg:        #FDF9F5;   /* crema muy claro, base del manual */
  --bg-2:      #F7E7D4;   /* durazno */
  --bg-3:      #FFFFFF;
  --lavanda:   #D9C7E6;
  --ink:       #3F2040;   /* violeta profundo, derivado de #5B2F5B para texto */
  --purple:    #5B2F5B;   /* violeta de marca */
  --ink-soft:  #52355A;
  --ink-mute:  #6B5170;   /* AA-safe (≥4.5:1) sobre bg, bg-2 y tarjetas */
  --gold:      #D4AF37;   /* dorado de marca — decorativo */
  --gold-2:    #7E5D22;   /* dorado oscurecido — AA en crema, durazno y tarjeta */
  --gold-soft: #F2E2B6;
  --line:      rgba(91, 47, 91, 0.16);
  --line-soft: rgba(91, 47, 91, 0.08);

  --serif: "Cinzel", "Georgia", serif;
  --sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
ul { list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  text-wrap: balance;
  line-height: 1.18;
  letter-spacing: .008em;
  font-weight: 500;
  color: var(--ink);
}
::selection { background: var(--purple); color: var(--gold-soft); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
@media (min-width: 960px) { .container { padding-inline: 2.5rem; } }

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .7rem 1.2rem; background: var(--purple); color: var(--gold-soft);
  z-index: 9999; border-radius: 8px; font-weight: 600;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-2); font-weight: 600;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); }

/* Fases lunares — firma gráfica MAKTUB */
.moons { width: 96px; height: 16px; color: var(--gold-2); }
.moon-rule {
  display: flex; align-items: center; justify-content: center; gap: 1.4rem;
  margin-block: .2rem 1.6rem;
}
.moon-rule::before, .moon-rule::after {
  content: ""; height: 1px; width: clamp(2rem, 12vw, 7rem);
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.brand-tagline {
  font-family: var(--serif); font-size: .78rem;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold-2); text-align: center;
}

.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-top: .9rem; }
.section-head p { margin-top: 1rem; font-size: 1.08rem; color: var(--ink-mute); }
.section-head.center { margin-inline: auto; text-align: center; }

section { position: relative; padding-block: clamp(4.5rem, 9vw, 8rem); }

/* =============================================================
   4. Icons (inline, thin-line, no external lib)
   ============================================================= */
.icon { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* =============================================================
   4b. Custom cursor
   ============================================================= */
.cursor {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  display: none; opacity: 0;
  transition: opacity .3s var(--ease-out);
}
.cursor.is-ready { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; will-change: transform; }
.cursor-dot { width: 5px; height: 5px; margin: -2.5px; background: var(--gold-2); border-radius: 50%; }
.cursor-ring {
  width: 30px; height: 30px; margin: -15px;
  border: 1px solid rgba(212,175,55,.6); border-radius: 50%;
  transition: width .4s var(--ease-out), height .4s var(--ease-out), margin .4s var(--ease-out),
              border-color .4s var(--ease-out), background .4s var(--ease-out);
}
.cursor.is-interactive .cursor-ring {
  width: 58px; height: 58px; margin: -29px;
  border-color: rgba(212,175,55,.85); background: rgba(212,175,55,.08);
}
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor .chip { cursor: none; }

/* Magnetic wrapper */
.has-magnetic { display: inline-flex; position: relative; isolation: isolate; }
.magnetic-inner { display: inline-flex; align-items: center; justify-content: center; gap: inherit; will-change: transform; transition: transform .7s var(--ease-soft); }

/* =============================================================
   5. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.7rem; border-radius: 999px;
  font-size: .95rem; font-weight: 600; letter-spacing: .01em;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), background .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out);
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: #2E152F; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -12px rgba(91,47,91,.42); background: var(--purple); color: var(--gold-soft); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--purple); color: var(--purple); box-shadow: 0 14px 28px -14px rgba(91,47,91,.3); }
.btn-lg { padding: 1.2rem 2.4rem; font-size: 1.05rem; }
.btn:active { transform: translateY(-1px); }

/* =============================================================
   6. Nav
   ============================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-block: 1.3rem;
  background: rgba(253, 249, 245, 0.5);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: background .4s var(--ease-out), padding .4s var(--ease-out), border-color .4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(253, 249, 245, 0.92);
  padding-block: .9rem;
  border-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav-logo { font-family: var(--serif); font-size: 1.15rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.nav-logo em { color: var(--gold-2); font-style: normal; }
.nav-links { display: none; align-items: center; gap: 2.1rem; font-size: .92rem; }
.nav-links a { position: relative; color: var(--ink-soft); padding-block: .3rem; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--gold); transition: right .35s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }
@media (min-width: 960px) { .nav-links { display: flex; } }

.nav-wa { display: none; }
@media (min-width: 960px) { .nav-wa { display: inline-flex; padding: .7rem 1.3rem; font-size: .85rem; } }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  /* 44x44 minimum tap target */
  width: 44px; height: 44px; align-items: center; margin-right: -.5rem;
}
.nav-toggle span { width: 22px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease-out), opacity .3s var(--ease-out); }
@media (min-width: 960px) { .nav-toggle { display: none; } }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 99; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
  opacity: 0; pointer-events: none; transition: opacity .4s var(--ease-out);
}
.nav-mobile.is-open { opacity: 1; pointer-events: auto; }
.nav-mobile a { font-family: var(--serif); font-size: 1.7rem; color: var(--ink); }

/* =============================================================
   7. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-block: 7rem 4.5rem;
  overflow: clip;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.hero-bg-tint {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(253,249,245,.45) 0%, rgba(253,249,245,.28) 28%, rgba(253,249,245,.86) 64%, var(--bg) 100%),
    linear-gradient(90deg, rgba(253,249,245,.5) 0%, transparent 55%);
}
.hero-mesh {
  position: absolute; inset: 0; z-index: 1; mix-blend-mode: multiply; opacity: .5;
  background:
    radial-gradient(48% 38% at var(--mx, 22%) var(--my, 28%), rgba(212,175,55,0.4), transparent 65%),
    radial-gradient(42% 34% at 82% 78%, rgba(217,199,230,0.22), transparent 65%);
  filter: blur(70px);
  transition: background 1.2s var(--ease-soft);
}
.hero-grain {
  position: absolute; inset: 0; z-index: 2; opacity: .05; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.hero-inner { position: relative; z-index: 3; width: 100%; }
.hero-content { max-width: 760px; }
.hero-content .eyebrow { color: var(--gold-2); }
.hero-title {
  margin-top: 1.3rem;
  font-size: clamp(2.5rem, 6.4vw, 4.6rem);
  color: var(--ink);
}
.hero-title em { font-style: normal; color: var(--gold-2); }
.hero-sub {
  margin-top: 1.5rem; max-width: 46ch;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  color: var(--ink-soft);
}
.hero-actions { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1rem; }

.scroll-cue {
  position: absolute; z-index: 3; left: 50%; bottom: 1.8rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: var(--ink-mute); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
}
.scroll-cue .line { width: 1px; height: 34px; background: linear-gradient(var(--gold), transparent); animation: scrollCue 2.2s ease-in-out infinite; }
@keyframes scrollCue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* =============================================================
   8. About
   ============================================================= */
.about { background: var(--bg); }
.about-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 960px) { .about-grid { grid-template-columns: 1.05fr 0.95fr; gap: 4.5rem; } }
.about-figure { position: relative; border-radius: 22px; overflow: clip; aspect-ratio: 4/5; }
.about-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.about-figure:hover img { transform: scale(1.06); }
.about-figure::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--line-soft);
  pointer-events: none;
}
.about-copy p { margin-top: 1.3rem; font-size: 1.05rem; color: var(--ink-soft); }
.about-copy p:first-of-type { margin-top: 1.6rem; }
.about-copy strong { color: var(--ink); font-weight: 600; }
.firma-nombre {
  margin-top: 1.1rem !important; font-size: 1.08rem; color: var(--ink);
}
.firma-nombre strong {
  font-family: var(--serif); font-weight: 500;
  letter-spacing: .05em; color: var(--purple);
}

/* =============================================================
   8a. El espacio
   ============================================================= */
.espacio { background: var(--bg-2); }
.espacio-inner { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 960px) { .espacio-inner { grid-template-columns: 1fr 1fr; gap: 4.5rem; } }
.espacio-copy h2 {
  margin-top: .8rem; font-size: clamp(2.2rem, 4.2vw, 3.1rem);
  letter-spacing: .12em; text-transform: uppercase; color: var(--purple);
}
.maktub-claim {
  display: flex; align-items: center; gap: .9rem; flex-wrap: wrap;
  margin-top: .9rem !important;
  font-family: var(--serif); font-size: .74rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2);
}
.maktub-claim .moons { width: 74px; height: 13px; }
.espacio-copy p { margin-top: 1.2rem; font-size: 1.03rem; color: var(--ink-soft); max-width: 52ch; }
.espacio-copy .btn { margin-top: 2rem; }
.espacio-dir {
  display: flex; align-items: center; gap: .55rem;
  margin-top: 1.6rem !important; font-size: .95rem; color: var(--ink-mute);
}
.espacio-dir .icon { width: 17px; height: 17px; color: var(--gold-2); flex-shrink: 0; }
.espacio-dir a { color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line); transition: border-color .3s var(--ease-out), color .3s var(--ease-out); }
.espacio-dir a:hover { color: var(--gold-2); border-color: var(--gold); }
.espacio-figure {
  /* 2/3 = encuadre original de la foto: entra completa, sin recorte */
  position: relative; border-radius: 24px; overflow: clip; aspect-ratio: 2/3;
  box-shadow: 0 40px 70px -40px rgba(91,47,91,0.4);
}
.espacio-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.espacio-figure:hover img { transform: scale(1.05); }

/* =============================================================
   8a-bis. Maktub — centro holístico
   ============================================================= */
.maktub {
  background:
    radial-gradient(60% 60% at 15% 20%, rgba(217,199,230,.45), transparent 65%),
    radial-gradient(55% 55% at 85% 80%, rgba(247,231,212,.75), transparent 65%),
    var(--bg);
}
.maktub-inner { display: grid; gap: 2.8rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .maktub-inner { grid-template-columns: minmax(0,.8fr) 1fr; gap: 4.5rem; } }
.maktub-logo { display: flex; justify-content: center; }
.maktub-logo img {
  width: min(300px, 74vw); height: auto; border-radius: 50%;
  box-shadow: 0 40px 70px -38px rgba(91,47,91,.5);
  transition: transform 1s var(--ease-out);
}
.maktub-logo:hover img { transform: scale(1.03) rotate(-1.5deg); }
.maktub-copy h2 {
  margin-top: .7rem; font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: .16em; text-transform: uppercase; color: var(--purple);
}
.maktub-lema {
  display: flex; align-items: center; gap: .9rem; flex-wrap: wrap;
  margin-top: .9rem !important; font-family: var(--serif);
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2);
}
.maktub-lema .moons { width: 74px; height: 13px; }
.maktub-copy p { margin-top: 1.2rem; font-size: 1.03rem; color: var(--ink-soft); max-width: 50ch; }
.maktub-links { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
@media (max-width: 539px) {
  .maktub-links { flex-direction: column; align-items: stretch; }
  .maktub-links .has-magnetic, .maktub-links .magnetic-inner { width: 100%; }
}

/* =============================================================
   8b. Terapias (service menu)
   ============================================================= */
.terapias { background: var(--bg); }
.menu-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.menu-row { display: flex; gap: 1.3rem; padding: 1.8rem 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.menu-row-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: rgba(212,175,55,0.16); color: var(--gold-2);
  display: flex; align-items: center; justify-content: center;
}
.menu-row-icon .icon { width: 20px; height: 20px; }
.menu-row-photo {
  width: 84px; height: 104px; flex-shrink: 0; border-radius: 12px; overflow: clip;
  box-shadow: 0 14px 26px -16px rgba(91,47,91,.45);
}
.menu-row-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.menu-row:hover .menu-row-photo img { transform: scale(1.07); }
@media (max-width: 539px) { .menu-row-photo { width: 62px; height: 78px; border-radius: 10px; } }
.menu-row-body { flex: 1; min-width: 0; }
.menu-row-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.menu-row-top h3 { font-size: 1.2rem; }
.menu-row-price { font-family: var(--serif); color: var(--gold-2); font-size: .98rem; letter-spacing: .04em; white-space: nowrap; }
.menu-row-body > p { margin-top: .5rem; color: var(--ink-mute); font-size: .95rem; max-width: 62ch; }
.menu-row-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; flex-wrap: wrap; gap: .8rem; }
.menu-row-duration { display: flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--ink-mute); }
.menu-row-duration .icon { width: 15px; height: 15px; }
.menu-row-cta { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 600; color: var(--gold-2); }
.menu-row-cta .icon { width: 14px; height: 14px; transition: transform .3s var(--ease-out); }
.menu-row-cta:hover .icon { transform: translateX(3px); }

/* =============================================================
   8c. Reserva (booking preview)
   ============================================================= */
.reserva { background: var(--bg-2); }
.reserva-grid { display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 960px) { .reserva-grid { grid-template-columns: 1fr 1fr; align-items: start; gap: 4rem; } }
.reserva-proceso h2 { margin-top: .8rem; font-size: clamp(1.9rem, 3.2vw, 2.5rem); }
.process-grid { margin-top: 2.2rem; display: grid; gap: 1.7rem; grid-template-columns: 1fr 1fr; }
.process-num { font-family: var(--serif); font-size: 1.5rem; letter-spacing: .06em; color: var(--gold-2); opacity: .8; }
.process-step h3 { margin-top: .3rem; font-size: 1.05rem; }
.process-step p { margin-top: .4rem; font-size: .88rem; color: var(--ink-mute); }

.booking-card {
  position: relative; border-radius: 26px; padding: 2.2rem; overflow: clip;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.75);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 30px 60px -30px rgba(91,47,91,0.28);
}
@supports not (backdrop-filter: blur(20px)) { .booking-card { background: rgba(255,255,255,0.92); } }
.booking-card-glow {
  position: absolute; inset: -40% -30%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 40% at 20% 20%, rgba(243,217,206,0.9), transparent 70%),
    radial-gradient(40% 40% at 85% 30%, rgba(220,214,240,0.85), transparent 70%),
    radial-gradient(45% 45% at 60% 90%, rgba(217,228,211,0.85), transparent 70%);
  filter: blur(40px);
}
.booking-step-label { font-size: .82rem; font-weight: 600; color: var(--ink-soft); margin-top: 1.4rem; margin-bottom: .7rem; }
.booking-step-label:first-of-type { margin-top: 0; }
.chip-group { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  padding: .55rem 1rem; border-radius: 999px; font-size: .85rem;
  background: rgba(255,255,255,0.6); border: 1px solid var(--line); color: var(--ink-soft);
  transition: all .3s var(--ease-out); display: inline-flex; align-items: center; gap: .35rem;
}
.chip .icon { width: 14px; height: 14px; }
.chip:hover { border-color: var(--gold); color: var(--ink); }
.chip.is-active { background: var(--gold); border-color: var(--gold); color: #2E152F; font-weight: 600; }
.booking-summary { margin-top: 1.6rem; font-size: .9rem; color: var(--ink-mute); font-style: italic; min-height: 2.6em; }
.booking-confirm { margin-top: .8rem; width: 100%; }
.booking-confirm.is-disabled { opacity: .45; pointer-events: none; }

/* =============================================================
   8d. Transformación (before / after)
   ============================================================= */
.transformacion { background: var(--bg); }
.transformacion-toggle { max-width: 640px; margin-inline: auto; }
.transformacion-tabs { display: flex; justify-content: center; gap: .6rem; margin-bottom: 2rem; }
.transformacion-tab {
  padding: .7rem 1.6rem; border-radius: 999px; font-size: .92rem; font-weight: 600;
  border: 1px solid var(--line); color: var(--ink-mute); transition: all .35s var(--ease-out);
}
.transformacion-tab.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.transformacion-panels { position: relative; }
.transformacion-panel {
  display: none; border-radius: 24px; padding: 2.4rem;
  background: rgba(255,255,255,0.5); border: 1px solid rgba(255,255,255,0.75);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.transformacion-panel.is-active { display: block; animation: fadeInUp .5s var(--ease-out); }
.transformacion-panel ul { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .transformacion-panel ul { grid-template-columns: 1fr 1fr; } }
.transformacion-panel li { font-size: 1.02rem; color: var(--ink-soft); padding: .9rem 1.1rem; border-radius: 14px; background: rgba(255,255,255,0.5); }
[data-panel="antes"] li { color: var(--ink-mute); text-decoration: line-through; text-decoration-color: rgba(217,199,230,0.35); text-decoration-thickness: 1.5px; }
[data-panel="despues"] li { display: flex; align-items: center; gap: .6rem; font-weight: 500; }
[data-panel="despues"] li .icon { width: 16px; height: 16px; color: var(--gold-2); flex-shrink: 0; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* =============================================================
   9. Formaciones
   ============================================================= */
.formaciones { background: var(--bg-2); }
.formaciones-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .formaciones-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .formaciones-grid { grid-template-columns: repeat(3, 1fr); } }

.f-card {
  position: relative;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: clip;
  display: flex; flex-direction: column;
  transition: transform .55s var(--ease-out), border-color .45s var(--ease-out), box-shadow .55s var(--ease-out);
}
.f-card:hover { transform: translateY(-8px); border-color: rgba(212,175,55,0.45); box-shadow: 0 34px 60px -32px rgba(91,47,91,0.35); }
.f-card-media { position: relative; aspect-ratio: 4/5; overflow: clip; }
.f-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.f-card:hover .f-card-media img { transform: scale(1.08); }
.f-card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(91,47,91,.22) 100%); }

.f-card-media.no-photo {
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(60% 60% at 30% 20%, rgba(212,175,55,0.22), transparent 60%),
    radial-gradient(50% 50% at 80% 85%, rgba(217,199,230,0.18), transparent 60%),
    repeating-linear-gradient(135deg, rgba(91,47,91,0.04) 0 2px, transparent 2px 26px),
    var(--bg-3);
}
.f-card-media.no-photo .icon { width: 54px; height: 54px; color: var(--gold); opacity: .85; }

.f-card-body { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; gap: .9rem; flex: 1; }
.f-card-body h3 { font-size: 1.28rem; }
.f-card-body p { font-size: .95rem; color: var(--ink-mute); }
.f-card-meta { display: flex; gap: 1.2rem; font-size: .8rem; color: var(--ink-mute); margin-top: auto; padding-top: .4rem; }
.f-card-meta span { display: flex; align-items: center; gap: .4rem; }
.f-card-meta .icon { width: 15px; height: 15px; }
.f-card-cta {
  margin-top: .6rem; display: inline-flex; align-items: center; gap: .5rem;
  font-size: .88rem; font-weight: 600; color: var(--gold-2);
  align-self: flex-start;
}
.f-card-cta .icon { width: 15px; height: 15px; transition: transform .35s var(--ease-out); }
.f-card-cta:hover .icon { transform: translateX(4px); }

/* =============================================================
   10. Experiencia
   ============================================================= */
.experiencia { background: var(--bg); }
.exp-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 780px) { .exp-grid { grid-template-columns: 1.15fr 0.85fr; gap: 4rem; } }
.exp-figure { position: relative; border-radius: 20px; overflow: clip; }
.exp-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.exp-figure:hover img { transform: scale(1.05); }
.exp-figure.wide { aspect-ratio: 4/3; }
.exp-copy-wrap p.exp-copy { margin-top: 1.4rem; max-width: 46ch; font-size: 1.05rem; color: var(--ink-soft); }

/* =============================================================
   11. Por qué elegirnos
   ============================================================= */
.beneficios { background: var(--bg-2); }
.beneficios-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: clip; grid-template-columns: 1fr; }
@media (min-width: 640px) { .beneficios-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .beneficios-grid { grid-template-columns: repeat(3, 1fr); } }
.beneficio {
  position: relative; background: var(--bg-3); padding: 2.2rem 2rem;
  display: flex; flex-direction: column; gap: 1rem;
  transition: background .5s var(--ease-out), transform .5s var(--ease-out);
}
.beneficio:hover { background: #FFFCF8; transform: translateY(-4px); }
.beneficio .icon-wrap {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(212,175,55,0.18); color: var(--gold-2);
  transition: background .5s var(--ease-out), transform .5s var(--ease-out);
}
.beneficio:hover .icon-wrap { background: rgba(212,175,55,0.22); transform: scale(1.08) rotate(-4deg); }
.beneficio h3 { font-size: 1.08rem; }
.beneficio p { font-size: .92rem; color: var(--ink-mute); }

/* =============================================================
   12. Galería
   ============================================================= */
.galeria { background: var(--bg); }
.galeria-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 780px) { .galeria-grid { grid-template-columns: repeat(3, 1fr); } }
.g-figure { position: relative; border-radius: 22px; overflow: clip; aspect-ratio: 3/4; }
@media (min-width: 780px) { .g-figure:nth-child(2) { grid-row: span 2; aspect-ratio: 3/5; } }
.g-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.g-figure:hover img { transform: scale(1.06); }

/* =============================================================
   13. Testimonios
   ============================================================= */
.testimonios { background: var(--bg-2); }
.t-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 780px) { .t-grid { grid-template-columns: repeat(3, 1fr); } }
.t-card {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 20px;
  padding: 2rem; display: flex; flex-direction: column; gap: 1.1rem;
  transition: transform .5s var(--ease-out), border-color .4s var(--ease-out);
}
.t-card:hover { transform: translateY(-6px); border-color: rgba(212,175,55,0.35); }
.t-stars { display: flex; gap: .3rem; color: var(--gold-2); }
.t-stars .icon { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.t-card p.quote { font-size: .98rem; color: var(--ink-soft); font-style: italic; }
.t-person { display: flex; align-items: center; gap: .8rem; margin-top: auto; }
.t-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, rgba(212,175,55,0.28), rgba(217,199,230,0.2));
  color: var(--gold-2); font-family: var(--serif); font-size: 1.02rem;
  border: 1px solid var(--line);
}
.t-person span { font-size: .88rem; color: var(--ink-mute); }
.t-person strong { display: block; color: var(--ink); font-weight: 600; font-size: .95rem; }

/* =============================================================
   14. FAQ
   ============================================================= */
.faq { background: var(--bg); }
.faq-list { max-width: 780px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.5rem 0; text-align: left; font-family: var(--serif); font-size: 1.12rem; color: var(--ink);
}
.faq-q .icon { transition: transform .4s var(--ease-out); color: var(--gold-2); flex-shrink: 0; }
.faq-item.is-open .faq-q .icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease-out); }
.faq-a p { padding-bottom: 1.5rem; max-width: 62ch; font-size: .98rem; color: var(--ink-mute); }
.faq-item.is-open .faq-a { max-height: 200px; }

/* =============================================================
   15. CTA final
   ============================================================= */
.cta-final { position: relative; overflow: clip; padding-block: clamp(6rem, 14vw, 10rem); }
.cta-final-bg { position: absolute; inset: 0; z-index: 0; }
.cta-final-bg img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.cta-final-tint {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(253,249,245,.82) 28%, rgba(253,249,245,.88) 70%, var(--bg) 100%);
}
.cta-final-inner { position: relative; z-index: 1; text-align: center; max-width: 720px; margin-inline: auto; }
.cta-final h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
.cta-final p { margin-top: 1.1rem; color: var(--ink-soft); font-size: 1.08rem; }
.cta-final .btn { margin-top: 2.2rem; }

/* =============================================================
   16. Footer
   ============================================================= */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding-block: 3.5rem 2.2rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-logo { font-family: var(--serif); font-size: 1.15rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.footer-logo em { color: var(--gold-2); }
.footer-tagline { margin-top: .9rem; max-width: 32ch; font-size: .92rem; color: var(--ink-mute); }
.footer-col h4 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 1.1rem; font-family: var(--sans); font-weight: 600; }
.footer-col ul { display: flex; flex-direction: column; gap: .7rem; }
.footer-col a { font-size: .95rem; color: var(--ink-soft); transition: color .3s var(--ease-out); }
.footer-col a:hover { color: var(--gold-2); }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  font-size: .82rem; color: var(--ink-mute);
}
.footer-credits a { color: var(--ink-mute); text-decoration: underline; text-underline-offset: 3px; }
.footer-credits a:hover { color: var(--gold-2); }

/* =============================================================
   17. WhatsApp floating button
   ============================================================= */
.wa-float {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold); color: #2E152F;
  box-shadow: 0 16px 32px -12px rgba(0,0,0,0.6);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.wa-float:hover { transform: translateY(-4px) scale(1.05); background: var(--purple); color: var(--gold-soft); box-shadow: 0 20px 40px -12px rgba(91,47,91,.45); }
.wa-float .icon { width: 26px; height: 26px; }

/* =============================================================
   18. Reveal / motion
   ============================================================= */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* Directional variants */
.reveal[data-reveal-dir="left"]  { transform: translateX(-38px); }
.reveal[data-reveal-dir="right"] { transform: translateX(38px); }
.reveal[data-reveal-dir="scale"] { transform: scale(.94); }
.reveal[data-reveal-dir="left"].is-visible,
.reveal[data-reveal-dir="right"].is-visible,
.reveal[data-reveal-dir="scale"].is-visible { transform: none; }

/* Hero line-by-line mask reveal.
   padding+margin pair keeps descenders (g, j) from being clipped by overflow. */
.line-mask { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.line-mask > span {
  display: block;
  transform: translateY(110%);
  transition: transform 1.15s var(--ease-out);
  transition-delay: var(--line-delay, 0ms);
  /* Safety net: if JS never adds .is-ready, CSS reveals the headline anyway. */
  animation: lineSafety .01s 3s forwards;
}
.is-ready .line-mask > span { transform: none; animation: none; }
@keyframes lineSafety { to { transform: none; } }

/* Parallax targets */
[data-parallax] { will-change: transform; }

/* Ambient float for hero media */
@keyframes ambientDrift {
  0%, 100% { transform: scale(1.06) translate3d(0, 0, 0); }
  50%      { transform: scale(1.09) translate3d(0, -1.4%, 0); }
}
.hero-bg img { animation: ambientDrift 22s var(--ease-soft) infinite; }

/* Marquee */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line);
  padding-block: 1.1rem; background: var(--bg-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; gap: 3.5rem; width: max-content; animation: marqueeSlide 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 3.5rem;
  font-family: var(--serif); letter-spacing: .05em;
  font-size: clamp(1.05rem, 1.7vw, 1.45rem); color: var(--ink-mute); white-space: nowrap;
}
.marquee-item::after { content: "·"; color: var(--gold); font-style: normal; }
@keyframes marqueeSlide { to { transform: translateX(-50%); } }

/* Count-up figures */
.stats-row { display: grid; gap: 2rem; grid-template-columns: repeat(2, 1fr); margin-top: 3rem; }
@media (min-width: 780px) { .stats-row { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; }
.stat-num { font-family: var(--serif); font-size: clamp(2.2rem, 4.4vw, 3.2rem); color: var(--gold-2); line-height: 1; }
.stat-label { margin-top: .5rem; font-size: .85rem; color: var(--ink-mute); }

@media (prefers-reduced-motion: reduce) {
  .hero-bg img { animation: none; }
  .scroll-cue .line { animation: none; }
  .marquee-track { animation-duration: 90s; }
}

/* =============================================================
   19. Mobile refinements
   ============================================================= */
@media (max-width: 959px) {
  /* Mobile menu: fits 7 links + CTA without scrolling */
  .nav-mobile { gap: 1.15rem; padding: 5.5rem 1.5rem 2.5rem; justify-content: center; }
  .nav-mobile a { font-size: 1.32rem; }
  .nav-mobile .btn { margin-top: .8rem; font-size: .95rem; }

  /* Give every tap target room to breathe */
  .btn { padding: .95rem 1.5rem; }
  .btn-lg { padding: 1.05rem 1.8rem; font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn, .hero-actions .has-magnetic { width: 100%; }
  .hero-actions .magnetic-inner { width: 100%; }

  /* Hero breathes better with a shorter viewport lock */
  .hero { min-height: 92svh; padding-block: 6.5rem 3.5rem; }
  .hero-sub { max-width: 34ch; }

  /* Service menu stacks cleanly */
  .menu-row { gap: 1rem; padding: 1.5rem 0; }
  .menu-row-icon { width: 38px; height: 38px; border-radius: 10px; }
  .menu-row-top { flex-direction: column; gap: .25rem; }
  .menu-row-price { font-size: .95rem; }

  /* Booking card, lighter padding */
  .booking-card { padding: 1.7rem 1.4rem; border-radius: 22px; }
  .chip { padding: .6rem 1rem; }

  /* Process: single column reads better than cramped 2-up */
  .process-grid { grid-template-columns: 1fr; gap: 1.4rem; }

  /* Sections tighten up */
  .transformacion-panel { padding: 1.6rem 1.3rem; }
  .espacio-figure { aspect-ratio: 2/3; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: .7rem; }
}

@media (max-width: 539px) {
  .container { padding-inline: 1.25rem; }
  .stats-row { gap: 1.6rem; }
  .marquee-item { font-size: 1rem; }
  .g-figure { aspect-ratio: 4/5; }
  /* WhatsApp float sits clear of thumbs on small screens */
  .wa-float { right: 1rem; bottom: 1rem; width: 52px; height: 52px; }
}

/* Touch devices: no hover-lift artifacts stuck after tap */
@media (hover: none) {
  .f-card:hover, .t-card:hover, .beneficio:hover { transform: none; }
  .g-figure:hover img, .espacio-figure:hover img, .about-figure:hover img { transform: none; }
}

/* =============================================================
   19. Credits page
   ============================================================= */
.page-credits { padding-block: 8rem 4rem; }
.page-credits .container { max-width: 780px; }
.page-credits h1 { font-size: 2.2rem; margin-bottom: 1rem; }
.page-credits > .container > a { color: var(--gold-2); font-size: .9rem; }
.credits-list { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1rem; }
.credits-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; color: var(--ink-mute); }
.credits-list a { color: var(--gold-2); }
