/* ═══════════════════════════════════════════
   MARCELO ARKAN — EL SANTUARIO
   CSS Principal · Extraído fiel del diseño original
   Sanctum Codex · Pergamino oscuro · Cobre envejecido
═══════════════════════════════════════════ */

/* ─── TOKENS ─────────────────────────────── */
:root {
  --black:        #0B0B0B;
  --obsidian:     #121212;
  --slate:        #1A1A1A;
  --umber:        #3A2A1F;
  --bronze:       #6A4A32;
  --brass:        #B08D57;
  --pale-gold:    #D6C3A5;
  --vellum:       #F3EBDD;
  --gold:         var(--brass);
  --gold-warm:    #C9A669;
  --ink:          var(--vellum);
  --ink-mute:     rgba(243, 235, 221, 0.55);
  --ink-low:      rgba(243, 235, 221, 0.32);
  --hairline:     rgba(176, 141, 87, 0.18);
  --hairline-low: rgba(243, 235, 221, 0.07);
  --display: 'Cinzel', 'Trajan Pro', 'Times New Roman', serif;
  --serif:   'Cormorant Garamond', Georgia, serif;
  --sans:    'Inter', system-ui, sans-serif;
  --maxw: 1320px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-slow: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ─── RESET ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--black); }
body {
  font-family: var(--sans);
  font-weight: 300;
  background: var(--black);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--brass); color: var(--black); }

/* ─── TIPOGRAFÍA ──────────────────────────── */
.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vellum);
}
h1, h2, h3 { font-weight: 400; line-height: 1.05; color: var(--vellum); }
h1 { font-family: var(--display); font-size: clamp(2.2rem, 4.6vw, 4.4rem); letter-spacing: 0.08em; text-transform: uppercase; }
h2 { font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 2.2rem); letter-spacing: 0.18em; text-transform: uppercase; }
h3 { font-family: var(--serif); font-size: clamp(1.4rem, 2vw, 1.8rem); letter-spacing: 0.02em; }
.serif { font-family: var(--serif); font-weight: 300; }
.italic-q { font-family: var(--serif); font-style: italic; font-weight: 300; color: var(--pale-gold); }
.label {
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.label::before { content: ""; width: 28px; height: 1px; background: var(--brass); opacity: 0.6; }
p { color: var(--ink-mute); font-size: 1rem; line-height: 1.75; }

/* ─── LAYOUT ──────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}
section { position: relative; padding: 160px 0; z-index: 2; }
@media (max-width: 720px) { section { padding: 100px 0; } .wrap { padding: 0 24px; } }

/* ─── SANCTUM CODEX BACKGROUND ───────────── */
.sanctum-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% 38%, rgba(74, 52, 32, 0.18), transparent 70%),
    radial-gradient(ellipse 90% 30% at 50% 0%, rgba(0, 0, 0, 0.85), transparent 80%),
    radial-gradient(ellipse 100% 35% at 50% 100%, rgba(0, 0, 0, 0.9), transparent 85%),
    radial-gradient(circle at 18% 22%, rgba(38, 28, 18, 0.55), transparent 38%),
    radial-gradient(circle at 82% 28%, rgba(28, 22, 16, 0.55), transparent 40%),
    radial-gradient(circle at 12% 78%, rgba(34, 24, 16, 0.45), transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(24, 18, 12, 0.55), transparent 40%),
    #060504;
}
.sanctum-fibre {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(91deg, transparent 0, transparent 2px, rgba(120, 88, 56, 0.025) 2px, rgba(120, 88, 56, 0.025) 3px),
    repeating-linear-gradient(2deg,  transparent 0, transparent 3px, rgba(106, 74, 50, 0.022) 3px, rgba(106, 74, 50, 0.022) 4px);
  mix-blend-mode: screen;
  opacity: 0.7;
}
.sanctum-stains {
  position: absolute; inset: -4%;
  background-image:
    radial-gradient(ellipse 240px 90px at 22% 18%, rgba(60, 40, 24, 0.35), transparent 70%),
    radial-gradient(ellipse 180px 110px at 78% 32%, rgba(70, 46, 28, 0.28), transparent 70%),
    radial-gradient(ellipse 200px 80px at 38% 62%, rgba(50, 34, 20, 0.30), transparent 70%),
    radial-gradient(ellipse 160px 140px at 86% 72%, rgba(64, 42, 26, 0.30), transparent 70%),
    radial-gradient(ellipse 220px 100px at 14% 88%, rgba(46, 30, 18, 0.28), transparent 70%);
  filter: blur(28px); opacity: 0.85;
}
.sanctum-sigil {
  position: absolute; top: 50%; left: 50%;
  width: min(150vmin, 1700px); height: min(150vmin, 1700px);
  transform: translate(-50%, -50%);
  animation: sanctumBreath 32s ease-in-out infinite;
}
.sanctum-sigil svg { width: 100%; height: 100%; display: block; }
@keyframes sanctumBreath {
  0%, 100% { opacity: 0.85; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 1;    transform: translate(-50%, -50%) scale(1.012); }
}
.sanctum-marginalia { position: absolute; inset: 0; opacity: 0.55; }
.sanctum-marginalia svg { position: absolute; display: block; }
.sanctum-grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.65  0 0 0 0 0.52  0 0 0 0 0.36  0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>");
  opacity: 0.55; mix-blend-mode: soft-light;
}
.sanctum-frame { position: absolute; inset: 32px; border: 1px solid rgba(140, 102, 64, 0.08); pointer-events: none; }
.sanctum-frame::before, .sanctum-frame::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(140, 102, 64, 0.05); }
@media (max-width: 720px) { .sanctum-frame { inset: 14px; } }
.sanctum-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 32%, rgba(6, 5, 4, 0.55) 78%, rgba(6, 5, 4, 0.92) 100%);
}
@media (prefers-reduced-motion: reduce) { .sanctum-sigil { animation: none; } }

/* ─── NAV ─────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 28px 0; transition: all 0.6s var(--ease); border-bottom: 1px solid transparent;
  overflow: visible;
}
.nav.scrolled {
  padding: 16px 0;
  background: rgba(11, 11, 11, 0.78);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  border-bottom-color: var(--hairline);
  /*
   * FIX: backdrop-filter crea un nuevo stacking context en Chrome/Safari
   * que recortaba los dropdowns con position:absolute.
   * isolation:isolate + overflow:visible en .nav resuelve el problema.
   */
  isolation: isolate;
}
.nav-row {
  max-width: var(--maxw); margin: 0 auto; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 40px; height: 40px; border: 1px solid var(--brass); border-radius: 50%;
  display: grid; place-items: center; position: relative;
  color: var(--pale-gold); font-family: var(--display); font-size: 0.85rem; letter-spacing: 0.04em;
}
.brand-mark::before { content: ""; position: absolute; inset: 3px; border: 1px solid var(--hairline); border-radius: 50%; }
.brand-name { font-family: var(--display); font-size: 0.86rem; letter-spacing: 0.32em; color: var(--vellum); }
.brand-name span { display: block; font-family: var(--sans); font-size: 0.58rem; letter-spacing: 0.42em; color: var(--brass); margin-top: 4px; }

.nav-menu { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-menu a { font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink-mute); position: relative; padding: 6px 0; transition: color 0.4s var(--ease); }
.nav-menu a::after { content: ""; position: absolute; bottom: 0; left: 50%; width: 0; height: 1px; background: var(--brass); transition: width 0.5s var(--ease); transform: translateX(-50%); }
.nav-menu a:hover { color: var(--pale-gold); }
.nav-menu a:hover::after { width: 100%; }
.nav-aside { display: flex; align-items: center; gap: 14px; }

/* Sound toggle */
.sound-toggle {
  width: 40px; height: 40px; border: 1px solid var(--hairline); border-radius: 50%;
  display: grid; place-items: center; color: var(--brass); transition: all 0.4s var(--ease); position: relative;
}
.sound-toggle:hover { border-color: var(--brass); color: var(--pale-gold); }
.sound-toggle svg { width: 14px; height: 14px; }
.sound-toggle .off-bar { display: block; }
.sound-toggle .on-bars { display: none; }
.sound-toggle.on .off-bar { display: none; }
.sound-toggle.on .on-bars { display: block; }
.sound-toggle.on { border-color: var(--brass); color: var(--pale-gold); }
.sound-toggle.on::before { content: ""; position: absolute; inset: -4px; border: 1px solid var(--brass); border-radius: 50%; opacity: 0.4; animation: soundPulse 3s ease-in-out infinite; }
@keyframes soundPulse { 0%, 100% { transform: scale(1); opacity: 0.4; } 50% { transform: scale(1.12); opacity: 0; } }

/* Hamburger */
.menu-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--hairline); border-radius: 50%; align-items: center; justify-content: center; }
.menu-toggle span { width: 16px; height: 1px; background: var(--brass); position: relative; display: block; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--brass); }
.menu-toggle span::before { top: -5px; }
.menu-toggle span::after { top: 5px; }

@media (max-width: 1080px) {
  .nav-menu { display: none; }
  .menu-toggle { display: flex; }
  .nav-menu.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 100%; left: 0; right: 0;
    padding: 32px 40px; background: rgba(11, 11, 11, 0.96);
    backdrop-filter: blur(20px); border-bottom: 1px solid var(--hairline); gap: 22px;
  }
}

/* ─── BUTTONS ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 36px; font-family: var(--sans); font-size: 0.7rem;
  font-weight: 400; letter-spacing: 0.36em; text-transform: uppercase;
  border-radius: 0; transition: all 0.5s var(--ease); position: relative;
  overflow: hidden; border: 1px solid var(--brass); color: var(--vellum);
  background: transparent; cursor: pointer;
}
.btn::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, var(--bronze), var(--umber)); opacity: 0; transition: opacity 0.5s var(--ease); z-index: -1; }
.btn:hover { color: var(--vellum); border-color: var(--pale-gold); transform: translateY(-1px); }
.btn:hover::before { opacity: 1; }
.btn .arrow { width: 14px; height: 1px; background: currentColor; position: relative; transition: width 0.4s var(--ease); }
.btn .arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 6px; height: 6px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.btn:hover .arrow { width: 22px; }
.btn-solid { background: linear-gradient(180deg, var(--brass), var(--bronze)); color: var(--black); border-color: var(--brass); }
.btn-solid::before { background: linear-gradient(180deg, var(--pale-gold), var(--brass)); }
.btn-solid:hover { color: var(--black); }

/* ─── HERO ────────────────────────────────── */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; padding: 180px 0 120px; overflow: hidden; }
.hero-stage { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-stage::before { content: ""; position: absolute; bottom: -10%; left: 50%; transform: translateX(-50%); width: 140%; height: 60%; background: radial-gradient(ellipse at 50% 100%, rgba(176, 141, 87, 0.18), transparent 60%); filter: blur(20px); }
.hero-disc { position: absolute; top: 50%; left: 50%; transform: translate(calc(-50%), calc(-50% + var(--disc-parallax, 0px))); width: min(85vmin, 880px); aspect-ratio: 1; z-index: 0; opacity: 0.55; }
.hero-disc svg { width: 100%; height: 100%; }
.hero-disc-outer { animation: spinSlow 240s linear infinite; transform-origin: center; }
.hero-disc-inner { position: absolute; inset: 18%; animation: spinReverse 180s linear infinite; transform-origin: center; }
.hero-disc-pulse { position: absolute; inset: 36%; animation: discPulse 8s ease-in-out infinite; transform-origin: center; }
@keyframes spinSlow    { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes spinReverse { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
@keyframes discPulse { 0%, 100% { transform: scale(0.96); opacity: 0.5; } 50% { transform: scale(1.04); opacity: 0.8; } }
.hero-disc-outer { display: block; }
.hero-disc-inner-svg { animation: spinReverse 180s linear infinite; transform-origin: 300px 300px; }
.hero-disc-pulse-svg { animation: discPulse 8s ease-in-out infinite; transform-origin: 200px 200px; }

.hero-inner { position: relative; z-index: 3; width: 100%; text-align: center; max-width: 940px; margin: 0 auto; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 18px; margin-bottom: 56px; font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.5em; text-transform: uppercase; color: var(--brass); }
.hero-eyebrow .dot { width: 4px; height: 4px; background: var(--brass); border-radius: 50%; box-shadow: 0 0 8px var(--brass); animation: dotPulse 3s ease-in-out infinite; }
@keyframes dotPulse { 0%, 100% { opacity: 0.4; transform: scale(1); } 50% { opacity: 1; transform: scale(1.4); } }
.hero h1 { font-style: normal; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .word { display: inline-block; transform: translateY(110%); animation: heroReveal 1.4s var(--ease-slow) forwards; }
.hero h1 .line:nth-child(2) .word { animation-delay: 0.4s; color: var(--pale-gold); font-style: italic; font-family: var(--serif); text-transform: none; letter-spacing: 0.02em; }
@keyframes heroReveal { to { transform: translateY(0); } }
.hero-rule { width: 1px; height: 80px; background: linear-gradient(180deg, transparent, var(--brass), transparent); margin: 56px auto 40px; opacity: 0; animation: fadeIn 1.2s 1.4s forwards; }
.hero-sub { font-family: var(--serif); font-size: clamp(1.05rem, 1.4vw, 1.3rem); font-style: italic; font-weight: 300; color: var(--ink-mute); max-width: 580px; margin: 0 auto 56px; line-height: 1.7; opacity: 0; animation: fadeIn 1.4s 1.6s forwards; }
@keyframes fadeIn { to { opacity: 1; } }
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; opacity: 0; animation: fadeIn 1.4s 1.9s forwards; }
.hero-foot { position: absolute; bottom: 40px; left: 0; right: 0; z-index: 3; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 40px; font-family: var(--sans); font-size: 0.58rem; letter-spacing: 0.42em; text-transform: uppercase; color: var(--ink-low); opacity: 0; animation: fadeIn 1.4s 2.2s forwards; }
.hero-foot .stem { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero-foot .stem-line { width: 1px; height: 36px; background: var(--brass); animation: stemPulse 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes stemPulse { 0%, 100% { transform: scaleY(0.4); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }
@media (max-width: 600px) { .hero-foot { font-size: 0.5rem; padding: 0 24px; } .hero-foot .corner-r { display: none; } }

/* ─── ORÁCULO ─────────────────────────────── */
.oraculo { text-align: center; border-top: 1px solid var(--hairline-low); border-bottom: 1px solid var(--hairline-low); padding: 200px 0; }
.oraculo-quote { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.6rem, 3.4vw, 2.8rem); line-height: 1.4; max-width: 820px; margin: 36px auto; color: var(--vellum); letter-spacing: 0.005em; }
.oraculo-quote em { color: var(--pale-gold); font-style: italic; }
.oraculo-author { font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.5em; text-transform: uppercase; color: var(--brass); margin-top: 36px; }

/* ─── MENSAJE DIARIO ──────────────────────── */
.mensaje { background: linear-gradient(180deg, transparent, rgba(26, 26, 26, 0.5), transparent); }
.mensaje-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
@media (max-width: 880px) { .mensaje-grid { grid-template-columns: 1fr; gap: 60px; } }
.mensaje-side .label { margin-bottom: 24px; }
.mensaje-side h2 { margin-bottom: 28px; }
.mensaje-side p { max-width: 460px; margin-bottom: 36px; font-family: var(--serif); font-size: 1.15rem; }
.mensaje-meta { display: flex; gap: 28px; font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink-low); margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--hairline-low); }
.mensaje-meta strong { color: var(--brass); font-weight: 400; }

/* Tarot card */
.card-stage { perspective: 1600px; display: flex; justify-content: center; }
.tarot-card { width: 280px; aspect-ratio: 5/8; position: relative; cursor: pointer; transform-style: preserve-3d; transition: transform 1.4s var(--ease-slow); }
.tarot-card.flipped { transform: rotateY(180deg); }
.tarot-card-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: linear-gradient(135deg, #1a1308, #0e0a05), var(--obsidian); border: 1px solid var(--bronze); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(176, 141, 87, 0.15) inset, 0 0 40px rgba(176, 141, 87, 0.05); display: grid; place-items: center; padding: 22px; overflow: hidden; }
.tarot-card-face::before { content: ""; position: absolute; inset: 14px; border: 1px solid var(--hairline); pointer-events: none; }
.tarot-card-face::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 30%, rgba(176, 141, 87, 0.12), transparent 60%); pointer-events: none; }
.tarot-card-back svg { width: 70%; height: 70%; color: var(--brass); }
.tarot-card-front { transform: rotateY(180deg); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 40px 24px; }
.tarot-card-front .arcanum { font-family: var(--display); font-size: 0.58rem; letter-spacing: 0.5em; text-transform: uppercase; color: var(--brass); }
.tarot-card-front .arcanum-num { font-family: var(--display); font-size: 1.4rem; letter-spacing: 0.16em; color: var(--pale-gold); margin-top: 6px; }
.tarot-card-front .arcanum-glyph { width: 92px; height: 92px; color: var(--pale-gold); margin: 18px 0; }
.tarot-card-front .arcanum-name { font-family: var(--display); font-size: 1.15rem; letter-spacing: 0.22em; color: var(--vellum); text-align: center; }
.tarot-hint { text-align: center; margin-top: 28px; font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.42em; text-transform: uppercase; color: var(--ink-low); opacity: 0.7; transition: opacity 0.4s; }
.card-stage.revealed .tarot-hint { opacity: 0; }

/* ─── LECTURAS ────────────────────────────── */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 100px; }
.section-head .label { margin-bottom: 28px; }
.section-head h2 { margin-bottom: 32px; }
.section-head p { font-family: var(--serif); font-size: 1.1rem; }
.lecturas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--hairline); }
@media (max-width: 1080px) { .lecturas-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .lecturas-grid { grid-template-columns: 1fr; } }
.lectura { padding: 56px 36px; border-right: 1px solid var(--hairline); display: flex; flex-direction: column; position: relative; background: rgba(18, 18, 18, 0.4); transition: background 0.6s var(--ease), transform 0.6s var(--ease); min-height: 460px; }
.lectura:last-child { border-right: 0; }
@media (max-width: 1080px) { .lectura:nth-child(2n) { border-right: 0; } .lectura:nth-child(-n+2) { border-bottom: 1px solid var(--hairline); } }
@media (max-width: 560px) { .lectura { border-right: 0; border-bottom: 1px solid var(--hairline); } .lectura:last-child { border-bottom: 0; } }
.lectura::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--brass); transform: scaleX(0); transform-origin: center; transition: transform 0.8s var(--ease); }
.lectura:hover { background: rgba(58, 42, 31, 0.25); }
.lectura:hover::before { transform: scaleX(1); }
.lectura-num { font-family: var(--display); font-size: 0.62rem; letter-spacing: 0.5em; color: var(--brass); margin-bottom: 36px; }
.lectura-icon { width: 44px; height: 44px; color: var(--pale-gold); margin-bottom: 28px; transition: transform 0.6s var(--ease); }
.lectura:hover .lectura-icon { transform: rotate(8deg) scale(1.05); }
.lectura h3 { font-family: var(--display); font-size: 0.95rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--vellum); margin-bottom: 14px; }
.lectura-meta { font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink-low); margin-bottom: 22px; }
.lectura p { font-family: var(--serif); font-size: 0.98rem; margin-bottom: 32px; flex-grow: 1; }
.lectura-foot { display: flex; justify-content: space-between; align-items: baseline; padding-top: 22px; border-top: 1px solid var(--hairline-low); }
.lectura-price { font-family: var(--display); font-size: 1.4rem; color: var(--pale-gold); letter-spacing: 0.04em; }
.lectura-price span { font-size: 0.6rem; color: var(--brass); margin-right: 4px; }
.lectura-cta { font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.42em; text-transform: uppercase; color: var(--brass); position: relative; padding-right: 18px; }
.lectura-cta::after { content: ""; position: absolute; right: 0; top: 50%; width: 10px; height: 1px; background: var(--brass); transition: width 0.4s var(--ease); }
.lectura:hover .lectura-cta::after { width: 16px; }

/* ─── ARCHIVO ─────────────────────────────── */
.archivo { background: linear-gradient(180deg, transparent, rgba(18, 18, 18, 0.6), transparent); }
.archivo-list { border-top: 1px solid var(--hairline); }
.archivo-row { display: grid; grid-template-columns: 80px 1fr 240px 160px 60px; align-items: center; gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--hairline-low); transition: background 0.5s var(--ease), padding 0.5s var(--ease); cursor: pointer; }
.archivo-row:hover { background: linear-gradient(90deg, rgba(58, 42, 31, 0.2), transparent); padding-left: 24px; }
.archivo-num { font-family: var(--display); font-size: 0.7rem; letter-spacing: 0.32em; color: var(--brass); }
.archivo-title { font-family: var(--serif); font-size: 1.4rem; font-weight: 300; color: var(--vellum); transition: color 0.4s var(--ease); }
.archivo-row:hover .archivo-title { color: var(--pale-gold); }
.archivo-tag { font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.42em; text-transform: uppercase; color: var(--ink-low); }
.archivo-date { font-family: var(--display); font-size: 0.7rem; letter-spacing: 0.32em; color: var(--brass); text-align: right; }
.archivo-arrow { width: 18px; height: 1px; background: var(--brass); position: relative; justify-self: end; transition: width 0.4s var(--ease); }
.archivo-arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid var(--brass); border-right: 1px solid var(--brass); transform: rotate(45deg); }
.archivo-row:hover .archivo-arrow { width: 28px; }
@media (max-width: 880px) { .archivo-row { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; } .archivo-date, .archivo-arrow { text-align: left; justify-self: start; } }

/* ─── RITUALES ────────────────────────────── */
.rituales-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }
@media (max-width: 880px) { .rituales-grid { grid-template-columns: 1fr; } }
.ritual { padding: 80px 48px; background: var(--obsidian); position: relative; display: flex; flex-direction: column; min-height: 540px; overflow: hidden; transition: background 0.8s var(--ease); }
.ritual:hover { background: #0F0E0B; }
.ritual::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 50%; background: radial-gradient(ellipse at 50% 100%, rgba(176, 141, 87, 0.08), transparent 70%); opacity: 0; transition: opacity 0.8s var(--ease); pointer-events: none; }
.ritual:hover::after { opacity: 1; }
.ritual-num { font-family: var(--display); font-size: 0.62rem; letter-spacing: 0.5em; color: var(--brass); margin-bottom: 56px; }
.ritual-glyph { width: 56px; height: 56px; color: var(--pale-gold); margin-bottom: 32px; transition: transform 1s var(--ease); }
.ritual:hover .ritual-glyph { transform: rotate(180deg); }
.ritual h3 { font-family: var(--display); font-size: 1.05rem; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 18px; }
.ritual p { font-family: var(--serif); font-size: 1rem; margin-bottom: auto; padding-bottom: 32px; }
.ritual-foot { font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.42em; text-transform: uppercase; color: var(--brass); padding-top: 22px; border-top: 1px solid var(--hairline-low); display: flex; justify-content: space-between; }

/* ─── TEMPLO ──────────────────────────────── */
.templo { position: relative; overflow: hidden; }
.templo::before { content: ""; position: absolute; top: 50%; left: 50%; width: 120%; height: 60%; transform: translate(-50%, -50%); background: radial-gradient(ellipse at center, rgba(176, 141, 87, 0.06), transparent 60%); filter: blur(40px); pointer-events: none; }
.templo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
@media (max-width: 980px) { .templo-grid { grid-template-columns: 1fr; gap: 60px; } }
.templo-side h2 { margin: 28px 0 32px; }
.templo-side > p { font-family: var(--serif); font-size: 1.15rem; max-width: 480px; margin-bottom: 44px; }
.templo-list { list-style: none; display: flex; flex-direction: column; margin-bottom: 48px; }
.templo-list li { display: grid; grid-template-columns: 32px 1fr; gap: 22px; padding: 22px 0; border-top: 1px solid var(--hairline-low); align-items: start; }
.templo-list li:last-child { border-bottom: 1px solid var(--hairline-low); }
.templo-list li .num { font-family: var(--display); font-size: 0.66rem; letter-spacing: 0.32em; color: var(--brass); padding-top: 4px; }
.templo-list li strong { display: block; font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--vellum); font-weight: 400; margin-bottom: 6px; }
.templo-list li span { font-family: var(--serif); font-size: 0.96rem; color: var(--ink-mute); }
.relic-stage { display: flex; justify-content: center; position: relative; }
.relic-glow { position: absolute; inset: -10%; background: radial-gradient(circle, rgba(176, 141, 87, 0.18), transparent 60%); filter: blur(40px); z-index: 0; }
.phone { position: relative; z-index: 1; width: 300px; aspect-ratio: 9/19; border-radius: 44px; background: linear-gradient(180deg, #161616, #0a0a0a); border: 1px solid var(--bronze); padding: 12px; box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(176, 141, 87, 0.18), 0 0 60px rgba(176, 141, 87, 0.1); }
.phone::before { content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 100px; height: 5px; background: #000; border-radius: 4px; z-index: 3; }
.phone-screen { width: 100%; height: 100%; border-radius: 32px; background: radial-gradient(ellipse at 50% 30%, rgba(58, 42, 31, 0.5), transparent 60%), radial-gradient(ellipse at 50% 90%, rgba(176, 141, 87, 0.06), transparent 60%), var(--black); position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 32px 32px; }
.phone-time { position: absolute; top: 18px; left: 28px; font-family: var(--sans); font-size: 0.6rem; color: var(--ink-low); letter-spacing: 0.05em; }
.phone-stat { position: absolute; top: 18px; right: 28px; display: flex; gap: 4px; }
.phone-stat i { width: 4px; height: 4px; background: var(--brass); border-radius: 50%; opacity: 0.8; }
.phone-eye { width: 70px; height: 70px; color: var(--brass); margin-bottom: 24px; animation: eyePulse 4s ease-in-out infinite; }
@keyframes eyePulse { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; filter: drop-shadow(0 0 8px var(--brass)); } }
.phone-h { font-family: var(--display); font-size: 0.7rem; letter-spacing: 0.42em; text-transform: uppercase; color: var(--brass); text-align: center; margin-bottom: 8px; }
.phone-quote { font-family: var(--serif); font-style: italic; font-size: 1.05rem; text-align: center; color: var(--vellum); margin-bottom: 36px; line-height: 1.4; }
.phone-cta { border: 1px solid var(--brass); padding: 12px 24px; font-family: var(--sans); font-size: 0.55rem; letter-spacing: 0.42em; text-transform: uppercase; color: var(--pale-gold); }
.phone-dock { position: absolute; bottom: 16px; display: flex; gap: 8px; }
.phone-dock i { width: 5px; height: 5px; background: var(--ink-low); border-radius: 50%; }
.phone-dock i.on { background: var(--brass); width: 18px; border-radius: 3px; }

/* ─── SOBRE ───────────────────────────────── */
.sobre { text-align: center; }
.sobre-inner { max-width: 780px; margin: 0 auto; }
.sobre-rule { width: 1px; height: 60px; background: linear-gradient(180deg, transparent, var(--brass)); margin: 0 auto 40px; }
.sobre-quote { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.5; color: var(--vellum); margin: 40px 0; }
.sobre-quote em { color: var(--pale-gold); font-style: italic; }
.sobre-sign { font-family: var(--display); font-size: 0.66rem; letter-spacing: 0.5em; text-transform: uppercase; color: var(--brass); margin-top: 48px; display: inline-flex; align-items: center; gap: 18px; }
.sobre-sign::before, .sobre-sign::after { content: ""; width: 32px; height: 1px; background: var(--brass); opacity: 0.6; }

/* ─── CONTACTO ────────────────────────────── */
.contacto { border-top: 1px solid var(--hairline-low); background: rgba(11, 11, 11, 0.6); }
.contacto-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 100px; }
@media (max-width: 880px) { .contacto-grid { grid-template-columns: 1fr; gap: 60px; } }
.contacto h2 { margin: 28px 0 32px; }
.contacto-side > p { font-family: var(--serif); font-size: 1.1rem; max-width: 460px; margin-bottom: 40px; }
.contacto-info { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.contacto-info li { font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-mute); padding: 16px 0; border-top: 1px solid var(--hairline-low); display: flex; gap: 24px; align-items: center; }
.contacto-info li:last-child { border-bottom: 1px solid var(--hairline-low); }
.contacto-info li strong { color: var(--brass); font-weight: 400; letter-spacing: 0.32em; min-width: 80px; }
.form { background: rgba(18, 18, 18, 0.6); border: 1px solid var(--hairline); padding: 56px 48px; position: relative; }
.form::before, .form::after { content: ""; position: absolute; width: 16px; height: 16px; border: 1px solid var(--brass); opacity: 0.5; }
.form::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.form::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
@media (max-width: 600px) { .form { padding: 32px 24px; } }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 24px; }
.field label { display: block; font-family: var(--sans); font-size: 0.58rem; letter-spacing: 0.42em; text-transform: uppercase; color: var(--brass); margin-bottom: 12px; }
.field input, .field select, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--hairline); padding: 12px 0; color: var(--vellum); font-family: var(--serif); font-size: 1.05rem; font-weight: 300; outline: none; transition: border-color 0.4s var(--ease); }
.field select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M1 1l4 4 4-4' stroke='%23B08D57' stroke-width='1' fill='none'/></svg>"); background-repeat: no-repeat; background-position: right 0 center; padding-right: 24px; }
.field select option { background: var(--obsidian); }
.field textarea { resize: vertical; min-height: 120px; font-family: var(--serif); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brass); }
.field.error input, .field.error select, .field.error textarea { border-color: #8a4a3a; }
.error-msg { display: block; font-size: 0.66rem; color: #b06a5a; margin-top: 8px; letter-spacing: 0.05em; min-height: 1em; }
.form-submit { margin-top: 12px; width: 100%; justify-content: center; }
.form-success { display: none; text-align: center; padding: 28px; border: 1px solid var(--brass); margin-top: 24px; font-family: var(--serif); font-style: italic; color: var(--pale-gold); }
.form-success.show { display: block; animation: fadeUp 0.6s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ─── FOOTER ──────────────────────────────── */
.site-footer {
  background: #050505; border-top: 1px solid var(--hairline);
  padding: 100px 0 36px; position: relative; z-index: 2;
}
.footer-mantra { text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 2rem); color: var(--vellum); max-width: 720px; margin: 0 auto 80px; line-height: 1.5; }
.footer-mantra em { color: var(--pale-gold); font-style: italic; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 56px; padding-top: 60px; border-top: 1px solid var(--hairline); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 44px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { font-family: var(--display); font-size: 0.66rem; letter-spacing: 0.42em; text-transform: uppercase; color: var(--brass); margin-bottom: 24px; font-weight: 400; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col .footer-menu { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--ink-mute); transition: color 0.4s var(--ease); }
.footer-col a:hover { color: var(--pale-gold); }
.footer-brand p { font-family: var(--serif); font-size: 0.95rem; margin: 22px 0 28px; max-width: 320px; }
.footer-bottom { margin-top: 60px; padding-top: 28px; border-top: 1px solid var(--hairline-low); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-low); }

/* ─── SCROLL REVEAL ───────────────────────── */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease); }
.reveal.is-in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.25s; }
.reveal.d3 { transition-delay: 0.4s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

/* ─── SUBMENÚS ───────────────────────────── */
.nav-menu li {
  position: relative;
  /* FIX: overflow:visible explícito para que los dropdowns
     no sean recortados por ningún ancestro */
  overflow: visible;
}

/* Desktop: dropdown */
.nav-menu .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  background: rgba(11, 11, 11, 0.97);
  border: 1px solid var(--hairline);
  list-style: none;
  /* z-index alto para estar por encima de cualquier contenido */
  z-index: 9999;
  padding: 8px 0;
  /* Evitar que el backdrop-filter del nav.scrolled recorte el dropdown */
  isolation: isolate;
}
.nav-menu .sub-menu a {
  display: block;
  padding: 10px 22px;
  font-size: 0.64rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}
.nav-menu .sub-menu a::after { display: none !important; }
.nav-menu .sub-menu a:hover { color: var(--pale-gold); padding-left: 28px; }

/*
 * FIX: El indicator (flechita) está oculto globalmente.
 * Solo el media query mobile lo activa.
 * Declararlo aquí evita que aparezca en desktop si el JS
 * inserta el elemento antes de que el media query lo oculte.
 */
.submenu-indicator { display: none; }

@media (max-width: 1080px) {
  /* Flechita visible en mobile */
  .submenu-indicator {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    margin-left: 8px;
    opacity: 0.6;
    vertical-align: middle;
    cursor: pointer;
    transition: transform 0.3s var(--ease);
  }
  .is-open > a .submenu-indicator {
    transform: rotate(-135deg) translateY(2px);
  }

  /* Submenú mobile: layout flex para alinear link + indicator */
  .nav-menu.open li.menu-item-has-children {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }
  .nav-menu.open li.menu-item-has-children > a {
    flex: 1;
  }

  /* Submenú mobile: apilado debajo del padre */
  .nav-menu.open .sub-menu {
    position: static;
    width: 100%;
    flex-basis: 100%;
    transform: none;
    background: transparent;
    border: none;
    padding: 2px 0;
    /* El JS maneja display:block/none para abrir/cerrar.
       Este bloque solo define el layout cuando está visible. */
  }
  .nav-menu.open .sub-menu a {
    font-size: 0.6rem;
    padding: 9px 18px;
    border-left: 1px solid var(--hairline);
    margin-left: 12px;
    white-space: normal;
  }
}

/* ─── SCROLLBAR ───────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--umber); }
::-webkit-scrollbar-thumb:hover { background: var(--bronze); }

/* ─── SVG ICONS SPRITE ────────────────────── */
.svg-sprite { width: 0; height: 0; position: absolute; overflow: hidden; }

/* ─── WORDPRESS NATIVE ELEMENTS ──────────── */
.entry-title { font-family: var(--display); letter-spacing: 0.08em; color: var(--vellum); }
.entry-content p { color: var(--ink-mute); font-family: var(--serif); font-size: 1.1rem; line-height: 1.8; }
.entry-content h2, .entry-content h3 { color: var(--vellum); margin: 2em 0 0.8em; }
.entry-content a { color: var(--brass); border-bottom: 1px solid var(--hairline); }
.entry-content a:hover { color: var(--pale-gold); border-color: var(--pale-gold); }
.entry-content img { border: 1px solid var(--hairline); }
.entry-content blockquote { border-left: 2px solid var(--brass); margin: 2em 0; padding: 1em 2em; font-family: var(--serif); font-style: italic; color: var(--pale-gold); font-size: 1.2rem; }
.entry-meta { font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--brass); margin-bottom: 2rem; }

/* Paginación */
.wp-pagenavi, .navigation { text-align: center; padding: 3rem 0; }
.wp-pagenavi a, .wp-pagenavi span,
.nav-links a, .nav-links span { font-family: var(--display); font-size: 0.7rem; letter-spacing: 0.32em; color: var(--brass); padding: 0.5rem 1rem; border: 1px solid var(--hairline); margin: 0 4px; transition: all 0.4s var(--ease); }
.wp-pagenavi a:hover, .nav-links a:hover { border-color: var(--brass); background: rgba(176, 141, 87, 0.1); }

/* Compatibilidad Elementor */
.elementor-section { position: relative; z-index: 2; }
.elementor-container { position: relative; z-index: 2; }

/* Blog posts listing */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 2px; }
.post-card { padding: 40px; background: rgba(18, 18, 18, 0.4); border: 1px solid var(--hairline); transition: background 0.5s var(--ease); }
.post-card:hover { background: rgba(58, 42, 31, 0.2); }
.post-card .post-date { font-family: var(--display); font-size: 0.6rem; letter-spacing: 0.42em; color: var(--brass); margin-bottom: 16px; }
.post-card h3 a { color: var(--vellum); font-family: var(--serif); font-size: 1.4rem; transition: color 0.4s var(--ease); }
.post-card h3 a:hover { color: var(--pale-gold); }
.post-card p { font-family: var(--serif); color: var(--ink-mute); }

/* Site-level layout wrapper */
.site-main { position: relative; z-index: 2; }
.site-main:not(.has-hero) { padding-top: 120px; }
