@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;800&family=Outfit:wght@300;400;500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --bg-dark: #07030c;
  --bg-surface: #11071c;
  --gold-primary: #d4af37;
  --gold-light: #f3e5ab;
  --gold-glow: rgba(212, 175, 55, 0.45);
  --crimson-fire: #ff2a6d;
  --purple-neon: #9d4edd;
  --purple-deep: #3c096c;
  --text-main: #f8f6fa;
  --text-muted: #c4bccf;
  --border-gold: rgba(212, 175, 55, 0.25);
  --font-heading: 'Cinzel', serif;
  --font-body: 'Outfit', sans-serif;
  --font-mystic: 'Cormorant Garamond', serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  /* Fondo Pergamino Continuo Místico */
  background-image: 
    radial-gradient(circle at 50% 10%, rgba(36, 15, 59, 0.6) 0%, transparent 60%),
    radial-gradient(circle at 80% 60%, rgba(157, 78, 221, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
}

/* Background Cosmic Canvas */
#cosmic-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  letter-spacing: 1.5px;
  line-height: 1.3;
  font-weight: 700;
}

.gold-text {
  background: linear-gradient(135deg, #fff 0%, var(--gold-primary) 50%, #aa771c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.fire-text {
  background: linear-gradient(135deg, #ffd000 0%, #ff2a6d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Divisores Místicos de Pergamino (Reemplazan bordes rígidos) */
.mystic-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 4.5rem auto;
  max-width: 700px;
  color: var(--gold-primary);
  font-size: 1.4rem;
  opacity: 0.8;
}

.mystic-divider::before,
.mystic-divider::after {
  content: '';
  flex-grow: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

/* Menú de Desplazamiento Flotante (Pergamino Sticky) */
.parchment-nav-wrapper {
  position: sticky;
  top: 1rem;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
}

.parchment-nav {
  background: rgba(11, 5, 20, 0.88);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-gold);
  padding: 0.6rem 1.8rem;
  border-radius: 50px;
  display: flex;
  gap: 1.8rem;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(212, 175, 55, 0.15);
}

.parchment-nav a {
  color: var(--gold-light);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.parchment-nav a:hover {
  color: var(--gold-primary);
  text-shadow: 0 0 8px var(--gold-glow);
  transform: translateY(-1px);
}

.parchment-nav .nav-cta {
  background: linear-gradient(135deg, var(--gold-primary), #996515);
  color: #000;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-weight: 700;
}

.parchment-nav .nav-cta:hover {
  color: #000;
  box-shadow: 0 0 15px var(--gold-glow);
}

/* Header Principal */
.main-header {
  padding: 2rem 5% 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-symbol {
  font-size: 2.2rem;
  color: var(--gold-primary);
  filter: drop-shadow(0 0 10px var(--gold-glow));
  animation: floatRune 3s ease-in-out infinite alternate;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 3px;
}

/* Hero Section (Pergamino Fluido) */
.hero-section {
  padding: 3rem 5% 4rem;
  text-align: center;
  max-width: 950px;
  margin: 0 auto;
}

.badge-mystic {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border-gold);
  border-radius: 50px;
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 2rem;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  margin-bottom: 1.8rem;
  font-weight: 800;
  line-height: 1.2;
}

.hero-subtitle {
  font-family: var(--font-mystic);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  color: var(--text-main);
  margin-bottom: 2.5rem;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  font-style: italic;
  line-height: 1.6;
}

/* Urgency Countdown Banner */
.urgency-banner {
  background: rgba(255, 42, 109, 0.08);
  border: 1px solid rgba(255, 42, 109, 0.3);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.urgency-text {
  font-size: 0.95rem;
  color: #ff85a1;
  font-weight: 600;
}

.timer {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--crimson-fire);
  letter-spacing: 3px;
}

/* CTA Buttons */
.btn-whatsapp-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  padding: 1.3rem 3rem;
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 0 35px rgba(37, 211, 102, 0.6);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-whatsapp-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

.btn-whatsapp-hero:hover {
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 0 50px rgba(37, 211, 102, 0.9);
  color: #fff;
}

/* Sección Estilo Pergamino Continuo (Sin cajas rígidas) */
.parchment-flow-section {
  padding: 4rem 5%;
  max-width: 1050px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-subtitle {
  font-family: var(--font-mystic);
  font-size: 1.5rem;
  color: var(--gold-primary);
  font-style: italic;
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-top: 0.3rem;
}

/* Tarot Interactivo del Destino (3 Cartas Desplegables) */
.tarot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2.5rem;
  margin: 3rem auto;
}

.tarot-card {
  perspective: 1000px;
  height: 440px;
  cursor: pointer;
}

.tarot-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

.tarot-card.flipped .tarot-inner {
  transform: rotateY(180deg);
}

.tarot-front, .tarot-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  padding: 2.5rem 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.tarot-front {
  background: radial-gradient(circle, rgba(36, 17, 61, 0.9) 0%, rgba(11, 5, 20, 0.95) 100%);
  border: 2px solid var(--gold-primary);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}

.tarot-symbol {
  font-size: 5rem;
  color: var(--gold-primary);
  filter: drop-shadow(0 0 15px var(--gold-glow));
  margin: auto 0;
}

.tarot-prompt {
  font-family: var(--font-mystic);
  font-size: 1.3rem;
  color: var(--gold-light);
  font-style: italic;
}

.tarot-back {
  background: radial-gradient(circle, rgba(20, 8, 35, 0.98) 0%, rgba(7, 3, 12, 0.98) 100%);
  border: 2px solid var(--crimson-fire);
  transform: rotateY(180deg);
  box-shadow: 0 0 35px rgba(255, 42, 109, 0.3);
  text-align: left;
}

.tarot-back h4 {
  color: var(--gold-primary);
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  text-align: center;
}

.tarot-back p {
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
}

.btn-tarot-wa {
  background: var(--gold-primary);
  color: #000;
  padding: 0.7rem 1.2rem;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.88rem;
  width: 100%;
  text-align: center;
  transition: all 0.3s ease;
}

.btn-tarot-wa:hover {
  background: #fff;
  box-shadow: 0 0 20px var(--gold-glow);
}

/* Capítulos del Pergamino (Reemplazan las tarjetas boxy de rituales) */
.parchment-chapters {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.parchment-chapter {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding-bottom: 3.5rem;
  border-bottom: 1px dashed rgba(212, 175, 55, 0.2);
}

.parchment-chapter:last-child {
  border-bottom: none;
}

.chapter-icon {
  font-size: 3.5rem;
  min-width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

.chapter-content h3 {
  font-size: 1.8rem;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.chapter-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.chapter-link {
  color: var(--gold-primary);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.chapter-link:hover {
  color: #fff;
  transform: translateX(5px);
}

/* Oráculo Interactivo de Diagnóstico (Pergamino Iluminado) */
.oracle-box {
  background: radial-gradient(ellipse at center, rgba(30, 12, 50, 0.8) 0%, rgba(10, 4, 18, 0.9) 100%);
  border: 1px solid var(--gold-primary);
  border-radius: 30px;
  max-width: 780px;
  margin: 0 auto;
  padding: 3.5rem 2.5rem;
  text-align: center;
  box-shadow: 0 0 50px rgba(212, 175, 55, 0.15);
  position: relative;
}

.oracle-step {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.oracle-step.active {
  display: block;
}

.oracle-question {
  font-size: 1.7rem;
  color: var(--gold-light);
  margin-bottom: 2.2rem;
}

.oracle-options {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 550px;
  margin: 0 auto;
}

.btn-oracle-opt {
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--text-main);
  padding: 1.1rem 1.8rem;
  border-radius: 50px;
  font-size: 1.08rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-oracle-opt:hover {
  background: var(--gold-primary);
  color: #000;
  font-weight: 700;
  transform: scale(1.03);
  box-shadow: 0 0 20px var(--gold-glow);
}

.oracle-progress {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.2rem;
}

.progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: background 0.3s ease;
}

.progress-dot.active {
  background: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-glow);
}

/* Testimonios en formato de Crónicas Místicas */
.testimonials-flow {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.testimonial-chronicle {
  padding: 2rem 2.5rem;
  border-left: 3px solid var(--gold-primary);
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.07) 0%, transparent 100%);
}

.star-rating {
  color: #ffc107;
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.testimonial-text {
  font-family: var(--font-mystic);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-info h4 {
  color: var(--gold-light);
  font-size: 1.05rem;
}

.verified-badge {
  color: #25d366;
  font-size: 0.8rem;
}

/* FAQ Acordeón Fluido */
.faq-container {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-gold);
  margin-bottom: 1rem;
}

.faq-question {
  padding: 1.4rem 0;
  font-weight: 600;
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--gold-light);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  padding-bottom: 1.5rem;
  max-height: 350px;
}

/* Floating WhatsApp Widget */
.floating-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.wa-bubble {
  background: #25d366;
  color: #fff;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.3rem;
  box-shadow: 0 4px 25px rgba(37, 211, 102, 0.7);
  position: relative;
  transition: transform 0.3s ease;
}

.wa-bubble:hover {
  transform: scale(1.1);
}

.wa-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #25d366;
  border-radius: 50%;
  z-index: -1;
  animation: pulseRing 2s infinite;
}

/* Footer & Legal */
.main-footer {
  padding: 5rem 5% 3rem;
  text-align: center;
}

.google-ads-disclaimer {
  max-width: 900px;
  margin: 0 auto 2.5rem;
  font-size: 0.8rem;
  color: #7d758c;
  text-align: justify;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--gold-light);
  text-decoration: none;
  font-size: 0.95rem;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--gold-primary);
  border-radius: 20px;
  max-width: 700px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--gold-light);
  font-size: 2rem;
  cursor: pointer;
}

@keyframes floatRune {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-6px) rotate(8deg); }
}

@keyframes shine {
  100% { left: 150%; }
}

@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .parchment-nav {
    gap: 1rem;
    padding: 0.5rem 1rem;
  }
  .parchment-nav a span {
    display: none;
  }
  .parchment-chapter {
    flex-direction: column;
    gap: 1rem;
  }
  .trust-badges-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .astral-inputs {
    flex-direction: column !important;
  }
  .social-proof-toast {
    bottom: 15px !important;
    left: 15px !important;
    right: 15px !important;
    max-width: calc(100% - 30px) !important;
  }
  .live-status-ticker {
    font-size: 0.75rem !important;
  }
}

/* --- NUEVAS SECCIONES PROFESIONALES DE ALTA CONVERSIÓN --- */

/* 1. Barra Superior en Vivo (Live Status Ticker) */
.live-status-ticker {
  background: linear-gradient(90deg, #1b072c, #310d4f, #1b072c);
  border-bottom: 1px solid var(--border-gold);
  color: var(--gold-light);
  text-align: center;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1001;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.live-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #00ff66;
  border-radius: 50%;
  margin-right: 6px;
  box-shadow: 0 0 8px #00ff66;
  animation: pulseGreen 1.5s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px #00ff66; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

/* 2. Insignias de Confianza en Hero (Trust Badges Grid) */
.trust-badges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 850px;
  margin: 2.5rem auto 0;
  padding: 0 1rem;
}

.trust-badge-card {
  background: rgba(17, 7, 28, 0.75);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 1rem 0.8rem;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.trust-badge-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.2);
}

.trust-badge-icon {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
  display: block;
}

.trust-badge-title {
  color: var(--gold-primary);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  line-height: 1.2;
}

.trust-badge-desc {
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

/* 3. Escáner Astrológico de Compatibilidad y Sinastría */
.astral-scanner-box {
  background: radial-gradient(circle at 50% 30%, #200836 0%, #0d0317 100%);
  border: 1px solid var(--gold-primary);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  max-width: 780px;
  margin: 0 auto;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.15);
  position: relative;
  overflow: hidden;
}

.astral-scanner-box::before {
  content: '⛧';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18rem;
  color: rgba(212, 175, 55, 0.03);
  pointer-events: none;
}

.astral-inputs {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
}

.sign-select-group {
  flex: 1;
  text-align: center;
}

.sign-select-group label {
  display: block;
  color: var(--gold-light);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.sign-selector {
  width: 100%;
  padding: 0.85rem 1.2rem;
  background: rgba(7, 3, 12, 0.9);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.sign-selector:focus, .sign-selector:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px var(--gold-glow);
}

.astral-plus {
  font-size: 1.8rem;
  color: var(--crimson-fire);
  text-shadow: 0 0 10px var(--crimson-fire);
  margin-top: 1.2rem;
}

.btn-astral-scan {
  background: linear-gradient(135deg, var(--gold-primary), #996515);
  color: #000;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  padding: 1rem 2.2rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
  transition: all 0.3s ease;
  display: block;
  margin: 0 auto;
}

.btn-astral-scan:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.6);
  background: linear-gradient(135deg, #f3e5ab, var(--gold-primary));
}

.scanner-loading {
  display: none;
  text-align: center;
  margin: 2rem 0;
}

.scanner-wheel {
  width: 70px;
  height: 70px;
  border: 4px solid rgba(212, 175, 55, 0.2);
  border-top-color: var(--gold-primary);
  border-right-color: var(--crimson-fire);
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: spinWheel 1s linear infinite;
}

@keyframes spinWheel {
  to { transform: rotate(360deg); }
}

.scanner-result {
  display: none;
  background: rgba(17, 7, 28, 0.95);
  border: 1px solid var(--gold-primary);
  border-radius: 16px;
  padding: 1.8rem;
  margin-top: 2rem;
  text-align: center;
  animation: fadeIn 0.6s ease;
}

.affinity-score {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  color: var(--gold-primary);
  text-shadow: 0 0 15px var(--gold-glow);
  margin: 0.5rem 0;
}

/* 4. Notificaciones Emergentes en Tiempo Real (Social Proof Toast) */
.social-proof-toast {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 1500;
  background: rgba(17, 7, 28, 0.94);
  border: 1px solid var(--gold-primary);
  border-radius: 14px;
  padding: 0.9rem 1.2rem;
  max-width: 340px;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(212, 175, 55, 0.2);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
  pointer-events: none;
}

.social-proof-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  font-size: 1.8rem;
  background: rgba(212, 175, 55, 0.15);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-text {
  font-size: 0.82rem;
  color: var(--text-main);
  line-height: 1.35;
}

.toast-text strong {
  color: var(--gold-light);
}

.toast-time {
  display: block;
  font-size: 0.72rem;
  color: var(--gold-primary);
  margin-top: 3px;
}


/* 6. Centro de Altar Arcano Giratorio (Hero Ornament) */
.altar-centerpiece {
  display: flex;
  justify-content: center;
  margin: 1.5rem auto;
  position: relative;
}

.sigil-ring {
  width: 140px;
  height: 140px;
  border: 1px dashed var(--gold-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: spinWheel 25s linear infinite;
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.15) inset;
}

.sigil-core {
  font-size: 3.2rem;
  color: var(--gold-primary);
  text-shadow: 0 0 20px var(--gold-glow);
  animation: floatRune 4s ease-in-out infinite alternate;
}


/* ═══════════════════════════════════════════════════════════════════ */
/* SCROLL REVEAL ANIMATION SYSTEM                                    */
/* ═══════════════════════════════════════════════════════════════════ */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delay for children */
.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.4s; }


/* ═══════════════════════════════════════════════════════════════════ */
/* PREMIUM MICRO-ANIMATIONS & EFFECTS                                */
/* ═══════════════════════════════════════════════════════════════════ */

/* Shimmer effect on badges */
.badge-mystic {
  position: relative;
  overflow: hidden;
}

.badge-mystic::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  50% { left: 150%; }
  100% { left: 150%; }
}

/* Premium hover on trust badge cards */
.trust-badge-card {
  position: relative;
  overflow: hidden;
}

.trust-badge-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 14px;
  padding: 1px;
  background: linear-gradient(135deg, transparent 30%, var(--gold-primary) 50%, transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.trust-badge-card:hover::before {
  opacity: 1;
}

/* Bounce icon on trust badge hover */
.trust-badge-card:hover .trust-badge-icon {
  animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-3px); }
}

/* Ripple effect on CTA buttons */
.btn-whatsapp-hero {
  position: relative;
  overflow: hidden;
}

/* Premium chapter links glow */
.chapter-link::after {
  content: '→';
  transition: transform 0.3s ease;
}

.chapter-link:hover::after {
  transform: translateX(5px);
}

/* Section title gradient underline on hover */
.section-title {
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  transition: width 0.6s ease;
}

.section-header:hover .section-title::after {
  width: 80%;
}


/* ═══════════════════════════════════════════════════════════════════ */
/* HERO SERVICIOS — GRIMORIO (Tema: Fuego / Llamas)                  */
/* ═══════════════════════════════════════════════════════════════════ */
.hero-grimorio {
  position: relative;
  overflow: hidden;
}

.grimorio-flames {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  pointer-events: none;
  z-index: 0;
}

.flame {
  position: absolute;
  bottom: -20px;
  border-radius: 50% 50% 20% 20%;
  filter: blur(25px);
  opacity: 0.4;
  animation: flameFlicker 3s ease-in-out infinite alternate;
}

.flame-1 {
  left: 10%;
  width: 120px;
  height: 160px;
  background: radial-gradient(ellipse, #ff2a6d 0%, #ff6b35 40%, transparent 70%);
  animation-duration: 2.5s;
}

.flame-2 {
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 200px;
  background: radial-gradient(ellipse, #d4af37 0%, #ff6b35 40%, transparent 70%);
  animation-duration: 3.5s;
  animation-delay: 0.5s;
}

.flame-3 {
  right: 10%;
  width: 100px;
  height: 140px;
  background: radial-gradient(ellipse, #9d4edd 0%, #ff2a6d 40%, transparent 70%);
  animation-duration: 2.8s;
  animation-delay: 1s;
}

@keyframes flameFlicker {
  0% { transform: scaleY(1) scaleX(1); opacity: 0.3; }
  25% { transform: scaleY(1.1) scaleX(0.95); opacity: 0.5; }
  50% { transform: scaleY(0.9) scaleX(1.05); opacity: 0.35; }
  75% { transform: scaleY(1.15) scaleX(0.9); opacity: 0.45; }
  100% { transform: scaleY(1.05) scaleX(1); opacity: 0.4; }
}

/* Floating Tarot Cards Ornament */
.grimorio-cards-ornament {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem auto;
}

.grimorio-float-card {
  width: 70px;
  height: 100px;
  background: radial-gradient(circle, rgba(36, 17, 61, 0.9) 0%, rgba(11, 5, 20, 0.95) 100%);
  border: 2px solid var(--gold-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(212, 175, 55, 0.2);
  animation: cardFloat 4s ease-in-out infinite alternate;
  transform: rotate(-5deg);
}

.grimorio-float-card--center {
  transform: rotate(0deg) scale(1.1);
  animation-delay: 0.5s;
  border-color: var(--crimson-fire);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 42, 109, 0.3);
}

.grimorio-float-card:last-child {
  transform: rotate(5deg);
  animation-delay: 1s;
}

@keyframes cardFloat {
  0% { transform: translateY(0) rotate(-5deg); }
  100% { transform: translateY(-12px) rotate(-3deg); }
}

.grimorio-float-card--center {
  animation-name: cardFloatCenter;
}

@keyframes cardFloatCenter {
  0% { transform: translateY(0) rotate(0deg) scale(1.1); }
  100% { transform: translateY(-15px) rotate(0deg) scale(1.1); }
}

.grimorio-float-card:last-child {
  animation-name: cardFloatRight;
}

@keyframes cardFloatRight {
  0% { transform: translateY(0) rotate(5deg); }
  100% { transform: translateY(-10px) rotate(3deg); }
}


/* ═══════════════════════════════════════════════════════════════════ */
/* HERO TRAYECTORIA — CRÓNICAS (Tema: Pergamino / Sello de Cera)     */
/* ═══════════════════════════════════════════════════════════════════ */
.hero-cronicas {
  position: relative;
  overflow: hidden;
}

.cronicas-parchment-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 100%;
  background: radial-gradient(ellipse at center top, rgba(212, 175, 55, 0.06) 0%, transparent 60%);
  pointer-events: none;
  animation: parchmentUnfurl 2s ease-out forwards;
}

@keyframes parchmentUnfurl {
  0% { opacity: 0; transform: translateX(-50%) scaleY(0.3); }
  100% { opacity: 1; transform: translateX(-50%) scaleY(1); }
}

/* Wax Seal */
.cronicas-seal {
  display: flex;
  justify-content: center;
  margin: 1.5rem auto;
  position: relative;
}

.seal-outer {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, #c4302b 0%, #8b1a15 60%, #5a0f0c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 4px 15px rgba(196, 48, 43, 0.5),
    inset 0 2px 8px rgba(255, 255, 255, 0.15),
    inset 0 -3px 8px rgba(0, 0, 0, 0.3);
  position: relative;
}

.seal-outer::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px dashed rgba(212, 175, 55, 0.4);
  animation: spinWheel 30s linear infinite;
}

.seal-inner {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, #d44a45 0%, #a82822 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 1px solid rgba(212, 175, 55, 0.5);
}

.seal-glow {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
  animation: sealPulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sealPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 0.3; }
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold-primary), rgba(212, 175, 55, 0.2));
}

.timeline-item {
  position: relative;
  padding: 0 0 3rem 2rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -33px;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.timeline-content h3 {
  color: var(--gold-light);
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.timeline-content p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}


/* ═══════════════════════════════════════════════════════════════════ */
/* HERO CONTACTO — ORÁCULO (Tema: Nebulosa / Portal Cósmico)        */
/* ═══════════════════════════════════════════════════════════════════ */
.hero-oraculo {
  position: relative;
  overflow: hidden;
}

.oraculo-nebula {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.nebula-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: nebulaExpand 8s ease-in-out infinite;
}

.nebula-ring-1 {
  width: 200px;
  height: 200px;
  top: -100px;
  left: -100px;
  border-color: rgba(157, 78, 221, 0.3);
  animation-duration: 6s;
}

.nebula-ring-2 {
  width: 350px;
  height: 350px;
  top: -175px;
  left: -175px;
  border-color: rgba(212, 175, 55, 0.2);
  animation-duration: 8s;
  animation-delay: 1s;
}

.nebula-ring-3 {
  width: 500px;
  height: 500px;
  top: -250px;
  left: -250px;
  border-color: rgba(255, 42, 109, 0.15);
  animation-duration: 10s;
  animation-delay: 2s;
}

@keyframes nebulaExpand {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.6; }
  50% { transform: scale(1.15) rotate(180deg); opacity: 0.3; }
}

/* Crystal Ball */
.crystal-ball-ornament {
  display: flex;
  justify-content: center;
  margin: 1.5rem auto;
}

.crystal-ball {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(200, 180, 255, 0.3) 0%, rgba(60, 9, 108, 0.6) 40%, rgba(7, 3, 12, 0.9) 100%);
  border: 2px solid rgba(212, 175, 55, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 0 40px rgba(157, 78, 221, 0.3),
    0 0 80px rgba(157, 78, 221, 0.15),
    inset 0 0 30px rgba(157, 78, 221, 0.2);
}

.crystal-mist {
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(157, 78, 221, 0.3) 0%, transparent 50%);
  animation: mistSwirl 6s ease-in-out infinite;
}

@keyframes mistSwirl {
  0% { transform: translate(-20%, -20%) rotate(0deg); }
  33% { transform: translate(10%, -10%) rotate(120deg); }
  66% { transform: translate(-10%, 10%) rotate(240deg); }
  100% { transform: translate(-20%, -20%) rotate(360deg); }
}

.crystal-emoji {
  font-size: 3rem;
  position: relative;
  z-index: 1;
  animation: floatRune 3s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 15px rgba(157, 78, 221, 0.6));
}


/* ═══════════════════════════════════════════════════════════════════ */
/* GLASSMORPHISM ENHANCEMENTS                                        */
/* ═══════════════════════════════════════════════════════════════════ */

/* Oracle box glassmorphism */
.oracle-box {
  background: rgba(30, 12, 50, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Scanner box glassmorphism */
.astral-scanner-box {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Testimonial glassmorphism hover */
.testimonial-chronicle {
  transition: all 0.4s ease;
}

.testimonial-chronicle:hover {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.12) 0%, rgba(157, 78, 221, 0.05) 100%);
  transform: translateX(8px);
  border-left-color: var(--crimson-fire);
}

/* Parchment chapter hover effect */
.parchment-chapter {
  transition: all 0.4s ease;
}

.parchment-chapter:hover {
  transform: translateX(6px);
}

.parchment-chapter:hover .chapter-icon {
  animation: iconBounce 0.5s ease;
}


/* ═══════════════════════════════════════════════════════════════════ */
/* RESPONSIVE UPDATES FOR NEW FEATURES                               */
/* ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .grimorio-cards-ornament {
    gap: 0.8rem;
  }
  .grimorio-float-card {
    width: 55px;
    height: 80px;
    font-size: 1.5rem;
  }
  .seal-outer {
    width: 85px;
    height: 85px;
  }
  .seal-inner {
    width: 55px;
    height: 55px;
    font-size: 1.5rem;
  }
  .crystal-ball {
    width: 90px;
    height: 90px;
  }
  .crystal-emoji {
    font-size: 2.2rem;
  }
  .timeline {
    padding-left: 30px;
  }
  .timeline::before {
    left: 10px;
  }
  .timeline-marker {
    left: -28px;
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  .nebula-ring-1 { width: 140px; height: 140px; top: -70px; left: -70px; }
  .nebula-ring-2 { width: 240px; height: 240px; top: -120px; left: -120px; }
  .nebula-ring-3 { width: 340px; height: 340px; top: -170px; left: -170px; }
  .flame { filter: blur(20px); opacity: 0.3; }
}


/* ═══════════════════════════════════════════════════════════════════ */
/* 🌀 INTRO PORTAL — LOADING CINEMATOGRÁFICO                         */
/* ═══════════════════════════════════════════════════════════════════ */
.intro-portal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, #0d0317 0%, #07030c 100%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.intro-portal.portal-fade {
  opacity: 0;
  transform: scale(1.5);
  pointer-events: none;
}

.intro-portal.portal-hidden {
  display: none;
}

.portal-rings {
  position: relative;
  width: 200px;
  height: 200px;
}

.portal-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.portal-ring-1 {
  width: 100px;
  height: 100px;
  border-color: var(--gold-primary);
  animation: portalSpin 2s linear infinite;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.portal-ring-2 {
  width: 150px;
  height: 150px;
  border-color: var(--crimson-fire);
  border-style: dashed;
  animation: portalSpin 3s linear infinite reverse;
  box-shadow: 0 0 20px rgba(255, 42, 109, 0.3);
}

.portal-ring-3 {
  width: 200px;
  height: 200px;
  border-color: var(--purple-neon);
  border-style: dotted;
  animation: portalSpin 4s linear infinite;
  box-shadow: 0 0 25px rgba(157, 78, 221, 0.3);
}

@keyframes portalSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.portal-core {
  position: absolute;
  font-size: 3.5rem;
  animation: portalCorePulse 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 25px var(--gold-glow));
}

@keyframes portalCorePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.portal-text {
  margin-top: 130px;
  color: var(--gold-light);
  font-family: var(--font-mystic);
  font-size: 1.2rem;
  font-style: italic;
  letter-spacing: 2px;
  animation: fadeIn 1s ease forwards;
  opacity: 0;
  animation-delay: 0.5s;
}


/* ═══════════════════════════════════════════════════════════════════ */
/* 📈 SCROLL PROGRESS BAR                                            */
/* ═══════════════════════════════════════════════════════════════════ */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--purple-neon), var(--gold-primary), var(--crimson-fire));
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px var(--gold-glow), 0 0 20px rgba(212, 175, 55, 0.3);
}


/* ═══════════════════════════════════════════════════════════════════ */
/* ✨ CURSOR MÁGICO PERSONALIZADO                                     */
/* ═══════════════════════════════════════════════════════════════════ */
.magic-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

.magic-cursor.cursor-hover {
  width: 50px;
  height: 50px;
  border-color: var(--crimson-fire);
  background: rgba(255, 42, 109, 0.1);
}

.magic-cursor-trail {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-primary);
  pointer-events: none;
  z-index: 9997;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  transform: translate(-50%, -50%);
  opacity: 0.5;
  box-shadow: 0 0 10px var(--gold-glow);
}

/* Ocultar cursor custom en móvil y touch */
@media (hover: none), (max-width: 768px) {
  .magic-cursor, .magic-cursor-trail {
    display: none !important;
  }
  body { cursor: auto !important; }
}

@media (hover: hover) {
  body {
    cursor: none;
  }
  a, button, select, .tarot-card, .btn-oracle-opt {
    cursor: none;
  }
}


/* ═══════════════════════════════════════════════════════════════════ */
/* 📜 MARQUEE INFINITO DE SOCIAL PROOF                               */
/* ═══════════════════════════════════════════════════════════════════ */
.infinite-marquee {
  overflow: hidden;
  background: linear-gradient(90deg, rgba(17, 7, 28, 0.95), rgba(30, 12, 50, 0.9), rgba(17, 7, 28, 0.95));
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
  padding: 1rem 0;
  position: relative;
}

.infinite-marquee::before,
.infinite-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
}

.infinite-marquee::before {
  left: 0;
  background: linear-gradient(90deg, rgba(7, 3, 12, 1) 0%, transparent 100%);
}

.infinite-marquee::after {
  right: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(7, 3, 12, 1) 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 40s linear infinite;
}

.marquee-item {
  flex-shrink: 0;
  padding: 0 2.5rem;
  color: var(--gold-light);
  font-family: var(--font-mystic);
  font-size: 1rem;
  font-style: italic;
  white-space: nowrap;
  opacity: 0.8;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ═══════════════════════════════════════════════════════════════════ */
/* 🔮 3D TILT EFFECT EN TARJETAS                                     */
/* ═══════════════════════════════════════════════════════════════════ */
.tilt-card {
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  perspective: 800px;
}

.tilt-card:hover {
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(212, 175, 55, 0.25);
}


/* ═══════════════════════════════════════════════════════════════════ */
/* ⌨️ TYPEWRITER EFFECT                                               */
/* ═══════════════════════════════════════════════════════════════════ */
.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--gold-primary);
  margin-left: 3px;
  animation: blink 0.7s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}


/* ═══════════════════════════════════════════════════════════════════ */
/* 📊 COUNTER ANIMATE                                                */
/* ═══════════════════════════════════════════════════════════════════ */
.counter-animate {
  font-variant-numeric: tabular-nums;
}


/* ═══════════════════════════════════════════════════════════════════ */
/* RESPONSIVE UPDATES FOR NEW UNIQUE FEATURES                        */
/* ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .intro-portal .portal-rings {
    width: 150px;
    height: 150px;
  }
  .portal-ring-1 { width: 70px; height: 70px; }
  .portal-ring-2 { width: 110px; height: 110px; }
  .portal-ring-3 { width: 150px; height: 150px; }
  .portal-core { font-size: 2.5rem; }
  .portal-text { margin-top: 100px; font-size: 1rem; }
  .marquee-item { font-size: 0.88rem; padding: 0 1.5rem; }
  .infinite-marquee::before,
  .infinite-marquee::after { width: 40px; }
}


/* ═══════════════════════════════════════════════════════════════════ */
/* 🔮 PREMIUM MAGIC LAYOUTS (ASIMÉTRICO, GLASSMORPHISM, 3D)          */
/* ═══════════════════════════════════════════════════════════════════ */

/* --- 1. BASE HERO PREMIUM --- */
.hero-premium {
  position: relative;
  min-height: 90vh;
  overflow: hidden;
  padding: 8rem 5% 4rem;
  z-index: 1;
}

/* --- HERO INDEX: Cinematic Split --- */
.hero-index {
  display: flex;
  align-items: center;
}
.hero-index .hero-premium-content {
  width: 50%;
  position: relative;
  z-index: 2;
  background: rgba(15, 5, 25, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-left: 4px solid var(--gold-primary);
  border-radius: 20px;
  padding: 4rem;
  box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}
.hero-cinematic-bg {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 60%;
  z-index: 0;
  mask-image: linear-gradient(to right, transparent, black 30%);
  -webkit-mask-image: linear-gradient(to right, transparent, black 30%);
}
.hero-cinematic-bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.7) contrast(1.1);
  animation: slowZoom 20s infinite alternate linear;
}

/* --- HERO SERVICIOS: Floating Centerpiece --- */
.hero-services {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10rem;
}
.hero-services .hero-premium-content {
  width: 100%;
  max-width: 800px;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
}
.hero-services .hero-premium-content h1,
.hero-services .hero-premium-content p {
  text-align: center !important;
  margin-left: auto;
  margin-right: auto;
}
.hero-services .urgency-banner {
  justify-content: center !important;
}
.hero-services-landscape {
  width: 90%;
  max-width: 1200px;
  height: 450px;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.9), 0 0 50px rgba(212, 175, 55, 0.2);
  z-index: 2;
  position: relative;
  transform: translateY(20px);
}
.hero-services-landscape img {
  width: 100%; height: 100%; object-fit: cover;
}

/* --- HERO TRAYECTORIA: Editorial Overlap --- */
.hero-story {
  display: block; 
  min-height: 100vh;
}
.hero-story-image {
  position: absolute;
  top: 15%; right: 5%;
  width: 55%;
  height: 75vh;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: -20px 20px 60px rgba(0,0,0,0.8);
  z-index: 1;
}
.hero-story-image img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-story .hero-premium-content {
  position: absolute;
  bottom: 10%; left: 10%;
  width: 50%;
  background: rgba(15, 5, 25, 0.7);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  padding: 4rem;
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 30px 60px rgba(0,0,0,0.9);
  z-index: 2;
}

/* --- HERO CONTACTO: Spotlight Avatar --- */
.hero-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 80vh;
}
.hero-contact-avatar {
  width: 140px;
  height: 200px; 
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 20px 40px rgba(212, 175, 55, 0.4), 0 0 0 2px var(--gold-primary);
  z-index: 2;
  position: relative;
}
.hero-contact-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-contact .hero-premium-content {
  text-align: center;
  max-width: 700px;
  position: relative;
  z-index: 2;
}
.hero-contact .hero-premium-content h1,
.hero-contact .hero-premium-content p {
  text-align: center !important;
  margin-left: auto; margin-right: auto;
}
.hero-contact .trust-badges-grid {
  justify-content: center;
}

@keyframes slowZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.hero-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 50%, rgba(30, 12, 50, 0.4), var(--bg-dark) 70%);
  z-index: 0;
}

/* --- CINEMATIC ATMOSPHERE (Lights & Nature) --- */
.ambient-light-1, .ambient-light-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
  animation: pulseAmbient 10s infinite alternate;
}

.ambient-light-1 {
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15), transparent 70%);
  top: -10%;
  right: 5%;
}

.ambient-light-2 {
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, rgba(157, 78, 221, 0.15), transparent 70%);
  bottom: -20%;
  left: -10%;
  animation-delay: -5s;
}

@keyframes pulseAmbient {
  0% { transform: scale(1) translate(0, 0); opacity: 0.4; }
  100% { transform: scale(1.2) translate(-30px, 30px); opacity: 0.8; }
}

.astral-flow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.6;
}

.astral-wave {
  position: absolute;
  width: 200vw;
  height: 200vh;
  top: -50vh;
  left: -50vw;
  background: 
    radial-gradient(ellipse at 30% 40%, rgba(157, 78, 221, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(212, 175, 55, 0.06) 0%, transparent 50%);
  animation: astralDrift 30s linear infinite;
  filter: blur(60px);
}

.astral-wave-2 {
  animation: astralDrift 45s linear infinite reverse;
  opacity: 0.8;
  background: 
    radial-gradient(ellipse at 60% 30%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 40% 70%, rgba(157, 78, 221, 0.07) 0%, transparent 50%);
}

@keyframes astralDrift {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.2); }
  100% { transform: rotate(360deg) scale(1); }
}

.divine-rays {
  position: absolute;
  top: -10%;
  left: -20%;
  right: -20%;
  height: 120%;
  background: repeating-linear-gradient(
    85deg,
    transparent 0%,
    rgba(212, 175, 55, 0.02) 5%,
    transparent 15%
  );
  mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
  z-index: 1;
  pointer-events: none;
  animation: shiftRays 15s infinite alternate ease-in-out;
  transform-origin: top center;
  transform: perspective(600px) rotateX(30deg);
}

@keyframes shiftRays {
  0% { transform: perspective(600px) rotateX(30deg) skewX(-2deg) translateX(-1%); opacity: 0.5; }
  100% { transform: perspective(600px) rotateX(30deg) skewX(2deg) translateX(1%); opacity: 0.9; }
}

.hero-premium-visual {
  position: relative;
  width: 40%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  animation: floatMystic 8s ease-in-out infinite;
}

/* Aura Resplandeciente detrás del Marco */
.hero-premium-visual::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 140%; height: 140%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.25), transparent 60%);
  z-index: 0;
  filter: blur(50px);
  animation: pulseAura 4s infinite alternate;
  pointer-events: none;
}

@keyframes pulseAura {
  0% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.9); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

/* --- ORNATE MYSTIC FRAME (Rediseñado - Bordes Redondeados & Glow) --- */
.mystic-frame {
  position: relative;
  width: 100%;
  max-width: 320px; /* Tamaño mucho más controlado y elegante en PC */
  aspect-ratio: 3/4;
  border-radius: 30px; /* Bordes muy redondeados según petición */
  padding: 10px;
  background: linear-gradient(135deg, rgba(20, 8, 30, 0.9), rgba(10, 3, 15, 0.95));
  box-shadow: 
    0 40px 80px rgba(0,0,0,0.95), /* Sombra profunda abismal */
    0 0 50px rgba(212, 175, 55, 0.35), /* Glow exterior dorado intenso */
    inset 0 0 20px rgba(212, 175, 55, 0.4); /* Glow interior */
  z-index: 1;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mystic-frame:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 
    0 50px 100px rgba(0,0,0,1),
    0 0 80px rgba(212, 175, 55, 0.5),
    inset 0 0 30px rgba(212, 175, 55, 0.6);
}

/* Outer ultra-thin gold border */
.mystic-frame::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border: 2px solid rgba(212, 175, 55, 0.8);
  border-radius: 30px;
  pointer-events: none;
  z-index: 2;
}

/* Inner thin gold border */
.mystic-frame::after {
  content: '';
  position: absolute;
  top: 12px; left: 12px; right: 12px; bottom: 12px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 20px;
  pointer-events: none;
  z-index: 2;
}

/* Imagen Interior Perfectamente Redondeada */
.mystic-frame-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px; /* Mismo radio que el borde interior */
  filter: brightness(0.9) contrast(1.15) saturate(1.2);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mystic-frame:hover .mystic-frame-image {
  filter: brightness(1.1) contrast(1.2) saturate(1.2);
  transform: scale(1.05);
}

/* Ya no se usa hero-premium-content global, cada hero tiene el suyo, pero mantenemos box-shadow si se requiere */

@keyframes floatMystic {
  0%, 100% { transform: translateY(-50%) rotate(0deg) scale(1); }
  50% { transform: translateY(-52%) rotate(1.5deg) scale(1.02); }
}

/* --- 2. CAPÍTULOS PREMIUM (Overlapping Cards) --- */
.chapter-premium {
  position: relative;
  margin: 6rem auto;
  display: flex;
  align-items: center;
  min-height: 450px;
  max-width: 1200px;
}

.chapter-premium-visual {
  width: 45%; /* Reducido de 55% para que no sea gigante */
  height: 450px; /* Altura más controlada */
  position: relative;
  border-radius: 30px; /* Bordes muy redondeados */
  overflow: hidden;
  box-shadow: 
    0 30px 60px rgba(0,0,0,0.8), /* Sombra principal */
    0 0 30px rgba(212, 175, 55, 0.2); /* Resplandor exterior sutil */
}

.chapter-premium-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 12s ease;
  filter: brightness(0.85);
}
.chapter-premium:hover .chapter-premium-visual img {
  transform: scale(1.1);
  filter: brightness(1);
}

.chapter-premium-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 30%, var(--bg-dark) 100%);
  pointer-events: none;
}

.chapter-premium-content {
  width: 55%;
  margin-left: -5%;
  position: relative;
  z-index: 2;
  background: rgba(18, 7, 28, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-left: 3px solid var(--gold-primary);
  border-radius: 8px;
  padding: 4rem;
  box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}

.chapter-premium.reverse {
  flex-direction: row-reverse;
}
.chapter-premium.reverse .chapter-premium-visual::after {
  background: linear-gradient(to left, transparent 30%, var(--bg-dark) 100%);
}
.chapter-premium.reverse .chapter-premium-content {
  margin-left: 0;
  margin-right: -5%;
  border-left: 1px solid rgba(212, 175, 55, 0.15);
  border-right: 3px solid var(--gold-primary);
}

/* --- 3. LÍNEA DE TIEMPO PREMIUM (Reliquias Flotantes) --- */
.timeline-premium {
  position: relative;
  max-width: 1100px;
  margin: 5rem auto;
}

.timeline-premium::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--gold-primary), var(--crimson-fire), transparent);
  transform: translateX(-50%);
}

.timeline-premium-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8rem;
  width: 100%;
  position: relative;
}

.timeline-premium-content {
  width: 42%;
  background: rgba(17, 7, 28, 0.6);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 20px;
  padding: 3rem;
  position: relative;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
  transition: transform 0.4s ease;
}

.timeline-premium-item:hover .timeline-premium-content {
  transform: translateY(-5px);
  border-color: rgba(212, 175, 55, 0.5);
}

.timeline-premium-visual {
  width: 42%;
  position: relative;
  perspective: 1200px;
  display: flex;
  justify-content: center;
}

.relic-frame {
  width: 85%;
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 8px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  box-shadow: 
    0 20px 50px rgba(0,0,0,0.8), 
    0 0 40px rgba(212,175,55,0.15);
  animation: floatRelic 7s ease-in-out infinite;
  position: relative;
}

.relic-frame::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px dashed rgba(212, 175, 55, 0.4);
  animation: spinWheel 20s linear infinite;
}

.relic-frame img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  filter: sepia(0.5) brightness(0.7) contrast(1.2);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-premium-item:hover .relic-frame img {
  filter: sepia(0) brightness(1.1) contrast(1.1);
}

.timeline-premium-marker {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: var(--bg-dark);
  border: 2px solid var(--gold-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 0 25px var(--gold-glow);
  z-index: 2;
  transition: transform 0.4s ease;
}

.timeline-premium-item:hover .timeline-premium-marker {
  transform: translate(-50%, -50%) scale(1.1);
}

.timeline-premium-item:nth-child(even) {
  flex-direction: row-reverse;
}

@keyframes floatRelic {
  0%, 100% { transform: translateY(0) rotateX(8deg) rotateY(-8deg); }
  50% { transform: translateY(-20px) rotateX(-5deg) rotateY(5deg); }
}

/* --- RESPONSIVE PREMIUM --- */
@media (max-width: 1024px) {
  .hero-premium-content {
    width: 55%;
  }
  .hero-premium-visual {
    width: 45%;
  }
}

@media (max-width: 768px) {
  .hero-premium {
    flex-direction: column-reverse;
    justify-content: center;
    padding-top: 6rem;
    gap: 2rem;
  }
  .hero-premium-content {
    width: 100%;
    margin-top: 0;
    padding: 2rem 1.5rem;
  }
  .hero-premium-visual {
    width: 100%;
    animation: none;
  }
  .mystic-frame {
    max-width: 320px;
  }
  
  .chapter-premium, .chapter-premium.reverse {
    flex-direction: column;
    margin: 4rem auto;
  }
  .chapter-premium-visual {
    width: 100%;
    height: auto;
    background: none;
    box-shadow: none;
  }
  .chapter-premium-visual::after, .chapter-premium.reverse .chapter-premium-visual::after {
    display: none;
  }
  .chapter-premium-content, .chapter-premium.reverse .chapter-premium-content {
    width: 95%;
    margin: -10% auto 0;
    border-left: 1px solid rgba(212, 175, 55, 0.2);
    border-right: 1px solid rgba(212, 175, 55, 0.2);
    border-top: 3px solid var(--gold-primary);
    padding: 2rem 1.5rem;
  }
  
  .timeline-premium::before {
    left: 35px;
  }
  .timeline-premium-item, .timeline-premium-item:nth-child(even) {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 80px;
    margin-bottom: 5rem;
  }
  .timeline-premium-marker {
    left: 35px;
    top: 0;
    transform: translateX(-50%);
  }
  .timeline-premium-item:hover .timeline-premium-marker {
    transform: translateX(-50%) scale(1.1);
  }
  .timeline-premium-content, .timeline-premium-visual {
    width: 100%;
  }
  .timeline-premium-visual {
    margin-top: 2.5rem;
    max-width: 280px;
    align-self: center;
  }
  .timeline-premium-content {
    padding: 1.5rem;
  }
}



/* ═══════════════════════════════════════════════════════════════════ */
/* 🖼️ HERO SECTIONS CON IMÁGENES REALES DE FONDO                     */
/* ═══════════════════════════════════════════════════════════════════ */

/* Hero con imagen de fondo base */
.hero-section.hero-with-bg {
  position: relative;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  filter: brightness(0.3) saturate(1.3);
  transition: transform 8s ease;
}

.hero-section.hero-with-bg:hover .hero-bg-image {
  transform: scale(1.05);
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(7, 3, 12, 0.5) 0%,
    rgba(7, 3, 12, 0.3) 30%,
    rgba(7, 3, 12, 0.5) 60%,
    rgba(7, 3, 12, 0.85) 100%
  );
}

.hero-section.hero-with-bg > *:not(.hero-bg-image):not(.hero-bg-overlay):not(.grimorio-flames):not(.cronicas-parchment-bg):not(.oraculo-nebula) {
  position: relative;
  z-index: 2;
}


/* ═══════════════════════════════════════════════════════════════════ */
/* 🎬 VIDEO SHOWCASE SECTION                                         */
/* ═══════════════════════════════════════════════════════════════════ */
.video-showcase {
  position: relative;
  max-width: 800px;
  margin: 3rem auto;
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid var(--gold-primary);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(212, 175, 55, 0.15),
    0 0 80px rgba(157, 78, 221, 0.1);
}

.video-showcase video {
  width: 100%;
  display: block;
  background: #000;
}

.video-showcase-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(7, 3, 12, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--gold-primary);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.video-showcase-label .live-dot {
  width: 8px;
  height: 8px;
  background: #ff2a6d;
  border-radius: 50%;
  animation: pulseGreen 1.5s infinite;
  box-shadow: 0 0 8px #ff2a6d;
}


/* ═══════════════════════════════════════════════════════════════════ */
/* 🖼️ GALERÍA DE RITUALES REALES                                     */
/* ═══════════════════════════════════════════════════════════════════ */
.ritual-gallery {
  max-width: 1050px;
  margin: 0 auto;
}

.ritual-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 1rem;
}

.ritual-gallery-grid .gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.2);
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ritual-gallery-grid .gallery-item:nth-child(1) {
  grid-row: span 2;
}

.ritual-gallery-grid .gallery-item:nth-child(4) {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
  filter: brightness(0.85) saturate(1.1);
}

.gallery-item:hover img {
  transform: scale(1.1);
  filter: brightness(1) saturate(1.3);
}

.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1.2rem 1rem;
  background: linear-gradient(0deg, rgba(7, 3, 12, 0.9) 0%, transparent 100%);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover .gallery-item-overlay {
  transform: translateY(0);
}

.gallery-item-overlay h4 {
  color: var(--gold-primary);
  font-size: 0.95rem;
  font-family: var(--font-heading);
  margin-bottom: 0.3rem;
}

.gallery-item-overlay p {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

/* Gallery item decorative corner */
.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  border: 1px solid transparent;
  z-index: 1;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  pointer-events: none;
}

.gallery-item:hover::before {
  border-color: var(--gold-primary);
  box-shadow: inset 0 0 30px rgba(212, 175, 55, 0.1);
}


/* ═══════════════════════════════════════════════════════════════════ */
/* 🖼️ CHAPTER IMAGE (Imagen integrada en capítulos de servicios)     */
/* ═══════════════════════════════════════════════════════════════════ */
.chapter-image {
  width: 100%;
  max-width: 320px;
  min-width: 200px;
  aspect-ratio: 4/5;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.25);
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.1);
}

.chapter-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  filter: brightness(0.9) saturate(1.15);
}

.chapter-image:hover img {
  transform: scale(1.08);
}

.chapter-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(0deg, rgba(7, 3, 12, 0.6) 0%, transparent 100%);
  pointer-events: none;
}

/* Parchment chapter with image - flex layout */
.parchment-chapter.chapter-with-image {
  display: flex;
  gap: 2rem;
  align-items: stretch;
}

.parchment-chapter.chapter-with-image .chapter-content {
  flex: 1;
}

/* Alternate layout: image on right */
.parchment-chapter.chapter-with-image:nth-child(even) {
  flex-direction: row-reverse;
}


/* ═══════════════════════════════════════════════════════════════════ */
/* ✨ IMAGE LIGHTBOX FULL SCREEN                                      */
/* ═══════════════════════════════════════════════════════════════════ */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 3, 12, 0.95);
  backdrop-filter: blur(20px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 2rem;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 16px;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 0 60px rgba(212, 175, 55, 0.3);
  transform: scale(0.9);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-overlay.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: 2px solid var(--gold-primary);
  color: var(--gold-primary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  background: var(--gold-primary);
  color: #000;
}


/* ═══════════════════════════════════════════════════════════════════ */
/* 📱 RESPONSIVE PARA NUEVAS SECCIONES DE IMÁGENES Y VIDEO          */
/* ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .ritual-gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
    gap: 0.6rem;
  }

  .ritual-gallery-grid .gallery-item:nth-child(1) {
    grid-row: span 1;
  }

  .ritual-gallery-grid .gallery-item:nth-child(4) {
    grid-column: span 1;
  }

  .gallery-item-overlay {
    transform: translateY(0);
    padding: 0.8rem;
  }

  .gallery-item-overlay h4 {
    font-size: 0.8rem;
  }

  .gallery-item-overlay p {
    display: none;
  }

  .parchment-chapter.chapter-with-image,
  .parchment-chapter.chapter-with-image:nth-child(even) {
    flex-direction: column;
  }

  .chapter-image {
    max-width: 100%;
    min-width: unset;
    aspect-ratio: 16/9;
  }

  .video-showcase {
    margin: 2rem 1rem;
    border-radius: 16px;
  }

  .hero-bg-image {
    filter: brightness(0.25) saturate(1.2);
  }

  .lightbox-overlay img {
    max-width: 95%;
  }

  .lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .ritual-gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }
}
