/* =========================================================
   MAKTUB — Clínica de Sanación Integral
   Místico moderno · azul + crema · toques dorados
   ========================================================= */

:root {
  /* Palette — Dark / Maktub Elite */
  --ink:        #E8DCC0;   /* warm cream — body text */
  --ink-soft:   #C5B58C;   /* slightly dimmer body text */
  --muted:      #8A7A5A;   /* meta / captions */
  --hairline:   rgba(184, 151, 90, 0.22);
  --hairline-2: rgba(184, 151, 90, 0.10);

  --bg:         #1A1612;   /* deep warm charcoal — page bg */
  --bg-warm:    #221C16;   /* slightly warmer */
  --paper:      #221C16;   /* cards */
  --paper-2:    #2A231B;   /* raised cards */

  /* The "blue" tokens are kept for compat but now resolve to gold tones */
  --blue-900:   #E5CC95;   /* headings — brightest gold */
  --blue-700:   #CFAE6A;   /* main brand gold */
  --blue-500:   #B8975A;   /* gold */
  --blue-300:   #8A7544;   /* deeper gold */
  --blue-200:   #4A3F2A;   /* dim accent */
  --blue-100:   #2E2619;   /* near-bg */
  --blue-50:    #251E17;   /* near-bg */

  --gold:       #D4B988;   /* bright accent */
  --gold-soft:  #B8975A;

  /* Type */
  --f-serif:    "Cormorant Garamond", "Cormorant", "EB Garamond", Georgia, serif;
  --f-sans:     "Jost", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --f-script:   "Sacramento", "Allura", cursive;

  /* Rhythm */
  --container:  1240px;
  --gutter:     clamp(20px, 4vw, 56px);
  --section-y:  clamp(72px, 9vw, 140px);
  --radius:     2px;
  --radius-lg:  4px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, var(--bg-warm) 0%, transparent 60%),
    var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* =====================================================
   Typography
   ===================================================== */

h1, h2, h3, h4 {
  font-family: var(--f-serif);
  font-weight: 400;
  font-style: normal;
  color: var(--blue-900);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.05;
  text-wrap: pretty;
}

.display {
  font-family: var(--f-serif);
  font-weight: 300;
  font-size: clamp(54px, 7vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--blue-900);
}
.display em { font-style: italic; color: var(--blue-700); font-weight: 400; }

h2.section-title {
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 1.05;
  font-weight: 300;
}
h2.section-title em { font-style: italic; }

h3 {
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.15;
  font-weight: 400;
}

.eyebrow {
  font-family: var(--f-sans);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 11px;
  font-weight: 500;
  color: var(--blue-700);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before, .eyebrow::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}
.eyebrow.left::after { display: none; }
.eyebrow.left::before { display: none; }
.eyebrow.left { letter-spacing: 0.3em; }

.script {
  font-family: var(--f-script);
  font-weight: 400;
  color: var(--blue-700);
  line-height: 1;
}

.lede {
  font-family: var(--f-serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.45;
  color: var(--ink-soft);
  letter-spacing: 0;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

/* =====================================================
   Layout helpers
   ===================================================== */

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

section { position: relative; padding-block: var(--section-y); }

.rule {
  width: 56px; height: 1px;
  background: var(--blue-700);
  opacity: 0.4;
  display: block;
}

.divider-diamond {
  display: flex; align-items: center; justify-content: center;
  gap: 16px;
  color: var(--gold);
}
.divider-diamond::before, .divider-diamond::after {
  content: ""; height: 1px; background: currentColor; flex: 0 0 80px; opacity: 0.6;
}
.divider-diamond svg { width: 12px; height: 12px; }

/* =====================================================
   Buttons
   ===================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 30px;
  border-radius: 999px;
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: all 0.25s cubic-bezier(.2,.6,.2,1);
  white-space: nowrap;
}
.btn .arrow { transition: transform 0.3s; }
.btn:hover .arrow { transform: translateX(4px); }

.btn--primary {
  background: var(--blue-700);
  color: var(--paper);
}
.btn--primary:hover { background: var(--blue-900); }

.btn--ghost {
  background: transparent;
  color: var(--blue-700);
  border: 1px solid var(--blue-700);
}
.btn--ghost:hover { background: var(--blue-700); color: var(--paper); }

.btn--gold {
  background: var(--gold);
  color: var(--paper);
}
.btn--gold:hover { filter: brightness(0.92); }

.btn--text {
  padding: 10px 0;
  background: transparent;
  color: var(--blue-700);
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  letter-spacing: 0.2em;
}

/* =====================================================
   Nav
   ===================================================== */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 22px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  transition: background 0.3s, padding 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  background: rgba(246, 242, 233, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  padding-block: 14px;
  box-shadow: 0 1px 0 var(--hairline);
}
.nav__brand {
  display: flex; align-items: center; gap: 14px;
  color: var(--blue-700);
}
.nav__brand svg { width: 30px; height: 33px; display: block; }

/* ============================================================
   Maktub logo mark — uses CSS mask so it inherits currentColor
   The SVG already includes the "maktub" script wordmark below
   the symbol — aspect ratio ≈0.93 wide : 1 tall
   ============================================================ */
.maktub-mark {
  display: inline-block;
  width: 1em;
  height: 1.07em;
  background-color: currentColor;
  -webkit-mask: url("assets/logo-mark.svg") center/contain no-repeat;
          mask: url("assets/logo-mark.svg") center/contain no-repeat;
  vertical-align: middle;
}
.nav__brand .maktub-mark   { font-size: 44px; color: var(--blue-700); }
.hero .logo-stack .maktub-mark.mark { font-size: 140px; color: var(--blue-700); }
.footer-brand .maktub-mark.mark { font-size: 90px; color: var(--gold-soft); display: block; margin-bottom: 4px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.nav__brand .wm {
  font-family: var(--f-script);
  font-size: 30px;
  color: var(--blue-700);
  line-height: 1;
  transform: translateY(2px);
}
.nav__links {
  display: flex; gap: 38px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.nav__links a { position: relative; padding: 6px 0; }
.nav__links a:hover { color: var(--blue-900); }
.nav__cta {
  justify-self: end;
  display: flex; gap: 10px; align-items: center;
  min-width: 0;
}
.nav__cta .btn { padding: 13px 22px; font-size: 12px; }
@media (max-width: 1100px) { .nav__cta .btn { padding: 11px 18px; font-size: 11px; } }
.nav__cta .lang {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); padding: 6px 12px;
}
@media (max-width: 880px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__links { display: none; }
}

/* =====================================================
   Hero
   ===================================================== */

.hero {
  min-height: 100vh;
  padding-top: clamp(110px, 14vh, 160px);
  padding-bottom: clamp(60px, 8vh, 110px);
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero__inner {
  max-width: 980px;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 2;
}

.hero .logo-stack { display: inline-flex; flex-direction: column; align-items: center; gap: 18px; margin-bottom: 36px; }
/* Hero stack — the new logo includes mark + wordmark, so just one element */
.hero .logo-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 28px;
}
.hero .logo-stack .maktub-mark.mark { width: auto; }
.hero .logo-stack .wordmark {
  font-family: var(--f-script);
  font-size: clamp(46px, 5.6vw, 78px);
  color: var(--blue-700);
  line-height: 0.9;
  transform: translateY(-4px);
}

.hero .tagline-en {
  display: inline-flex; align-items: center; gap: 18px;
  color: var(--gold);
  font-family: var(--f-sans);
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 28px;
}
.hero .tagline-en .dot { width: 4px; height: 4px; background: currentColor; transform: rotate(45deg); }

.hero h1.display {
  margin-bottom: 28px;
  text-wrap: balance;
}
.hero h1.display em {
  display: inline-block;
  background: linear-gradient(120deg, var(--blue-700) 0%, var(--blue-900) 30%, var(--gold) 55%, var(--blue-700) 80%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: text-flow 9s ease-in-out infinite;
}
@keyframes text-flow {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.hero .pillars {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  margin-top: 6px;
  color: var(--blue-700);
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.hero .pillars .sep {
  width: 6px; height: 6px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  background: var(--gold);
}

.hero__ctas { display: inline-flex; gap: 14px; margin-top: 44px; flex-wrap: wrap; justify-content: center; }

.hero__signature {
  position: absolute;
  bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--muted);
  font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
  z-index: 0;
}
.hero__signature .line { width: 1px; height: 32px; background: var(--blue-300); }
@media (max-height: 820px) { .hero__signature { display: none; } }

/* Hero editorial variant */
html[data-hero="editorial"] .hero {
  text-align: left;
  place-items: center start;
}
html[data-hero="editorial"] .hero__inner {
  max-width: var(--container);
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
html[data-hero="editorial"] .hero__inner > .tagline-en { grid-column: 1 / -1; justify-self: start; margin-bottom: 8px; }
html[data-hero="editorial"] .hero__inner > .logo-stack { display: none; }
html[data-hero="editorial"] .hero__inner > h1.display { grid-column: 1; margin: 0; }
html[data-hero="editorial"] .hero__inner > .lede { grid-column: 1; margin: 32px 0 0 !important; max-width: 520px !important; }
html[data-hero="editorial"] .hero__inner > .pillars { grid-column: 1; margin-top: 32px; }
html[data-hero="editorial"] .hero__inner > .hero__ctas { grid-column: 1; margin-top: 44px; }
html[data-hero="editorial"] .hero__inner::after {
  content: "";
  grid-column: 2; grid-row: 1 / span 5;
  align-self: stretch;
  background:
    radial-gradient(circle at 40% 30%, var(--blue-100), transparent 60%),
    radial-gradient(circle at 70% 70%, var(--gold-soft) 0%, transparent 50%),
    var(--paper-2);
  min-height: 540px;
  position: relative;
  background-clip: padding-box;
}
html[data-hero="editorial"] .hero__inner {
  position: relative;
}
html[data-hero="editorial"] .hero__inner::before {
  content: "";
  position: absolute;
  background-color: var(--blue-700);
  -webkit-mask: url("assets/logo-mark.svg") center/contain no-repeat;
          mask: url("assets/logo-mark.svg") center/contain no-repeat;
  right: 8%; top: 50%; width: 220px; height: 240px; transform: translateY(-50%); z-index: 2; opacity: 0.85;
}
@media (max-width: 880px) {
  html[data-hero="editorial"] .hero__inner { grid-template-columns: 1fr; }
  html[data-hero="editorial"] .hero__inner::after,
  html[data-hero="editorial"] .hero__inner::before { display: none; }
}

/* Deco toggle */
html[data-deco="off"] .hero__deco,
html[data-deco="off"] .reservar__deco { display: none; }

/* Hero decorative geometry */
.hero__deco { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hero__deco svg { position: absolute; }
.hero__deco .ring-lg { top: 14%; left: -120px; width: 540px; color: var(--blue-200); opacity: 0.55; }
.hero__deco .ring-sm { top: 8%; right: -80px; width: 360px; color: var(--gold-soft); opacity: 0.35; }
.hero__deco .star-1 { top: 22%; right: 16%; width: 24px; color: var(--gold); opacity: 0.7; }
.hero__deco .star-2 { bottom: 26%; left: 14%; width: 18px; color: var(--blue-500); opacity: 0.5; }
.hero__deco .waterstain {
  bottom: -10%; right: -10%; width: 620px; color: var(--blue-200); opacity: 0.45;
}

/* =====================================================
   Section: meaning / Maktub philosophy
   ===================================================== */

.meaning {
  background: var(--paper-2);
  border-top: 1px solid var(--hairline-2);
  border-bottom: 1px solid var(--hairline-2);
}
.meaning__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.meaning__word {
  font-family: var(--f-serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(86px, 11vw, 160px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--blue-700);
  position: relative;
}
.meaning__word::after {
  content: "مكتوب";
  display: block;
  font-family: "Amiri", "Noto Naskh Arabic", serif;
  font-size: 0.45em;
  font-style: normal;
  color: var(--gold);
  margin-top: 14px;
  letter-spacing: 0;
  direction: rtl;
}
.meaning__body p:not(:last-child) { margin-bottom: 1.1em; }
.meaning__pron {
  font-family: var(--f-sans);
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 14px;
}

@media (max-width: 800px) {
  .meaning__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* =====================================================
   Pilares (Cuerpo, Mente, Energía)
   ===================================================== */

.pilares__head { text-align: center; max-width: 720px; margin: 0 auto 72px; }
.pilares__head .eyebrow { margin-bottom: 22px; }
.pilares__head .lede { margin-top: 24px; }

.pilares__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.6vw, 36px);
}
.pilar {
  background: var(--paper);
  padding: 56px 40px;
  position: relative;
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.55s cubic-bezier(.2,.6,.2,1),
    box-shadow 0.55s cubic-bezier(.2,.6,.2,1),
    border-color 0.55s cubic-bezier(.2,.6,.2,1),
    background 0.55s ease;
}
.pilar:hover {
  transform: translateY(-10px);
  box-shadow:
    0 30px 60px -36px rgba(20, 32, 46, 0.35),
    0 0 0 1px rgba(184, 151, 90, 0.18);
  border-color: var(--gold-soft);
  background: var(--paper-2);
}
/* Gold accent line that slides in from the top */
.pilar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.7s cubic-bezier(.2,.6,.2,1);
  z-index: 1;
}
.pilar:hover::after { transform: scaleX(1); }
.pilar__icon {
  width: 64px; height: 64px;
  color: var(--blue-700);
  margin-bottom: 16px;
}
.pilar__num {
  position: absolute; top: 28px; right: 32px;
  font-family: var(--f-serif);
  font-style: italic;
  color: var(--gold);
  font-size: 18px;
  letter-spacing: 0.04em;
}
.pilar h3 { font-style: italic; font-weight: 400; }
.pilar p { font-size: 15px; line-height: 1.6; margin: 0; }
.pilar__list { font-size: 13px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 16px; }
.pilar__list span { display: inline-block; margin-right: 10px; }
.pilar__more {
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-700);
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 10px;
}

@media (max-width: 880px) { .pilares__grid { grid-template-columns: 1fr; } }

/* =====================================================
   Sobre nosotras
   ===================================================== */

.nosotras { background: linear-gradient(180deg, transparent, var(--bg-warm) 30%, var(--bg-warm) 70%, transparent); }

.nosotras__head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; margin-bottom: 80px; align-items: end; }
.nosotras__head .lede { font-size: clamp(22px, 2vw, 30px); }
@media (max-width: 800px) { .nosotras__head { grid-template-columns: 1fr; gap: 32px; } }

.nosotras__duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 72px);
}
.terap {
  display: flex; flex-direction: column; gap: 28px;
}
.terap__photo {
  aspect-ratio: 4/5;
  background: var(--blue-100);
  position: relative;
  overflow: hidden;
}
.terap__photo .ph {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--blue-500);
  font-family: var(--f-serif); font-style: italic; font-size: 18px;
  background:
    radial-gradient(ellipse 60% 80% at 30% 30%, rgba(255,255,255,0.5), transparent),
    radial-gradient(ellipse 70% 60% at 70% 70%, var(--blue-200), var(--blue-100));
}
.terap__photo .ph svg { width: 80px; opacity: 0.5; margin-bottom: 14px; }
.terap__photo .ph span { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }

/* Photo with real image */
.terap__photo--has-img { position: relative; overflow: hidden; background: var(--blue-100); aspect-ratio: 4/5; }
.terap__photo--has-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: contrast(1.05) saturate(0.88) brightness(1.04);
  transition: transform 1.4s cubic-bezier(.2,.6,.2,1), filter 0.6s ease;
  will-change: transform;
}
.terap__photo--has-img .terap__tint {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(22,48,79,0) 50%, rgba(22,48,79,0.20) 100%),
    linear-gradient(135deg, rgba(184,151,90,0.06) 0%, transparent 45%),
    radial-gradient(ellipse 80% 60% at 50% 30%, transparent 40%, rgba(22,48,79,0.10) 100%);
  mix-blend-mode: multiply;
  opacity: 0.85;
  transition: opacity 0.6s ease;
}
.terap__photo--has-img::after {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid rgba(255,255,255,0.35);
  pointer-events: none;
  z-index: 2;
}
.terap:hover .terap__photo--has-img img {
  transform: scale(1.04);
  filter: contrast(1.05) saturate(0.95) brightness(1.05);
}
.terap:hover .terap__photo--has-img .terap__tint { opacity: 0.55; }

/* Balance the Reservar heading */
.reservar__title {
  text-wrap: balance;
  max-width: 14ch;
  font-size: clamp(38px, 4.4vw, 60px) !important;
  line-height: 1.06;
}

.terap__caption { display: flex; flex-direction: column; gap: 8px; }
.terap__caption .role {
  font-family: var(--f-sans);
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); font-weight: 500;
}
.terap__caption h3 { font-size: clamp(28px, 2.8vw, 36px); font-style: italic; }
.terap__caption .sub {
  font-family: var(--f-serif); font-style: italic; color: var(--muted);
  margin-top: 2px;
  font-size: 17px;
}
.terap__caption p { font-size: 15px; line-height: 1.65; margin-top: 14px; }

.terap__creds {
  display: flex; flex-wrap: wrap; gap: 8px 14px;
  margin-top: 6px;
  font-size: 12px; letter-spacing: 0.06em;
  color: var(--blue-700);
  text-transform: uppercase;
}
.terap__creds span {
  position: relative;
  padding-right: 14px;
}
.terap__creds span:not(:last-child)::after {
  content: ""; position: absolute; right: 0; top: 50%;
  width: 3px; height: 3px; transform: translateY(-50%) rotate(45deg);
  background: var(--gold);
}

@media (max-width: 800px) { .nosotras__duo { grid-template-columns: 1fr; gap: 48px; } }

/* =====================================================
   Servicios (3 family sections)
   ===================================================== */

.servicios__intro { text-align: center; max-width: 760px; margin: 0 auto 96px; }
.servicios__intro .eyebrow { margin-bottom: 24px; }

.svc-family {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
  padding-block: clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--hairline);
}
.svc-family:nth-child(even) { grid-template-columns: 1fr 1.05fr; direction: rtl; }
.svc-family:nth-child(even) > * { direction: ltr; }

.svc-family__media {
  position: relative;
  aspect-ratio: 5/6;
  background: var(--paper);
  overflow: hidden;
}
.svc-family__media .deco {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 30%, var(--blue-50), transparent 60%),
    var(--paper);
}
.svc-family__media .deco svg.illustration { width: 64%; max-width: 360px; color: var(--blue-700); opacity: 0.75; }
.svc-family__media .deco img.illustration {
  width: 78%;
  max-width: 460px;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  /* Tint the dark line-art toward the brand blue */
  filter:
    brightness(0.55)
    saturate(1.5)
    sepia(0.4)
    hue-rotate(170deg);
  opacity: 0.92;
  transition:
    transform 1.2s cubic-bezier(.2,.6,.2,1) 1s,
    opacity 1s ease 1s,
    filter 0.7s ease;
}
.svc-family[data-reveal].in .svc-family__media .deco img.illustration {
  transform: scale(1.02);
}
.svc-family__media { transition: background 0.6s ease; }
.svc-family__media:hover .deco img.illustration {
  transform: scale(1.08) rotate(-1.5deg);
  filter:
    brightness(0.5)
    saturate(1.7)
    sepia(0.5)
    hue-rotate(170deg);
}
.svc-family__media .deco {
  transition: background 0.7s ease;
}
.svc-family__media:hover .deco {
  /* gentle bloom */
  background:
    radial-gradient(circle at 50% 40%, rgba(184,151,90,0.10), transparent 55%),
    radial-gradient(circle at 30% 30%, var(--blue-50), transparent 60%),
    var(--paper) !important;
}
/* Decorative orbiting dot when hovering */
.svc-family__media::before {
  content: "";
  position: absolute;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  top: 50%; left: 50%;
  margin: -4px 0 0 -4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
  z-index: 1;
}
.svc-family__media:hover::before {
  opacity: 0.55;
  animation: orbit-dot 6s linear infinite;
}
@keyframes orbit-dot {
  0%   { transform: rotate(0deg)   translateX(160px) rotate(0deg);   }
  100% { transform: rotate(360deg) translateX(160px) rotate(-360deg); }
}
.svc-family__media .corner-tag {
  position: absolute; top: 22px; left: 22px;
  background: var(--paper);
  padding: 8px 14px;
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold); font-weight: 500;
  border: 1px solid var(--gold);
  white-space: nowrap;
  z-index: 2;
}

.svc-family__copy { padding-top: 8px; }
.svc-family__copy .eyebrow { margin-bottom: 22px; }
.svc-family__copy h2 { margin-bottom: 20px; }
.svc-family__copy .quote {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.45;
  color: var(--blue-700);
  padding-left: 18px;
  border-left: 1px solid var(--gold);
  margin: 28px 0 36px;
  max-width: 460px;
}

.svc-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 0;
}
.svc-list li {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: baseline;
  gap: 18px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--hairline-2);
  font-family: var(--f-serif);
  font-size: 19px;
}
.svc-list li:last-child { border-bottom: 0; }
.svc-list li .n {
  font-family: var(--f-sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-weight: 500;
}
.svc-list li .name { color: var(--ink); }
.svc-list li .meta {
  font-family: var(--f-sans);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 880px) {
  .svc-family, .svc-family:nth-child(even) { grid-template-columns: 1fr; direction: ltr; gap: 40px; }
}

/* =====================================================
   Quote / parallax line
   ===================================================== */

.quoteline {
  background: var(--blue-900);
  color: var(--paper-2);
  text-align: center;
  padding-block: clamp(80px, 10vw, 140px);
  position: relative;
  overflow: hidden;
}
.quoteline::before, .quoteline::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(184, 151, 90, 0.18), transparent 60%);
}
.quoteline .script {
  font-size: clamp(48px, 6vw, 96px);
  color: var(--gold-soft);
  position: relative;
}
.quoteline .sub {
  font-family: var(--f-sans);
  font-size: 13px; letter-spacing: 0.4em; text-transform: uppercase;
  color: rgba(26, 22, 18, 0.55);
  margin-top: 28px;
  position: relative;
}

/* =====================================================
   Testimonios
   ===================================================== */

.testimonios__head { text-align: center; margin-bottom: 80px; }
.testimonios__head .eyebrow { margin-bottom: 22px; }

.test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 32px);
}
.test {
  background: var(--paper);
  padding: 44px 36px;
  position: relative;
  border: 1px solid var(--hairline);
  display: flex; flex-direction: column; gap: 22px;
}
.test__quote-mark {
  font-family: var(--f-serif);
  font-style: italic;
  color: var(--gold);
  font-size: 64px;
  line-height: 0.6;
  height: 28px;
}
.test__body {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
  flex: 1;
}
.test__who {
  display: flex; flex-direction: column; gap: 4px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline-2);
}
.test__who .name {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--blue-900);
}
.test__who .role {
  font-size: 12px; color: var(--muted); letter-spacing: 0.16em; text-transform: uppercase;
}
.test__stars {
  color: var(--gold);
  letter-spacing: 4px;
  font-size: 12px;
}

@media (max-width: 880px) { .test-grid { grid-template-columns: 1fr; } }

/* =====================================================
   Reservar / Contacto
   ===================================================== */

.reservar {
  position: relative;
  background:
    linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
  overflow: hidden;
}
.reservar__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
  position: relative;
  z-index: 2;
}
.reservar h2 { margin-bottom: 26px; }
.reservar .lede { margin-bottom: 36px; }

.reservar__actions { display: flex; flex-direction: column; gap: 14px; max-width: 360px; }

.contact-card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  padding: 40px;
  display: flex; flex-direction: column; gap: 28px;
}
.contact-card h4 {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: var(--blue-900);
  margin: 0 0 4px;
}
.contact-row { display: flex; gap: 16px; align-items: flex-start; }
.contact-row svg { width: 18px; height: 18px; color: var(--gold); flex: 0 0 18px; margin-top: 3px; }
.contact-row .lbl { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.contact-row .val { font-size: 15px; color: var(--ink); }

.reservar__deco {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
}
.reservar__deco .stain {
  position: absolute; top: -60px; right: -80px; width: 480px; color: var(--blue-200);
}

@media (max-width: 800px) { .reservar__inner { grid-template-columns: 1fr; } }

/* =====================================================
   Footer
   ===================================================== */

footer {
  background: var(--blue-900);
  color: rgba(255,255,255,0.7);
  padding-block: 80px 36px;
}
footer .wrap { position: relative; }

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .mark { color: var(--gold-soft); width: 56px; }
.footer-brand .wm { font-family: var(--f-script); font-size: 44px; color: var(--paper); line-height: 0.9; margin-top: 8px; }
.footer-brand p { color: rgba(255,255,255,0.6); margin-top: 18px; max-width: 320px; font-size: 14px; }

footer h5 {
  font-family: var(--f-sans);
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 500;
  margin: 0 0 22px;
}
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
footer ul a { color: rgba(255,255,255,0.75); font-size: 14px; }
footer ul a:hover { color: var(--paper); }

.footer-bot {
  margin-top: 36px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  gap: 24px; flex-wrap: wrap;
}
.footer-legal { display: inline-flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { color: rgba(232,220,192,0.6); transition: color 0.25s; }
.footer-legal a:hover { color: var(--gold); }

@media (max-width: 880px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* =====================================================
   Reveal on scroll — multi-variant
   ===================================================== */
[data-reveal] {
  opacity: 0;
  transition: opacity 1s cubic-bezier(.2,.6,.2,1), transform 1s cubic-bezier(.2,.6,.2,1), filter 1s ease;
  will-change: opacity, transform, filter;
}
[data-reveal="up"]    { transform: translateY(28px); }
[data-reveal="up-sm"] { transform: translateY(14px); }
[data-reveal="left"]  { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="scale"] { transform: scale(0.96); }
[data-reveal="blur"]  { filter: blur(8px); transform: translateY(14px); }
[data-reveal="rise"]  { transform: translateY(60px); }
/* default selector without value (backwards compat) */
[data-reveal=""], [data-reveal]:not([data-reveal*="="]) { transform: translateY(20px); }

[data-reveal].in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Stagger groups */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s cubic-bezier(.2,.6,.2,1), transform 0.85s cubic-bezier(.2,.6,.2,1);
  will-change: opacity, transform;
}
[data-stagger].in > * { opacity: 1; transform: none; }
[data-stagger].in > *:nth-child(1) { transition-delay: 0ms;   }
[data-stagger].in > *:nth-child(2) { transition-delay: 90ms;  }
[data-stagger].in > *:nth-child(3) { transition-delay: 180ms; }
[data-stagger].in > *:nth-child(4) { transition-delay: 270ms; }
[data-stagger].in > *:nth-child(5) { transition-delay: 360ms; }
[data-stagger].in > *:nth-child(6) { transition-delay: 450ms; }
[data-stagger].in > *:nth-child(7) { transition-delay: 540ms; }
[data-stagger].in > *:nth-child(8) { transition-delay: 630ms; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-stagger] > * { opacity: 1; transform: none; filter: none; transition: none; }
}

/* =====================================================
   Page-load entrance — hero
   ===================================================== */
@keyframes hero-rise {
  0%   { opacity: 0; transform: translateY(28px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes hero-fade {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes hero-mark-in {
  0%   { opacity: 0; transform: translateY(14px) scale(0.92); filter: blur(6px); }
  100% { opacity: 1; transform: none; filter: none; }
}

.hero .tagline-en   { animation: hero-rise 1s cubic-bezier(.2,.6,.2,1) both 0.15s; }
.hero .logo-stack   { animation: hero-mark-in 1.2s cubic-bezier(.2,.6,.2,1) both 0.30s; }
.hero h1.display    { animation: hero-rise 1.1s cubic-bezier(.2,.6,.2,1) both 0.55s; }
.hero .lede         { animation: hero-rise 1s   cubic-bezier(.2,.6,.2,1) both 0.80s; }
.hero .pillars      { animation: hero-rise 0.9s cubic-bezier(.2,.6,.2,1) both 1.00s; }
.hero__ctas         { animation: hero-rise 0.9s cubic-bezier(.2,.6,.2,1) both 1.15s; }
.hero__signature    { animation: hero-fade 1.2s ease both 1.6s; }
.hero__deco svg     { animation: hero-fade 1.8s ease both 0.1s; }

/* =====================================================
   Continuous decorative motions
   ===================================================== */
@keyframes drift-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
@keyframes drift-rotate {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes twinkle {
  0%, 100% { opacity: 0.35; transform: scale(1) rotate(0deg); }
  50%      { opacity: 1;   transform: scale(1.25) rotate(45deg); }
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50%      { transform: scale(1.06); opacity: 0.8; }
}
@keyframes float-soft {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  33%      { transform: translate3d(8px, -10px, 0) rotate(2deg); }
  66%      { transform: translate3d(-6px, -4px, 0) rotate(-2deg); }
}

.hero__deco .ring-lg   { animation: drift-rotate 240s linear infinite, breathe 12s ease-in-out infinite; }
.hero__deco .ring-sm   { animation: drift-rotate 180s linear infinite reverse; transform-origin: center; }
.hero__deco .star-1    { animation: twinkle 4.5s ease-in-out infinite; }
.hero__deco .star-2    { animation: twinkle 5.5s ease-in-out infinite 1.2s; }
.hero__deco .waterstain{ animation: float-soft 18s ease-in-out infinite; }
.reservar__deco .stain { animation: float-soft 22s ease-in-out infinite; }

/* Diamond on the logo mark — gently pulses */
.logo-stack svg.mark, .logo-stack .maktub-mark.mark { transition: transform 0.6s cubic-bezier(.2,.6,.2,1); }
.logo-stack:hover svg.mark, .logo-stack:hover .maktub-mark.mark { transform: scale(1.03); }

/* =====================================================
   Scroll progress bar
   ===================================================== */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 60;
  background: linear-gradient(90deg, var(--gold) var(--p, 0%), transparent var(--p, 0%));
  pointer-events: none;
  opacity: 0; transition: opacity 0.3s;
}
.scroll-progress.visible { opacity: 0.9; }

/* =====================================================
   Section title — underline draw on reveal
   ===================================================== */
.section-title.draw {
  display: inline-block;
  position: relative;
}
.section-title.draw::after {
  content: ""; position: absolute; left: 0; bottom: -14px;
  height: 1px; width: 0; background: var(--gold);
  transition: width 1.6s cubic-bezier(.2,.6,.2,1) 0.3s;
}
[data-reveal].in .section-title.draw::after { width: 80px; }

/* =====================================================
   Hover lifts — pilares, test cards, service lists
   ===================================================== */
.pilar {
  position: relative;
  overflow: hidden;
}
.pilar::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle 280px at var(--mx, 50%) var(--my, 0%), rgba(184,151,90,0.16), transparent 60%);
  opacity: 0; transition: opacity 0.6s;
  pointer-events: none;
  z-index: 0;
}
.pilar > * { position: relative; z-index: 1; }
.pilar:hover::before { opacity: 1; }

.pilar__icon { transition: transform 0.7s cubic-bezier(.2,.6,.2,1), color 0.5s; }
.pilar:hover .pilar__icon {
  transform: translateY(-6px) rotate(-4deg) scale(1.06);
  color: var(--gold);
}
.pilar h3 { transition: transform 0.55s cubic-bezier(.2,.6,.2,1), color 0.4s; }
.pilar:hover h3 { transform: translateX(4px); color: var(--blue-900); }
.pilar__num { transition: transform 0.6s cubic-bezier(.2,.6,.2,1), color 0.5s; }
.pilar:hover .pilar__num { transform: rotate(12deg) scale(1.15); color: var(--gold); }

.test {
  transition: transform 0.5s cubic-bezier(.2,.6,.2,1), box-shadow 0.5s, border-color 0.5s;
}
.test:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -32px rgba(20, 32, 46, 0.28);
  border-color: var(--blue-300);
}

/* Service list — row hover */
.svc-list li {
  position: relative;
  transition: padding 0.4s, color 0.4s;
}
.svc-list li::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 0; height: 1px;
  background: var(--gold);
  transform: translateY(-50%);
  transition: width 0.5s cubic-bezier(.2,.6,.2,1);
}
.svc-list li:hover { padding-left: 36px; }
.svc-list li:hover::before { width: 22px; }
.svc-list li:hover .name { color: var(--blue-900); }
.svc-list li:hover .n { color: var(--gold); }

/* Nav links — underline draw */
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: currentColor;
  transition: right 0.4s cubic-bezier(.2,.6,.2,1);
}
.nav__links a:hover::after { right: 0; }

/* Pilar more link */
.pilar__more svg { transition: transform 0.35s cubic-bezier(.2,.6,.2,1); }
.pilar__more:hover svg { transform: translateX(6px); }

/* Eyebrow rules expand on reveal */
.eyebrow::before, .eyebrow::after {
  transition: width 0.9s cubic-bezier(.2,.6,.2,1) 0.2s, opacity 0.6s;
}
[data-reveal] .eyebrow::before, [data-reveal] .eyebrow::after { width: 0; opacity: 0; }
[data-reveal].in .eyebrow::before, [data-reveal].in .eyebrow::after { width: 28px; opacity: 0.45; }

/* =====================================================
   Service media — clip-path reveal on enter
   ===================================================== */
.svc-family__media {
  position: relative;
  overflow: hidden;
}
.svc-family__media .deco {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.4s cubic-bezier(.7,0,.2,1) 0.2s;
}
.svc-family[data-reveal].in .svc-family__media .deco {
  clip-path: inset(0 0 0 0);
}
.svc-family__media .illustration {
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transition: opacity 1s ease 1s, transform 1.2s cubic-bezier(.2,.6,.2,1) 1s;
}
.svc-family[data-reveal].in .svc-family__media svg.illustration {
  opacity: 0.75;
  transform: none;
}
.svc-family[data-reveal].in .svc-family__media img.illustration {
  opacity: 0.92;
  transform: none;
}
.svc-family__media .corner-tag {
  opacity: 0;
  transform: translate(-6px, -6px);
  transition: opacity 0.7s ease 0.9s, transform 0.7s ease 0.9s;
}
.svc-family[data-reveal].in .svc-family__media .corner-tag { opacity: 1; transform: none; }

/* =====================================================
   Quoteline — text shimmer (dark on gold band)
   ===================================================== */
.quoteline .script {
  background: linear-gradient(90deg, #1A1612 0%, #4A3F2A 30%, #1A1612 60%, #1A1612 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* =====================================================
   Pillars rotator in hero — gold pip slides between words
   ===================================================== */
.hero .pillars { position: relative; padding: 8px 22px; }
.hero .pillars span:not(.sep) {
  transition: color 0.6s, opacity 0.6s;
  position: relative;
}
.hero .pillars span.active { color: var(--blue-900); }
.hero .pillars span:not(.sep):not(.active) { color: var(--muted); opacity: 0.55; }

/* Section title scale-fade for pulled-quote feel */
.svc-family__copy .quote {
  position: relative;
  overflow: hidden;
}
.svc-family__copy .quote::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 1px; background: var(--gold);
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 1s cubic-bezier(.2,.6,.2,1) 0.4s;
}
.svc-family[data-reveal].in .svc-family__copy .quote::before { transform: scaleY(1); }
.svc-family__copy .quote { padding-left: 18px; border-left: 0; }

/* Button shimmer-on-hover */
.btn--primary { position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.9s cubic-bezier(.4,.2,.2,1);
  z-index: -1;
}
.btn--primary:hover::before { transform: translateX(120%); }

/* Hero CTAs — magnetic lift + glow */
.hero__ctas .btn {
  transition:
    transform 0.4s cubic-bezier(.2,.6,.2,1),
    box-shadow 0.5s cubic-bezier(.2,.6,.2,1),
    background 0.3s ease,
    color 0.3s ease,
    letter-spacing 0.4s ease;
  will-change: transform, box-shadow;
}
.hero__ctas .btn:hover {
  transform: translateY(-3px);
  letter-spacing: 0.18em;
}
.hero__ctas .btn--primary:hover {
  box-shadow:
    0 18px 40px -16px rgba(22, 48, 79, 0.45),
    0 0 0 6px rgba(184, 151, 90, 0.10);
}
.hero__ctas .btn--ghost:hover {
  box-shadow: 0 18px 40px -20px rgba(22, 48, 79, 0.35);
}
.hero__ctas .btn:active { transform: translateY(-1px) scale(0.99); }

/* Subtle pulsing ring around the primary CTA — "come click me" */
.hero__ctas .btn--primary {
  position: relative;
}
.hero__ctas .btn--primary::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  opacity: 0;
  animation: cta-pulse 3.4s cubic-bezier(.2,.6,.2,1) infinite;
  pointer-events: none;
}
@keyframes cta-pulse {
  0%   { transform: scale(1);    opacity: 0;   }
  20%  {                          opacity: 0.5; }
  100% { transform: scale(1.12); opacity: 0;   }
}
.hero__ctas .btn--primary:hover::after { animation-play-state: paused; opacity: 0; }

/* Arrow inside buttons — bounce loop on idle, slide on hover */
.btn .arrow {
  transition: transform 0.4s cubic-bezier(.2,.6,.2,1);
}
.hero__ctas .btn .arrow {
  animation: arrow-nudge 3s ease-in-out infinite;
}
@keyframes arrow-nudge {
  0%, 90%, 100% { transform: translateX(0); }
  95%           { transform: translateX(3px); }
}
.btn:hover .arrow { transform: translateX(6px); animation: none; }

/* Marquee-soft for the Arabic word */
.meaning__word::after {
  display: inline-block;
  transition: color 0.6s, transform 0.6s;
}
.meaning__word:hover::after { color: var(--blue-700); transform: translateY(2px); }

/* Reservar deco — animated path */
.reservar__deco .stain {
  filter: blur(8px);
}

/* Cursor spotlight (very subtle, only on large screens) */
@media (min-width: 1100px) and (hover: hover) {
  body::after {
    content: "";
    position: fixed; pointer-events: none;
    width: 480px; height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184,151,90,0.06), transparent 60%);
    transform: translate(-50%, -50%) translate(var(--mx, 50vw), var(--my, 50vh));
    z-index: 1;
    transition: opacity 0.3s;
    opacity: 0;
    mix-blend-mode: multiply;
  }
  body.has-cursor::after { opacity: 1; }
}

/* Footer mark — sits upright */
.footer-brand .mark {
  transform-origin: center;
}

/* =====================================================
   DARK THEME — Maktub Elite
   Adjustments for elements whose colors aren't covered
   by the :root token swap alone.
   ===================================================== */

/* Nav — opaque dark scrim when scrolled */
.nav.scrolled {
  background: rgba(26, 22, 18, 0.88) !important;
  box-shadow: 0 1px 0 rgba(184, 151, 90, 0.15);
}

/* Footer — explicit dark bg (don't follow --blue-900 which is now light gold) */
footer {
  background: #14110D;
  color: rgba(232, 220, 192, 0.7);
  border-top: 1px solid rgba(184, 151, 90, 0.18);
}
.footer-brand .wm { color: var(--ink); }
.footer-brand p { color: rgba(232, 220, 192, 0.6); }
footer ul a { color: rgba(232, 220, 192, 0.78); }
footer ul a:hover { color: var(--gold); }
.footer-top { border-bottom: 1px solid rgba(184, 151, 90, 0.15); }
.footer-bot { color: rgba(232, 220, 192, 0.45); }

/* Buttons — re-read against dark bg */
.btn--primary {
  background: var(--gold);
  color: #1A1612;
  font-weight: 500;
}
.btn--primary:hover { background: var(--blue-900); }
.btn--ghost {
  color: var(--ink);
  border-color: var(--gold);
}
.btn--ghost:hover { background: var(--gold); color: #1A1612; }
.btn--gold {
  background: var(--gold);
  color: #1A1612;
  font-weight: 500;
}

/* Pilar cards — darker surface */
.pilar { background: var(--paper); border-color: var(--hairline); }
.pilar:hover {
  background: var(--paper-2);
  border-color: var(--gold-soft);
  box-shadow:
    0 30px 60px -36px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(184, 151, 90, 0.25);
}

/* Testimonial cards */
.test {
  background: var(--paper);
  border-color: var(--hairline);
}
.test:hover {
  background: var(--paper-2);
  box-shadow: 0 24px 50px -32px rgba(0, 0, 0, 0.6);
  border-color: var(--gold-soft);
}

/* Contact card */
.contact-card {
  background: var(--paper);
  border-color: var(--hairline);
}

/* Photo borders inside the team section — gold tint instead of white */
.terap__photo--has-img::after {
  border-color: rgba(184, 151, 90, 0.35);
}

/* Service illustrations — invert dark line-art and tint to gold */
.svc-family__media .deco img.illustration {
  mix-blend-mode: normal;
  filter:
    invert(1)
    sepia(1)
    saturate(2.6)
    hue-rotate(-8deg)
    brightness(0.95);
  opacity: 0.82;
}
.svc-family__media:hover .deco img.illustration {
  filter:
    invert(1)
    sepia(1)
    saturate(3)
    hue-rotate(-8deg)
    brightness(1.02);
  opacity: 0.95;
}
.svc-family__media .deco {
  background:
    radial-gradient(circle at 40% 30%, rgba(184,151,90,0.10), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(207, 174, 106, 0.06) 0%, transparent 50%),
    var(--paper-2);
}
.svc-family__media:hover .deco {
  background:
    radial-gradient(circle at 50% 40%, rgba(184,151,90,0.18), transparent 55%),
    radial-gradient(circle at 30% 30%, rgba(184,151,90,0.08), transparent 60%),
    var(--paper-2) !important;
}

/* Hero radial backdrop ditched (was warm cream) */
body {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(207, 174, 106, 0.06) 0%, transparent 60%),
    var(--bg) !important;
}

/* Hero glow + image M mask — stays gold */
.hero__bg::after { background-color: var(--gold) !important; }

/* Reservar deco stain — gold tint */
.reservar__deco svg { color: rgba(184, 151, 90, 0.25); }

/* =====================================================
   Sobre nosotras — single shared portrait, two captions
   ===================================================== */

.nosotras { background: linear-gradient(180deg, transparent, rgba(184,151,90,0.04) 30%, rgba(184,151,90,0.04) 70%, transparent); }

.nosotras__duo {
  grid-template-columns: 1fr minmax(320px, 420px) 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.nosotras__photo {
  position: relative;
  aspect-ratio: 1506/2275;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--hairline);
}
.nosotras__photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 1.4s cubic-bezier(.2,.6,.2,1);
}
.nosotras__photo:hover img { transform: scale(1.03); }
.nosotras__photo::after {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid rgba(184, 151, 90, 0.30);
  pointer-events: none;
  z-index: 2;
}
.nosotras__photo .photo-tint {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(135deg, rgba(184,151,90,0.06) 0%, transparent 40%),
    radial-gradient(ellipse 90% 70% at 50% 40%, transparent 50%, rgba(26,22,18,0.20) 100%);
  z-index: 1;
}
.nosotras__photo .photo-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between;
  padding: 18px 22px;
  font-family: var(--f-sans);
  font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold);
  z-index: 3;
}
.nosotras__photo .photo-label span:first-child::before,
.nosotras__photo .photo-label span:last-child::before {
  content: "▾ ";
  font-size: 9px;
  opacity: 0.7;
}

.terap--solo .terap__caption {
  display: flex; flex-direction: column; gap: 8px;
}
/* Both columns left-aligned for consistent reading flow */
.terap--solo .terap__caption h3 {
  font-size: clamp(28px, 2.6vw, 38px);
  font-style: italic;
}

@media (max-width: 1000px) {
  .nosotras__duo {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .nosotras__photo {
    max-width: 380px;
    margin: 0 auto;
    order: -1;
  }

}

/* Smooth anchor scroll */
html { scroll-behavior: smooth; }

/* =====================================================
   Star / sparkle decorations
   ===================================================== */
.spark { display: inline-block; color: var(--gold); }
.spark svg { width: 1em; height: 1em; vertical-align: -0.1em; }
