:root {
  --bg-main: radial-gradient(circle at top, #0d1b1e, #050a0c);
  --text-main: #e6f2f1;
  --accent: #64ffda;
}

body {
  padding-top: 110px !important;   /* Ajusta este valor: prueba 100px, 120px o 140px según la altura real de tu navbar */
  /* Si tu navbar tiene height: 80px + sombras/padding, 110px suele ser perfecto */
  background: var(--bg-main);
  transition: opacity 0.4s ease;
  color: var(--text-main);
}

body.ritual-mode {
  filter: brightness(1.05) contrast(1.05);
}

/* MODO RITUAL */
body.ritual {
  --bg-main: radial-gradient(circle at center, #020405, #000000);
  --text-main: #cdeeee;
  --accent: #9fffff;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url('imgs/espacio.jpeg') center/cover no-repeat;
  opacity: 0.6; /* para que no tape el texto */
  z-index: -2;
}

body.ritual-active::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center,
    rgba(100, 255, 219, 0.39) 0%,
    rgba(0,0,0,0.95) 70%);
  z-index: 999;
  pointer-events: none;
  animation: ritualFlash 1.4s ease forwards;
}

body.fade-out {
  opacity: 0;
  transition: opacity 0.4s ease;
}

@keyframes ritualFlash {
  0%   { opacity: 0; }
  20%  { opacity: 0.9; }
  100% { opacity: 0; }
}

/* BOTÓN DE SONIDO */
.sound-toggle {
  position: fixed;
  bottom: 790px;
  right: 880px;
  z-index: 9999;

  width: 48px;
  height: 49px;
  border-radius: 50%;

  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(10, 10, 20, 0.6);
  backdrop-filter: blur(10px);

  color: white;
  font-size: 20px;
  cursor: pointer;

  transition: all 0.3s ease;
}

.sound-toggle:hover {
  transform: scale(1.1);
  background: rgba(20, 20, 40, 0.8);
}


/* ===============================
   RESET & BASE
================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at top, #0d1b1e 0%, #050a0c 100%);
  color: #e6f2f1;
  overflow-x: hidden;
  overflow-y: auto;
  line-height: 1.6;
  padding-top: 90px;
}

section {
  scroll-margin-top: 110px;
}

.ritual-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 3.4rem;
  min-width: max-content;
  box-sizing: border-box;
  white-space: nowrap;
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  overflow: visible;
  letter-spacing: 0.16em;
  border: 1px solid var(--accent);
  background: rgba(0,0,0,0.4);
  color: var(--accent);
  cursor: pointer;
  z-index: 8500;
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
}

.ritual-btn:hover {
  box-shadow: 0 0 20px var(--accent);
  transform: scale(1.1);
}


/* ================= RITUAL MODE ================= */

body.ritual-active {
    animation: ritualBreath 6s ease-in-out infinite;
  background-color: #050a0c;
}
@keyframes ritualBreath {
  0%, 100% {
    filter: brightness(0.85) saturate(1.05);
  }
  35% {
    filter: brightness(1) saturate(1.2);
  }
}

/* Oscurecer sutilmente todo */
body.ritual-active .section,
body.ritual-active .hero,
body.ritual-active .parallax-section {
  filter: brightness(0.85) saturate(1.05);
  transition: filter 1.2s ease;
}

/* Acentos brillan más */
body.ritual-active .section-title,
body.ritual-active .logo-text {
  text-shadow:
    0 0 15px rgba(100,255,218,0.4),
    0 0 30px rgba(100,255,218,0.25);
}

/* Portal / halo */
body.ritual-active::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at center,
      rgba(100,255,218,0.12) 0%,
      rgba(0,0,0,0.85) 65%);
  pointer-events: none;
  z-index: 1;
  animation: ritualFade 1.4s ease forwards;
}

@keyframes ritualFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.ritual-btn {
    display: inline;
    align-items: stretch;
    justify-content: center;
    box-sizing: border-box;
    white-space: nowrap;
  padding: 0rem 5.5rem;
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  letter-spacing: 0.16em;
  background: transparent;
  color: #64ffda;
  border: 1px solid rgba(100,255,218,0.4);
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  transition: all 0.4s ease;
}

.ritual-btn:hover {
  box-shadow:
    0 0 15px rgba(100,255,218,0.4),
    0 0 35px rgba(100,255,218,0.25);
}

/* Estado activado */
.ritual-btn.activated {
    animation: ritualPulse 1.2s ease;
  opacity: 0.6;
  pointer-events: none;
  letter-spacing: 0.3em;
}
@keyframes ritualPulse {
  0% {
    box-shadow: 0 0 0 rgba(100,255,218,0);
  }
  50% {
    box-shadow:
      0 0 25px rgba(100,255,218,0.6),
      0 0 60px rgba(100,255,218,0.35);
  }
  100% {
    box-shadow: 0 0 15px rgba(100,255,218,0.25);
  }
}

/* ===============================
   NAVBAR original no borrar
================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2000;
  backdrop-filter: blur(14px) saturate(180%);
  background: rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.2rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-img {
  height: 42px;
}

.logo-text {
  background: linear-gradient(45deg, #e6f2f1, #64ffda);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
}

.nav-links a {
  font-family: 'Cinzel', serif;
  text-decoration: none;
  color: rgba(3, 68, 143, 0.9);
  opacity: 0.85;
}

.nav-links a:hover,
.nav-links a.active {
  color: #d2fac2;
  opacity: 1;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.6rem;
}

/* SPARKLES */
        .sparkle-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            overflow: hidden;
        }
        
        .sparkle {
            position: absolute;
            background: radial-gradient(circle, #64ffda, transparent 70%);
            border-radius: 50%;
            opacity: 0;
            animation: sparkle-animation 4s infinite ease-out;
            box-shadow: 0 0 8px #64ffda, 0 0 16px rgba(100, 255, 218, 0.7);
        }
        
        @keyframes sparkle-animation {
            0% { opacity: 0; transform: scale(0.2) translateY(0); }
            10% { opacity: 1; }
            90% { opacity: 0.8; }
            100% { opacity: 0; transform: scale(1.5) translateY(-15px); }
        }
        
        .sparkle:nth-child(1) { left: 15%; top: 40%; animation-delay: 0s; width: 3px; height: 3px; }
        .sparkle:nth-child(2) { left: 35%; top: 60%; animation-delay: 0.8s; width: 2px; height: 2px; }
        .sparkle:nth-child(3) { left: 55%; top: 30%; animation-delay: 1.5s; width: 4px; height: 4px; }
        .sparkle:nth-child(4) { left: 75%; top: 50%; animation-delay: 0.3s; width: 2.5px; height: 2.5px; }
        .sparkle:nth-child(5) { left: 90%; top: 70%; animation-delay: 2.1s; width: 3.5px; height: 3.5px; }
        .sparkle:nth-child(6) { left: 25%; top: 20%; animation-delay: 1.2s; width: 2px; height: 2px; }
        .sparkle:nth-child(7) { left: 45%; top: 80%; animation-delay: 0.5s; width: 3px; height: 3px; }
        .sparkle:nth-child(8) { left: 65%; top: 45%; animation-delay: 1.8s; width: 2.5px; height: 2.5px; }
        .sparkle:nth-child(9) { left: 85%; top: 15%; animation-delay: 0.9s; width: 4px; height: 4px; }
        .sparkle:nth-child(10) { left: 10%; top: 65%; animation-delay: 2.5s; width: 3px; height: 3px; }

/* ===============================
   HERO
================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url("../imgs/hero-bg.jpg") center/cover no-repeat;
  overflow: hidden;
  
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.45),
    rgba(0,0,0,0.85)
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
}

/* IMAGEN DEL TÍTULO */
.hero-title-img {
  max-width: 820px;
  width: 200%;
  height: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 12px 35px rgba(0,0,0,0.6));
}

.hero-content h1,
.hero-content h2 {
  opacity: 0;
  transform: translateY(15px);
  animation: heroTextFade 1.2s ease-out forwards;
}

/* TEXTO */
.hero-content h1 {
  font-family: "Cinzel", serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin: 0;
}

.hero-content h1 {
  animation-delay: 1.2s;
}


.hero-content h2 {
  font-size: 1.2rem;
  max-width: 640px;
  opacity: 0.9;
}

.hero-content h2 {
  animation-delay: 1.6s;
}

@keyframes heroTextFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.character-info h3 {
  background: linear-gradient(45deg, #e6f2f1, #64ffda);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

/* ===============================
   PARALLAX / SINOPSIS
================================ */
.parallax-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.parallax-content {
  max-width: 920px;
  padding: 4rem 2.5rem;
  background: rgba(13, 27, 30, 0.82);
  border-radius: 30px;
  text-align: center;
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.15);
  z-index: 2;
}

.parallax-content h2 {
  font-family: 'Cinzel', serif;
  font-size: 3.6rem;
}

.parallax-content p {
  font-size: 1.4rem;
  margin-top: 1rem;
}

/* ===============================
   SECTIONS
================================ */
.section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 7rem 5%;
  position: relative;
  z-index: 3;
}

.section.dark {
  background: rgba(255,255,255,0.045);
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Títulos de sección siempre arriba y centrados */
.section-title {
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 3.6rem;
  margin-bottom: 4rem;
  background: linear-gradient(45deg, #e6f2f1, #64ffda);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 15px rgba(100, 255, 218, 0.3);
}

/* ===============================
   GRID / GLASS CARDS
================================ */
/* Grid de tarjetas: tamaño controlado y siempre centrado */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 360px));
  gap: 40px;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto;
}

.glass-card {
  padding: 2.4rem;
  border-radius: 24px;
  text-align: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.12),
    rgba(255,255,255,0.04)
  );
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(14px);
  transition: 0.45s ease;
}

.glass-card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 15px 35px rgba(0,0,0,0.45),
    0 0 25px rgba(100,255,218,0.25);
}

.glass-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  color: #64ffda;
  margin-bottom: 1rem;
}

.glass-card p {
  font-size: 1.1rem;
}

/* Para tarjetas sin imagen (como en libro.html) dar más espacio vertical */
.glass-card:not(:has(.guardian-img)) {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.glass-card:not(:has(.guardian-img)) h3 {
  font-size: 2rem;
  margin-bottom: 1.2rem;
}

/* ===============================
   GUARDIANES / CHARACTERS
================================ */
.characters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.character-card {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  transition: 0.45s ease;
  cursor: pointer;
}

.character-card:hover {
  transform: translateY(-14px) scale(1.03);
  box-shadow:
    0 18px 45px rgba(0,0,0,0.55),
    0 0 30px rgba(100,255,218,0.35);
}

.character-img-container {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top, rgba(100,255,218,0.18), transparent 60%),
    linear-gradient(45deg, #0d1b1e, #1a3a3d, #0d1b1e);
}

.character-img-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13,27,30,0.15),
    rgba(13,27,30,0.85)
  );
  z-index: 1;
}

.character-img-container::after {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: radial-gradient(circle, rgba(100,255,218,0.15), transparent 70%);
  animation: aura 18s linear infinite;
  z-index: 0;
}

@keyframes aura {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.character-img {
  height: 90%;
  max-width: 95%;
  object-fit: contain;
  z-index: 2;
  transition: transform 0.6s ease;
  border-radius: 16px;
}

.character-card:hover .character-img {
  transform: scale(1.1);
}

.character-info {
  padding: 2rem;
  text-align: center;
  background: rgba(13,27,30,0.85);
  backdrop-filter: blur(10px);
}

.character-info h3 {
  font-family: 'Cinzel', serif;
  font-size: 2.1rem;
  background: linear-gradient(45deg, #e6f2f1, #64ffda);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.character-info p {
  font-size: 1.15rem;
  margin-top: 0.8rem;
}

/* ===============================
   FOOTER
================================ */
.footer {
  text-align: center;
  padding: 2.5rem;
  background: rgba(0,0,0,0.35);
}

/* ===============================
   SCROLL TOP
================================ */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(13,27,30,0.9);
  color: #64ffda;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.4s;
  z-index: 3000;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(13,27,30,0.95);
    flex-direction: column;
    padding: 2rem 0;
  }

  .nav-links.open {
    display: flex;
  }

  .hero-content h1 {
    font-size: 3.4rem;
  }

  .character-img-container {
    height: 320px;
  }
}

/* ===============================
   GUARDIANES - IMÁGENES
================================ */

.guardian-card {
  text-align: center;
}

.guardian-img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  margin-bottom: 1.2rem;
  filter: drop-shadow(0 10px 25px rgba(0,0,0,0.5));
  transition: transform 0.4s ease;
}

.guardian-card:hover .guardian-img {
  transform: scale(1.05);
}
/* ===============================
   HERO – ANIMACIONES
================================ */

.hero-title-img {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  animation: heroImageFade 1.6s ease-out forwards,
             heroFloat 6s ease-in-out infinite;
  animation-delay: 0.3s, 2s;
}

/* Fade + entrada */
@keyframes heroImageFade {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Flotación suave */
@keyframes heroFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
/* ===============================
   SECCIÓN LIBRO
================================ */

.book-section {
  background: radial-gradient(circle at top, #0f2a2e, #050b0de7);
}

.book-container {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.book-cover img {
  width: 80%;
  border-radius: 10px;
  max-width: 680px;
  display: block;
  margin: auto;
  filter: drop-shadow(0 20px 50px rgba(0,0,0,0.6));
  transition: transform 0.6s ease;
  box-shadow: 0 0 0px rgba(100, 255, 218, 0.6);
  transition: all 0.4s ease;
}

.boxset-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 60px rgba(100, 255, 218, 0.9);
}

.book-info h2 {
  font-family: "Cinzel", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.book-tagline {
  font-style: italic;
  opacity: 0.85;
  margin-bottom: 1.5rem;
}

.book-description {
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.book-cta {
  display: inline-block;
  padding: 0.9rem 2.4rem;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 500;
  color: #0d1b1ef5;
  background: linear-gradient(135deg, #64ffda, #a7e8ff);
  box-shadow: 0 0 0 rgba(100,255,218,0.6);
  transition: all 0.4s ease;
}

.book-cta:hover {
  box-shadow: 0 0 25px rgba(100,255,218,0.6);
  transform: translateY(-2px);
}

/* ===============================
   HERO VIDEO
================================ */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 600px;
}

/* SECCIONES */
.section {
    padding: 80px 20px;
    display: flex;
    justify-content: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    max-width: 1000px;
    width: 100%;
}



/* TEXTOS */
h1, h2 {
    margin-bottom: 15px;
}

.tagline {
    font-style: italic;
    margin-bottom: 20px;
}

.fragment {
    font-style: italic;
    line-height: 1.7;
}

/* BOTONES */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(100, 180, 255, 0.8);
    border-radius: 30px;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.btn:hover {
    background: rgba(140, 210, 255, 1);
    box-shadow: 0 0 15px rgba(120, 200, 255, 0.8);
}

/* CTA */
.cta {
    padding-bottom: 120px;
}

/* ===============================
   ENTRADA EN VIEWPORT
================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===============================
   GLASS CARD – AURA
================================ */
/* TARJETAS */

/* Evita que el texto dentro se vea como enlace por defecto */
.link-card h3,
.link-card p {
  margin: 0;
  color: inherit;
}

/* Opcional: cursor pointer en toda la tarjeta y en hijos */
.link-card,
.link-card * {
  cursor: pointer;
}

.link-card {
  display: block;                    /* importante para que <a> se comporte como bloque */
  text-decoration: none;             /* quita subrayado por defecto */
  color: inherit;                    /* mantiene color del texto original */
  transition: all 0.3s ease;         /* suave como las otras tarjetas */
  cursor: pointer;
}

/* Efecto hover igual o mejorado que las otras glass-card */
.link-card:hover {
  transform: translateY(-8px);       /* mismo lift que otras tarjetas o más pronunciado */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5),
              0 0 30px rgba(140, 100, 255, 0.4); /* glow morado sutil */
  background: rgba(60, 40, 100, 0.65); /* ligero cambio para feedback */
}

.card {
    background: rgba(30, 80, 140, 0.75);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: 30px;
    text-align: center;
    box-shadow:
        0 0 20px rgba(100, 180, 255, 0.3),
        0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(160, 210, 255, 0.4);
}

.glass-card {
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--x, 50%) var(--y, 50%),
    rgba(100,255,218,0.25),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.glass-card:hover::before {
  opacity: 1;
}

.glass-card:hover {
  transform: translateY(-6px) scale(1.01);
}

.book-cta {
  position: relative;
}

.book-cta::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 40px;
  background: radial-gradient(circle, rgba(100,255,218,0.4), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.book-cta:hover::after {
  opacity: 1;
}

/* ===============================
   TRANSICIÓN PORTAL
================================ */

.portal {
  position: relative;
  opacity: 0;
  filter: blur(8px);
  transform: scale(0.97);
  transition: all 1.2s ease;
}

.portal.visible {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

.portal::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    circle,
    rgba(100,255,218,0.15),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}

.portal.visible::before {
  opacity: 1;
}

/* ===============================
   AURA DEL LIBRO
================================ */
.book-cover {
  position: relative;
}

.book-cover::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(
    circle,
    rgba(100,255,218,0.25),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.6s ease;
}

.book-cover:hover::before {
  opacity: 1;
}

/* ===============================
   CIERRE DE TOMO
================================ */

.tome-close {
  position: fixed;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(100,255,218,0.15),
    #050a0c 70%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.5s ease;
  z-index: 9999;
}

.tome-close.active {
  opacity: 1;
}

.ritual-close-btn {
  position: fixed;
  top: 100px;
  right: 20px;
  padding: 0.7rem 2rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(0,0,0,0.5);
  color: #e6f2f1;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.12em;
  cursor: pointer;
  z-index: 3001;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;
}

.ritual-close-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

.ritual-close-btn:hover {
  box-shadow: 0 0 20px rgba(255,255,255,0.25);
  transform: scale(1.05);
}
/* STARFIELD BACKGROUND */
.starfield {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    top: 0;
    left: 0;
    background: radial-gradient(circle at center, #0b1a35, #020612 80%);
}

.starfield span {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(180, 220, 255, 0.8);
    border-radius: 50%;
    animation: starMove linear infinite;
}

.starfield span:nth-child(1) { left: 10%; top: 20%; animation-duration: 12s; }
.starfield span:nth-child(2) { left: 30%; top: 60%; animation-duration: 18s; }
.starfield span:nth-child(3) { left: 50%; top: 40%; animation-duration: 15s; }
.starfield span:nth-child(4) { left: 70%; top: 30%; animation-duration: 20s; }
.starfield span:nth-child(5) { left: 90%; top: 70%; animation-duration: 14s; }
.starfield span:nth-child(6) { left: 15%; top: 80%; animation-duration: 17s; }
.starfield span:nth-child(7) { left: 40%; top: 10%; animation-duration: 13s; }
.starfield span:nth-child(8) { left: 60%; top: 75%; animation-duration: 19s; }
.starfield span:nth-child(9) { left: 80%; top: 50%; animation-duration: 16s; }
.starfield span:nth-child(10){ left: 25%; top: 35%; animation-duration: 21s; }

@keyframes starMove {
    from { transform: translateY(0); opacity: 0.4; }
    to { transform: translateY(-40px); opacity: 1; }
}
/* BOTÓN VOLVER ARRIBA */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: rgba(100, 180, 255, 0.85);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    text-align: center;
    line-height: 48px;
    font-size: 20px;
    text-decoration: none;
    box-shadow: 0 0 15px rgba(120, 200, 255, 0.7);
    z-index: 8000;
    transition: 0.3s;
}

.back-to-top:hover {
    background: rgba(140, 210, 255, 1);
    transform: translateY(-3px);
}
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.2);
}
/* ===================================
   CENTRADO DEFINITIVO DE TÍTULOS Y GRIDS
   =================================== */

/* Todas las secciones centradas con padding simétrico */
.section,
.section.dark,
.parallax-section {
  padding: 8rem 5% 6rem;
  text-align: center !important;
}

/* Títulos de sección (aplica a ambos estilos: con clase y sin clase) */
.section-title,
.parallax-content h2 {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 4rem auto !important;
  text-align: center !important;
  font-family: 'Cinzel', serif !important;
  font-size: 3.6rem !important;
  line-height: 1.2;
  background: linear-gradient(45deg, #e6f2f1, #64ffda);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  text-shadow: 0 0 15px rgba(100, 255, 218, 0.3);
}

/* Grid siempre centrado (incluso con 2 tarjetas como en "El Mundo de Puroria") */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 3rem;
  justify-content: center !important;
  align-content: center;
  max-width: 1400px;
  margin: 0 auto !important;
  padding: 0 5%;
}

/* Tarjetas con texto centrado */
.glass-card,
.glass-card h3,
.glass-card p {
  text-align: center !important;
}

/* Contenido parallax centrado (sinopsis en ambas páginas) */
.parallax-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.parallax-content p {
  font-size: 1.3rem;
  line-height: 1.8;
}
/* ===================================
   CENTRADO ABSOLUTO DE TÍTULOS Y GRIDS EN SECCIONES DARK
   =================================== */

.section.dark {
  display: flex;
  flex-direction: column;
  align-items: center;        /* Centra horizontalmente todo el contenido */
  text-align: center !important;
  padding: 120px 5% 80px;     /* Espacio arriba y abajo para que el título quede bien separado */
}

.section-title {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 60px auto !important;   /* Margen inferior grande para separar del grid */
  text-align: center !important;
  font-family: 'Cinzel', serif !important;
  font-size: 3.8rem !important;
  line-height: 1.2;
  background: linear-gradient(45deg, #e6f2f1, #64ffda);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  text-shadow: 0 0 20px rgba(100, 255, 218, 0.4);
}

/* Cambiar grid a flex para centrado perfecto incluso con pocas tarjetas */
.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center !important;   /* Fuerza centrado horizontal */
  align-items: stretch;
  gap: 50px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Tarjetas individuales centradas */
.glass-card {
  flex: 1 1 300px;              /* Tamaño mínimo y crecimiento controlado */
  max-width: 360px;
  text-align: center !important;
}

/* Botón flotante Top */
#btnTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 8000;
  background: linear-gradient(135deg, rgba(100,200,255,0.8), rgba(180,220,255,0.6));
  color: white;
  border: none;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  font-size: 22px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 12px rgba(100, 200, 255, 0.6);
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

#btnTop:hover {
  background: rgba(80, 160, 255, 0.9);
  transform: translateY(-3px);
  box-shadow: 0 0 18px rgba(120, 220, 255, 0.9);
}

/* visible cuando se hace scroll */
#btnTop.show {
  opacity: 1;
  pointer-events: auto;
}

/* ===================================
   RESPONSIVIDAD MÓVIL (max-width: 768px)
   =================================== */

@media (max-width: 768px) {
  /* Padding general más compacto */
  body {
    padding-top: 70px; /* Reduce un poco el espacio superior por la navbar fija */
  }

  .section,
  .section.dark,
  .parallax-section {
    padding: 80px 5% 60px !important;
  }

  /* Títulos más pequeños pero siguen centrados y con el mismo estilo */
  .section-title,
  .parallax-content h2 {
    font-size: 2.8rem !important;
    margin-bottom: 40px !important;
  }

  /* Grid → columna única en móvil */
  .grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 40px !important;
  }

  .glass-card {
    width: 100%;
    max-width: 380px;
    flex: none !important;
  }

  /* Hero y video de fondo */
  .hero-content {
    padding: 0 5%;
  }

  .hero-video {
    object-fit: cover;
    height: 100vh;
  }

  /* Navbar móvil */
  .nav-container {
    padding: 0 5%;
  }

  .nav-links {
    display: none; /* oculto por defecto */
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(5, 10, 12, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    text-align: center;
  }

  .nav-links.active { /* se activa con JS */
    display: flex;
  }

  .nav-links a {
    padding: 15px;
    font-size: 1.4rem;
  }

  .menu-toggle {
    display: block !important; /* siempre visible en móvil */
  }

  /* Botón Ritual más pequeño y reposition */
  .ritual-btn {
    width: 50px;
    height: 50px;
    padding: 0;
    font-size: 0.9rem;
    top: 15px;
    right: 15px;
  }

  /* Botón volver arriba */
  .scroll-top-btn,
  #btnTop {
    position: fixed;
  /*  width: 50px; */
  /*  height: 50px; */
    font-size: 20px;
    bottom: 20px;
    right: 20px;
    z-index: 8000;
  }

  /* Parallax content más compacto */
  .parallax-content {
    padding: 0 5%;
  }

  .parallax-content p {
    font-size: 1.2rem;
  }

  /* Libro section en móvil */
  .book-container {
    flex-direction: column;
    text-align: center;
  }

  .book-cover {
    margin-bottom: 30px;
  }
}

/* Extra pequeño (iPhone pequeño) */
@media (max-width: 480px) {
  .section-title {
    font-size: 2.4rem !important;
  }
  .glass-card {
    padding: 1.5rem;
  }
}

  /* La esfera visual */
.plane {
  pointer-events: none; /* El wrapper recibe el click */
  width: 100px;         /* Tamaño visual de la esfera */
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.8), rgba(100,255,218,0.4));
  box-shadow: 0 0 30px rgba(100, 255, 218, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  text-shadow: 0 0 10px black;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Hover: SOLO zoom + glow intenso */
.plane-wrapper:hover .plane {
  transform: scale(1.5);
  box-shadow: 0 0 60px rgba(100, 255, 218, 1);
  z-index: 20;
}

    .planes-hero {
      position: relative;
      min-height: 100vh;
      background-image: url("/imgs/galaxia.jpeg");
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      background-attachment: fixed;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding-top: 120px;
    }

    .planes-hero::before {
      content: "";
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at center, transparent 90%, #11074d46 100%);
      z-index: 0;
    }

    .planes-content {
      position: relative;
      z-index: 1;
      background: rgba(5, 15, 40, 0.075);
      backdrop-filter: blur(6px);
      padding: 60px 40px;
      border-radius: 18px;
      max-width: 900px;
      margin: 40px;
      box-shadow: 0 0 40px rgba(100, 180, 255, 0.15);
    }

    .planes-hero h1 {
      font-family: 'Cinzel', serif;
      font-size: 3rem;
      color: #cce6ff;
      margin-bottom: 20px;
    }

    .planes-intro {
      font-size: 1.1rem;
      color: #e6f0ff;
      opacity: 0.9;
      margin-bottom: 40px;
    }

   /* PLANETA CENTRAL – VERSIÓN FINAL CENTRADA + ROTACIÓN OPUESTA */
.cosmic-system {
  position: relative;
  width: 700px;
  height: 700px;
  margin: 0 auto;
}

.planet {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;                /* ← AJUSTA este valor al tamaño exacto de tu imagen del planeta */
  height: 140px;               /* debe ser igual a width para círculo perfecto */
  transform: translate(-50%, -50%);
  transform-origin: center center;
  animation: rotateOpposite 45s linear infinite;  /* 45s = velocidad suave, cambia a 30s si quieres más rápido */
  z-index: 10;
  will-change: transform;
  backface-visibility: hidden;
}

.planet img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 25px rgba(120, 200, 255, 0.6));
}

/* Animación anti-horaria – el translate se mantiene en todos los frames para no perder centrado */
@keyframes rotateOpposite {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

.planeta-centro img {
    width: 100px;   /* antes 180px */
    height: auto;
    filter: drop-shadow(0 0 25px rgba(255,255,255,0.4));
    object-fit: contain;
}

    @keyframes planetPulse {
  0%, 100% {
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.4));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 35px rgba(180,220,255,0.8));
    transform: scale(1.05);
  }
}

    /* Órbita contenedor - este es el que gira */
.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  animation: orbit 80s linear infinite; /* Órbita lenta y suave */
}

.planet img {   
  width: 100%;
  filter: drop-shadow(0 0 25px rgba(120, 200, 255, 0.6));
  height: 100%;
}

/* Keyframes de órbita */
@keyframes orbit {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Wrapper de cada plano (área clickable grande) */
.plane-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180px;     /* Área sensible grande */
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Posicionamiento individual en círculo (usando :nth-child) */
.plane-wrapper:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg) translateX(250px); }   /* Material */
.plane-wrapper:nth-child(2) { transform: translate(-50%, -50%) rotate(90deg) translateX(250px); }  /* Thalassia */
.plane-wrapper:nth-child(3) { transform: translate(-50%, -50%) rotate(180deg) translateX(250px); } /* Onírico */
.plane-wrapper:nth-child(4) { transform: translate(-50%, -50%) rotate(270deg) translateX(250px); } /* Umbraflora */

    @keyframes rotateOrbit {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }
 
   @keyframes planetPulse {
  0%, 100% {
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.4));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 35px rgba(180,220,255,0.8));
    transform: scale(1.05);
  }
}

/* Órbita normal (esto ya lo tienes, no tocar) */
.orbit-container {
  animation: orbit 60s linear infinite; /* o el tiempo que tengas */
}

    /* Hover: SOLO zoom + glow, SIN desplazamiento horizontal */
.plane:hover {
  transform: scale(1.3) !important; /* Zoom más notorio, ajusta 1.2-1.5 según prefieras */
  box-shadow: 0 0 40px rgba(100, 255, 218, 0.9); /* Glow más intenso */
  z-index: 10; /* Para que se vea encima de las demás */
  transition: transform 0.4s ease, box-shadow 0.4s ease; /* Suave */
}

/* Elimina CUALQUIER translate en hover */
.plane:hover {
  transform: scale(1.3) !important; /* Forza solo scale, ignora translates previos */
  /* NO agregues translateX, translateY, etc. */
}

    /* Posiciones orbitales */
    .p1 { top: -50px; left: 50%; transform: translateX(-50%); }
    .p2 { right: -50px; top: 50%; transform: translateY(-50%); }
    .p3 { bottom: -50px; left: 50%; transform: translateX(-50%); }
    .p4 { left: -50px; top: 50%; transform: translateY(-50%); }

    /* Info del plano */
    .plane-info {
      margin-top: 60px;
      font-size: 1rem;
      color: #dbeafe;
      min-height: 100px;
    }

    .plane-info h2 {
      font-family: 'Cinzel', serif;
      margin-bottom: 10px;
      color: #cce6ff;
    }

    .stars {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  opacity: 0.6;
  animation: starFloat linear infinite;
}

@keyframes starFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-200px); }
}

.plane {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(120, 190, 255, 0.25);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: white;
  font-family: 'Cinzel', serif;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.plane-link {
  display: block;
  width: 200px;  /* Área más grande */
  height: 200px;
  position: absolute;
  /* Centra la esfera dentro */
  display: flex;
  align-items: center;
  justify-content: center;
}

.plane {
  /* Tus estilos normales de esfera */
  pointer-events: none; /* La esfera no bloquea el click, el link sí */
}


/* Hover: ligero zoom */
.p1:hover { transform: translate(-50%, -50%) scale(1.08); }
.p2:hover { transform: translate(50%, -50%) scale(1.08); }
.p3:hover { transform: translate(-50%, 50%) scale(1.08); }
.p4:hover { transform: translate(-50%, -50%) scale(1.08); }

/* Efecto portal al hacer clic */
.plane:active {
  transform: scale(1.2);
  box-shadow:
    0 0 30px rgba(120, 200, 255, 0.8),
    0 0 60px rgba(120, 200, 255, 0.4);
}

@keyframes planetPulse {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 10px rgba(120,200,255,0.3));
  }
  50% {
    transform: scale(1.06);
    filter: drop-shadow(0 0 30px rgba(120,200,255,0.7));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 10px rgba(120,200,255,0.3));
  }
}

/* TRANSICIÓN PORTAL */
.portal-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.15), rgba(0,0,0,0.95));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 9999;
}

.portal-overlay.active {
    opacity: 1;
}

/* Destello central */
.portal-flash {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, white, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: portalFlash 0.6s ease forwards;
}

@keyframes portalFlash {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    60% {
        transform: translate(-50%, -50%) scale(6);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(10);
        opacity: 0;
    }
}
/* ============================= */
/* portal exit */
/* ============================= */
.portal-exit {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.2), rgba(0,0,0,0.95));
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease;
  z-index: 9999;
}

.portal-exit.active {
  opacity: 1;
}


/* ============================= */
/* PLANOS INDIVIDUALES */
/* ============================= */

.plane-content img {
  animation: floatOrganic 12s ease-in-out infinite;
}

@keyframes floatOrganic {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(2deg); }
}

.plane-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.plane-content {
    max-width: 700px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.plane-content h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.plane-content p {
    line-height: 1.7;
    font-size: 1.05rem;
    opacity: 0.9;
}

/* BOTÓN REGRESO */
.back-button {
    display: inline-block;
    margin-top: 30px;
    padding: 10px 20px;
    border-radius: 30px;
    background: rgba(255,255,255,0.1);
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.back-button:hover {
    background: rgba(255,255,255,0.25);
}

/* ============================= */
/* FONDOS DE CADA PLANO */
/* ============================= */

.bg-material {
    background: url('../imgs/mundo material.jpg') center/cover no-repeat fixed;
}

.bg-thalassia {
    background: url('../imgs/Thalassia\ 2.jpeg') center/cover no-repeat fixed;
}

.bg-onirico {
    background: url('../imgs/onirico.jpg') center/cover no-repeat fixed;
}

.bg-umbraflora {
    background: url('../imgs/umbraflora 1.jpg') center/cover no-repeat fixed;
}

/* ============================= */
/* ANIMACION DEL PLANO MATERIAL */
/* ============================= */

body.plano-material {
  background: linear-gradient(to top, #0f2027, #203a43, #2c7744);
  animation: breathing 12s infinite ease-in-out;
}

@keyframes breathing {
  0%,100% { background-size: 100% 100%; }
  50% { background-size: 110% 110%; }
}


/* ============================= */
/* ANIMACION DEL PLANO THALASSIA */
/* ============================= */

body.plano-thalassia {
  background: radial-gradient(circle at center, #001f3f, #000814);
}

body.plano-thalassia::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("burbujas.png");
  opacity: 0.15;
  animation: bubbles 20s linear infinite;
}

@keyframes bubbles {
  from { transform: translateY(100%); }
  to { transform: translateY(-100%); }
}

/* ============================= */
/* ANIMACION DEL PLANO ONIRICO */
/* ============================= */

body.plano-onirico {
  background: linear-gradient(135deg, #2c003e, #0f0c29, #24243e);
  animation: dreamShift 18s infinite alternate;
}

@keyframes dreamShift {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(60deg); }
}

/* ============================= */
/* ANIMACION DEL PLANO UMBRAFLORA */
/* ============================= */

body.plano-umbraflora {
  background: radial-gradient(circle at center, #050505, #000000);
}

body.plano-umbraflora::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("/imgs/niebla-negra.jpg");
  opacity: 0.25;
  animation: fog 30s linear infinite;
}

@keyframes fog {
  from { transform: translateX(-10%); }
  to { transform: translateX(10%); }
}

.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
  /* Sin background-image aquí */
}

@keyframes particleMove {
  from { transform: translateY(0); }
  to { transform: translateY(-200px); }
}


.particles .star {
  position: absolute;
  background: radial-gradient(circle, var(--particle-color, #ffffff) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 15px var(--particle-color, #ffffff);
  opacity: 0.9;
  animation: float linear infinite;
}

@keyframes float {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.9;
  }
  90% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(-100px) scale(1);
    opacity: 0;
  }
}

/* Wrapper para área clickable más grande */
.plane-wrapper {
  position: absolute;
  width: 180px;      /* Área mucho más grande que la esfera */
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* La esfera visual se mantiene centrada */
.plane {
  pointer-events: none; /* El div wrapper recibe el click */
  /* Tus estilos originales de esfera siguen aquí */
}

/* Hover: SOLO zoom y glow (SIN desplazamiento horizontal) */
.plane-wrapper:hover .plane {
  transform: scale(1.4) !important;   /* Zoom más notorio */
  box-shadow: 0 0 50px rgba(100, 255, 218, 0.9);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  z-index: 10;
}

/* Posiciones originales de órbita (ajusta según tus clases p1-p4) */
.plane-wrapper.p1 { transform: translate(-50%, -50%) rotate(0deg) translateX(250px) rotate(0deg); }
.plane-wrapper.p2 { transform: translate(-50%, -50%) rotate(90deg) translateX(250px) rotate(-90deg); }
.plane-wrapper.p3 { transform: translate(-50%, -50%) rotate(180deg) translateX(250px) rotate(-180deg); }
.plane-wrapper.p4 { transform: translate(-50%, -50%) rotate(270deg) translateX(250px) rotate(-270deg); }

/* Animación de órbita (aplicada al wrapper para que todo gire junto) */
.orbit {
  animation: orbit 60s linear infinite;
}

/* ================= SUSURROS ================= */

.whisper-section {
  display: flex;
  justify-content: center;
  padding: 60px 20px;
}

.whisper-box {
  max-width: 800px;
  padding: 40px 50px;
  background: rgba(10, 15, 25, 0.55);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  border: 1px solid rgba(120, 170, 255, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.whisper-box p {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  line-height: 1.6;
  color: #9fc4ff; /* color del susurro */
  letter-spacing: 0.05em;
  font-style: italic;
  text-shadow: 0 0 12px rgba(120, 170, 255, 0.4);
}

/* ================= SUSURROS ================= */

.whisper-section {
  display: flex;
  justify-content: center;
  margin: 80px 0;
}

.whisper-box {
  max-width: 800px;
  padding: 40px 50px;
  border-radius: 20px;

  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);

  border: 1px solid rgba(255, 255, 255, 0.08);

  text-align: center;

  animation: whisperBreath 6s ease-in-out infinite;
}

.whisper-box p {
  font-family: "Cinzel", serif;
  font-size: 1.6rem;
  line-height: 1.6;
  letter-spacing: 1px;
  transition: color 1s ease;
}

/* Respiración luminosa */
@keyframes whisperBreath {
  0% {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.15);
  }
  100% {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
  }
}

/* CRISTAL SONORO */
.sound-crystal {
  position: fixed;
  bottom: 100px;
  right: 25px;
  width: 60px;
  height: 60px;
  z-index: 9000;
}

.crystal-core {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, #64ffda, #0f172a);
  box-shadow:
    0 0 10px #64ffda,
    0 0 25px rgba(100,255,218,0.6),
    inset 0 0 15px rgba(255,255,255,0.2);
  animation: crystalBreath 4s ease-in-out infinite;
  transition: all 0.3s ease;
}

.sound-crystal.active .crystal-core {
  box-shadow:
    0 0 15px #64ffda,
    0 0 40px rgba(100,255,218,0.9),
    inset 0 0 25px rgba(255,255,255,0.3);
}

@keyframes crystalBreath {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

/* PANEL SONORO */
.sound-panel {
  position: fixed;
  bottom: 100px;
  right: 25px;
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(12px);
  padding: 15px;
  border-radius: 12px;
  border: 1px solid rgba(100,255,218,0.3);
  display: none;
  flex-direction: column;
  gap: 8px;
  z-index: 9998;
}

.sound-panel h3 {
  font-family: 'Cinzel', serif;
  color: #64ffda;
  margin-bottom: 8px;
  text-align: center;
}

.sound-panel button {
  background: transparent;
  border: 1px solid rgba(100,255,218,0.3);
  color: white;
  padding: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.sound-panel button:hover {
  background: rgba(100,255,218,0.2);
}

#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

#particles .particle {
  position: absolute;
  background-image: url('imgs/hoja.png');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.8;
  animation: fall 10s linear infinite;
}

@keyframes fall {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

#btnTop {
  z-index: 9999;
  position: fixed;
  pointer-events: none;
}
/* Botones interactivos siempre encima */
#ritualButton,
.sound-crystal,
#scrollTopBtn {
  z-index: 9999;
  pointer-events: auto;
}

/* Botón de música con dropdown en navbar - versión corregida */
.music-dropdown {
  position: relative;
  display: inline-block;
  margin-right: 20px;     /* espacio entre el botón de música y "Inicio" */
}

.music-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 8px;
  height: 100%;
  display: flex;
  align-items: center;
}

.music-icon {
  width: 34px;
  height: 51px;
  transition: transform 0.2s ease;
  -webkit-transition: transform 0.2s ease;
  -moz-transition: transform 0.2s ease;
  -ms-transition: transform 0.2s ease;
  -o-transition: transform 0.2s ease;
}

.music-btn:hover .music-icon {
  transform: scale(1.15);
}
/* Opcional: efecto hover más visible */
.music-btn:hover {
  transform: scale(1.15);
  background: rgba(253, 253, 253, 0); /* sutil glow morado */
}

/* Menú dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);   /* centrado debajo del botón */
  background: rgba(30, 15, 60, 0.96);
  border: 1px solid rgba(160, 120, 255, 0.45);
  border-radius: 10px;
  min-width: 200px;
  padding: 8px 0;
  z-index: 1200;                 /* más alto que navbar típica */
  box-shadow: 0 10px 25px rgba(0,0,0,0.65);
  overflow: hidden;
}

.dropdown-menu.show {
  display: block;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  color: #d8c8ff;
  text-align: left;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.dropdown-item:hover {
  background: rgba(90, 50, 180, 0.5);
  color: white;
}

.dropdown-item.stop-btn {
  color: #ff8a8a;
  font-weight: 500;
  border-top: 1px solid rgba(160, 120, 255, 0.25);
  margin-top: 4px;
  padding-top: 12px;
}

.dropdown-item.stop-btn:hover {
  background: rgba(180, 60, 80, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .music-dropdown {
    margin-right: 12px;
  }
  .dropdown-menu {
    left: 0;
    transform: none;
    right: auto;
    min-width: 180px;
  }
}
/* Video de fondo en planos.html – idéntico estilo a Puroria */
.planes-video-bg {
  position: fixed;              /* fijo para cubrir toda la pantalla */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;            /* cubre todo sin distorsión */
  z-index: -3;                  /* muy atrás: detrás de estrellas, fondo, pero antes del contenido */
  pointer-events: none;         /* no bloquea clics */
}
/* Overlay oscuro/suave para mejorar legibilidad (igual que hero-overlay en Puroria) */
.planes-video-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.4),
    rgba(0,0,0,0.75) 70%,
    rgba(0,0,0,0.85)
  );
  z-index: -2;                  /* encima del video, pero detrás del contenido */
  pointer-events: none;
}
@media (max-width: 768px) {
  .planes-video-bg {
    object-fit: cover;
    height: 100vh;
  }
}

/* Parallax background en planos individuales */
.parallax-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -3;               /* detrás de todo el contenido */
  pointer-events: none;
}

.layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;  /*mejorarendimiento*/
  transition: transform 0.5s ease;
  -webkit-transition: transform 0.5s ease;
  -moz-transition: transform 0.5s ease;
  -ms-transition: transform 0.5s ease;
  -o-transition: transform 0.5s ease;
}

.layer-1 {
  background-attachment: fixed;
  transform: translateZ(0) scale(1);
  opacity: 0.9; 
  z-index: -3;
}

.layer-2 {
  background-attachment: fixed;
  transform: translateZ(-1px) scale(1.4);  /* mueve más rápido */
  opacity: 1.2;
  z-index: -2;
}

.layer-3 {
  background-attachment: fixed;
  transform: translateZ(-2px) scale(1.8);  /* mueve mucho más */
  opacity: 0.4;
  z-index: -1;
}

/* Contenido sin fondo oscuro para ver el parallax puro */
.plane-page {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 20px 80px;
  background: transparent;
}

/* Contenido principal encima del parallax */
.plane-page {
  position: relative;
  z-index: 1;                 /* asegura que el texto y botón estén encima */
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 60px;
}
.plane-content {
  max-width: 900px;
  padding: 3rem 2rem;
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8); /* sombra para legibilidad sin fondo oscuro */
}

/* Ajuste para que el particles no interfiera */
.particles {
  z-index: -1;                /* entre el parallax y el contenido */
}

/* ==============================================
   CARRUSEL DE SUSURROS – PRIORIDAD ALTA PARA EVITAR SOBREESCRITURA
   ============================================== */

/* Sección aislada */
.fragment-section {
  background: transparent !important;
  padding: 4rem 5% !important;
}

.fragment-wrapper {
  background: transparent !important;
  padding: 0 !important;
  max-width: 800px;
  margin: 0 auto;
}

/* Carrusel FIJO en ancho – NO cambia con el texto */
.whisper-carousel.fixed-width {
  position: relative !important;
  width: 760px !important;               /* ancho fijo deseado – cámbialo a tu gusto (ej. 800px, 700px) */
  min-width: 760px !important;           /* impide que se encoja nunca */
  max-width: 760px !important;           /* impide que se expanda */
  margin: 2rem auto 0 !important;
  min-height: 240px !important;          /* altura mínima para evitar saltos verticales */
  overflow: hidden !important;
  border-radius: 16px !important;
  background: rgba(20, 10, 40, 0.75) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(100, 255, 218, 0.25) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6) !important;
  padding: 2.5rem 5rem !important;       /* padding lateral grande y FIJO para dar espacio al texto */
  box-sizing: border-box !important;
}

/* Items del carrusel */
.carousel-inner {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
}

.carousel-item {
  position: absolute !important;
  inset: 0 !important;
  opacity: 0 !important;
  transition: opacity 1.5s ease-in-out !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  pointer-events: none !important;  
}

.carousel-item.active {
  opacity: 1 !important;
  pointer-events: auto !important;
  position: relative !important;
}

/* Carrusel FIJO en ancho – NO cambia con el texto */
.whisper-carousel.fixed-width {
  position: relative !important;
  width: 760px !important;               /* ancho fijo deseado – cámbialo a tu gusto (ej. 800px, 700px) */
  min-width: 760px !important;           /* impide que se encoja nunca */
  max-width: 760px !important;           /* impide que se expanda */
  margin: 2rem auto 0 !important;
  min-height: 240px !important;          /* altura mínima para evitar saltos verticales */
  overflow: hidden !important;
  border-radius: 16px !important;
  background: rgba(20, 10, 40, 0.75) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(100, 255, 218, 0.25) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6) !important;
  padding: 2.5rem 5rem !important;       /* padding lateral grande y FIJO para dar espacio al texto */
  box-sizing: border-box !important;
}

/* Contenedor interno del texto – limita y centra sin afectar ancho del padre */
.carousel-inner {
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
}

.carousel-item {
  position: absolute !important;
  inset: 0 !important;
  opacity: 0 !important;
  transition: opacity 1.5s ease-in-out !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  pointer-events: none !important;
}

.carousel-item.active {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.fragment {
  font-family: 'Cinzel', serif !important;
  font-size: 1.6rem !important;
  line-height: 1.8 !important;
  color: #d8d0ff !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8) !important;
  margin: 0 auto !important;
  max-width: 100% !important;            /* ocupa máximo el ancho disponible sin expandir */
  width: 100% !important;
  padding: 0 1rem !important;
  box-sizing: border-box !important;
  word-wrap: break-word !important;      /* fuerza quiebre de línea en textos muy largos */
}

/* Flechas en posición FIJA (no se mueven con el texto) */
.carousel-control {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: rgba(20, 10, 40, 0.7) !important;
  border: 1px solid rgba(100, 255, 218, 0.4) !important;
  color: #64ffda !important;
  font-size: 2.4rem !important;
  width: 60px !important;
  height: 60px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
  z-index: 10 !important;
  pointer-events: auto !important;
}

.carousel-control.prev {
  left: 10px !important;   /* posición fija desde el borde izquierdo del carrusel */
}

.carousel-control.next {
  right: 10px !important;  /* posición fija desde el borde derecho */
}

/* Responsive – en móvil permite ancho 100% pero mantiene proporción */
@media (max-width: 768px) {
  .whisper-carousel.fixed-width {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    padding: 1.8rem 3rem !important;
  }

  .fragment {
    font-size: 1.4rem !important;
  }

  .carousel-control {
    width: 50px !important;
    height: 50px !important;
    font-size: 2rem !important;
  }

  .carousel-control.prev { left: 5px !important; }
  .carousel-control.next { right: 5px !important; }
}

/* Flechas en posición FIJA (no se mueven con el texto) */
.carousel-control {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: rgba(20, 10, 40, 0.7) !important;
  border: 1px solid rgba(100, 255, 218, 0.4) !important;
  color: #64ffda !important;
  font-size: 2.4rem !important;
  width: 60px !important;
  height: 60px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
  z-index: 10 !important;
  pointer-events: auto !important;
}

.carousel-control:hover {
  background: rgba(100, 255, 218, 0.3) !important;
  transform: translateY(-50%) scale(1.2) !important;
  box-shadow: 0 0 25px rgba(100, 255, 218, 0.6) !important;
}

.carousel-control.prev { left: 15px !important; }
.carousel-control.next { right: 15px !important; }

/* Posiciones absolutas fijas (respecto al carrusel) */
.carousel-control.prev {
  left: 10px !important;   /* fija a la izquierda */
}

.carousel-control.next {
  right: 10px !important;  /* fija a la derecha */
}

/* Responsive */
@media (max-width: 768px) {
  .whisper-carousel {
    padding: 1.5rem !important;
  }
  .fragment {
    font-size: 1.4rem !important;
  }
  .carousel-control {
    width: 50px !important;
    height: 50px !important;
    font-size: 2rem !important;
  }
}

/* Separación clara entre secciones */
.section-separated {
  margin-bottom: 5rem !important; /* espacio grande entre sinopsis, personajes y fragmento */
  padding-bottom: 3rem !important;
  border-bottom: 1px solid rgba(100, 255, 218, 0.15) !important; /* línea sutil separadora */
}

/* Evita que .parallax-content ponga fondo oscuro en fragmento */
.fragment-wrapper .parallax-content {
  background: transparent !important;
  padding: 0 !important;
}

/* Carrusel – tiempo y transición más controlados */
.carousel-item {
  transition: opacity 1.5s ease-in-out !important;
}

.carousel-item p {
  transition: opacity 1.5s ease !important;
}

/* Glow al hover SOLO en el contenedor .sinopsis-poetica (texto de sinopsis) */
.sinopsis-poetica {
  position: relative;
  transition: all 0.6s ease;
  background: rgba(214, 214, 216, 0.027);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1px solid rgba(85, 252, 8, 0.2);  /* borde sutil con tu tono morado */
  box-shadow: 0 8px 25px rgba(0,0,0,0.45);
  padding: 2.5rem 2rem;
  margin: 2.5rem auto 0;
  max-width: 820px;
  opacity: 0;
  transform: translateY(20px);
  animation: narrativeFade 1.8s ease-out forwards;
}

.sinopsis-poetica:hover {
  box-shadow: 
    0 20px 50px rgba(34, 112, 3, 0.767),
    0 0 35px rgba(168, 0, 112, 0.45),     /* glow morado intenso */
    0 0 70px rgba(168, 0, 112, 0.25);     /* capa externa más amplia */
  transform: translateY(-8px) scale(1.02);
  background: rgba(162, 248, 3, 0.233);       /* más opaco para resaltar */
  border-color: rgba(168, 0, 112, 0.55);    /* borde más brillante */
}

/* Animación de entrada (fade-in suave al cargar) */
@keyframes narrativeFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Opcional: el texto dentro brilla un poco más al hover */
.sinopsis-poetica:hover p {
  color: #0808089f;
  text-shadow: 0 0 8px rgba(168, 0, 112, 0.4);
}

.sinopsis-poetica:hover {
  box-shadow: 
    0 20px 50px rgba(3, 3, 3, 0.226),
    0 0 35px rgba(168, 0, 112, 0.45),     /* glow morado intenso */
    0 0 70px rgba(168, 0, 112, 0.25);     /* capa externa más amplia */
  transform: translateY(-8px) scale(1.02);
  background: rgba(101, 248, 3, 0.082);       /* más opaco para resaltar */
  border-color: rgba(168, 0, 112, 0.55);    /* borde más brillante */
}

/* Animación de entrada (fade-in suave al cargar) */
@keyframes narrativeFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Opcional: el texto dentro brilla un poco más al hover */
.sinopsis-poetica:hover p {
  color: #e0d0ff;
  text-shadow: 0 0 8px rgba(168, 0, 112, 0.4);
}

/* Tipografía y espaciado poético */
#sinopsis .intro-line {
  font-size: 1.45rem;
  line-height: 1.9;
  font-weight: 500;
  color: #a7e8ff;
  text-align: center;
  font-style: italic;
  margin-bottom: 2.2rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}

#sinopsis .main-body {
  font-size: 1.18rem;
  line-height: 2.0;
  color: #d8d0ff;
  text-align: justify;
  margin-bottom: 2rem;
  letter-spacing: 0.4px;
}

#sinopsis .closing-line {
  font-size: 1.35rem;
  color: #64ffda;
  text-align: center;
  font-style: italic;
  margin-top: 2.5rem;
  opacity: 0.92;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

/* Fade-in suave al cargar la sección */
#sinopsis .sinopsis-poetica {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInPoetica 2s ease-out forwards;
}

@keyframes fadeInPoetica {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive – ajusta en móvil */
@media (max-width: 768px) {
  #sinopsis .sinopsis-poetica {
    padding: 2rem 1.5rem;
    margin: 1.5rem 1rem 0;
  }
  #sinopsis .intro-line,
  #sinopsis .closing-line {
    font-size: 1.3rem;
  }
  #sinopsis .main-body {
    font-size: 1.1rem;
  }
}

/* MODO RITUAL PARCHE UPDATE */
body.ritual-active .guardian-img,
body.ritual-active .glass-card {
  animation: ritualGlow 4s ease-in-out infinite;
}

@keyframes ritualGlow {
  0%, 100% { filter: brightness(1) drop-shadow(0 0 10px rgba(100, 255, 218, 0.3)); }
  50%      { filter: brightness(1.3) drop-shadow(0 0 25px rgba(100, 255, 218, 0.6)); }
}

body.ritual-active {
  filter: sepia(0.2) hue-rotate(200deg) brightness(0.95) contrast(1.1);
}

body.ritual-active::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 60%, rgba(0,0,0,0.6) 100%);
  z-index: 1;
}


/*PARCHE BOTON MODO RITUAL TARJETAS GIRANDO */

.ritual-page-turn {
  position: fixed;
  inset: 0;
  background: url('imgs/page-texture.png') repeat;
  opacity: 0;
  pointer-events: none;
  z-index: 9998;
  animation: pageTurn 2s ease-out forwards;
}

@keyframes pageTurn {
  0%   { transform: translateX(-100%); opacity: 0; }
  50%  { transform: translateX(0); opacity: 0.4; }
  100% { transform: translateX(100%); opacity: 0; }
}

body.ritual-active {
  filter: brightness(0.92) contrast(1.08) saturate(1.15);
   /* luz suave y color vivo */
  -webkit-filter: brightness(0.92) contrast(1.08) saturate(1.15);
}

body.ritual-active::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 70%, rgba(20, 10, 40, 0.35) 100%);
  z-index: 1;
  animation: ritualVignette 2s ease-out forwards;
}

@keyframes ritualVignette {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Efectos del ritual – sin blur, todo acogedor y luminoso */
body.ritual-active {
  filter: brightness(0.95) contrast(1.1) saturate(1.15); /* luz suave y colores vivos */
  transition: filter 2s ease;
}

/* Pulso de brillo en guardianes, esencias y tarjetas */
body.ritual-active .guardian-img,
body.ritual-active .glass-card,
body.ritual-active .section-title {
  animation: ritualPulseGlow 5s ease-in-out infinite;
}

@keyframes ritualPulseGlow {
  0%, 100% {
    filter: brightness(1) drop-shadow(0 0 10px rgba(100, 255, 218, 0.3));
  }
  50% {
    filter: brightness(1.25) drop-shadow(0 0 30px rgba(100, 255, 218, 0.6));
  }
}

/* Viñeta suave en bordes (sensación de "mirar dentro del tomo") */
body.ritual-active::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 65%, rgba(20, 10, 40, 0.4) 100%);
  z-index: 1;
  animation: ritualVignetteFade 3s ease-out forwards;
}

@keyframes ritualVignetteFade {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Partículas más intensas durante ritual */
body.ritual-active .particles,
body.ritual-active .starfield span {
  animation-duration: 8s !important; /* más rápidas */
  opacity: 0.8 !important;
}

.plane-narrative {
  max-width: 780px;
  margin: 2.5rem auto 3rem;
  padding: 2rem;
  background: rgba(20, 10, 40, 0.55);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(100, 255, 218, 0.18);
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  animation: narrativeFade 1.8s ease-out forwards;
}

@keyframes narrativeFade {
  to { opacity: 1; transform: translateY(0); }
}

.plane-description {
  font-size: 1.18rem;
  line-height: 1.9;
  color: #d8d0ff;
  margin-bottom: 2rem;
}

.plane-quote {
  font-size: 1.4rem;
  font-style: italic;
  color: #64ffda;
  margin: 2rem 0;
  padding: 1rem 0;
  border-top: 1px solid rgba(100, 255, 218, 0.25);
  border-bottom: 1px solid rgba(100, 255, 218, 0.25);
}

.plane-trivia {
  font-size: 1.05rem;
  color: #a7e8ff;
  font-style: italic;
  opacity: 0.85;
}

/*RELOJ GIRANDO */
/* Reloj cósmico – versión más grande y visible */
.cosmic-clock {
  position: absolute;
  top: 5%;
  left: 40%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 3px dashed rgba(100, 255, 218, 0.7);
  box-shadow: 0 0 40px rgba(100, 255, 218, 0.5), inset 0 0 30px rgba(100, 255, 218, 0.2);
  opacity: 0.75;
  z-index: 2;
  pointer-events: none;
  animation: rotateClock var(--clock-speed) linear infinite;
  transition: all 0.6s ease;
}

.cosmic-clock:hover {
  opacity: 1;
  box-shadow: 0 0 70px rgba(100, 255, 218, 0.8), inset 0 0 50px rgba(100, 255, 218, 0.4);
  transform: translate(-50%, -50%) scale(1.15);
}

.clock-ring {
  position: absolute;
  inset: 15px;
  border: 2px solid rgba(100, 255, 218, 0.8);
  border-radius: 50%;
  animation: pulseRing 6s ease-in-out infinite;
}

.clock-symbol {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 5rem;
  color: #64ffda;
  text-shadow: 0 0 20px rgba(100, 255, 218, 0.9), 0 0 40px rgba(100, 255, 218, 0.6);
  animation: symbolGlow 3s ease-in-out infinite alternate;
}

/* Animaciones generales */
@keyframes rotateClock {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulseRing {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 0.9; }
}

@keyframes symbolGlow {
  from { text-shadow: 0 0 10px rgba(100, 255, 218, 0.7); }
  to { text-shadow: 0 0 25px rgba(100, 255, 218, 1); }
}

/* Velocidades independientes por plano */
.bg-material .cosmic-clock { --clock-speed: 70s; }     /* más lento (vida orgánica, calma) */
.bg-thalassia .cosmic-clock { --clock-speed: 50s; }    /* más rápido (fluidez del agua) */
.bg-onirico .cosmic-clock { --clock-speed: 90s; }      /* muy lento (sueños etéreos) */
.bg-umbraflora .cosmic-clock { --clock-speed: 120s; }  /* extremadamente lento (sombras profundas) */

/*TARJETAS IMAGENES PLANOS */
.essence-fragments {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 3rem 0;
}

.fragment-card {
  position: relative;
  width: 220px;
  height: 220px;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.5s ease;
}

.fragment-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.fragment-card:hover .fragment-img {
  transform: scale(1.15);
}

.fragment-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.5),
              0 0 35px rgba(168, 0, 112, 0.5); /* tu morado */
}

.fragment-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(20, 10, 40, 0.85);
  color: #a7e8ff;
  padding: 0.8rem;
  font-size: 0.95rem;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  opacity: 0;
}

.fragment-card:hover .fragment-caption {
  transform: translateY(0);
  opacity: 1;
}

/* Modal de zoom */
.image-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  overflow: auto;
}

.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 900px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.modal-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.modal-close:hover {
  color: #64ffda;
}

.fragment-img:nth-child(1) { animation-delay: 0.3s; }
.fragment-img:nth-child(2) { animation-delay: 0.6s; }
.fragment-img:nth-child(3) { animation-delay: 0.9s; }

@keyframes fragmentFade {
  to { opacity: 1; transform: translateY(0); }
}
.constellation {
  width: 300px;
  margin: 2rem auto;
  filter: brightness(0.8);
  transition: filter 0.4s ease;
}

.constellation:hover {
  filter: brightness(1.2) drop-shadow(0 0 20px rgba(100, 255, 218, 0.6));
}

.cycle-timeline {
  display: flex;
  justify-content: space-between;
  max-width: 700px;
  margin: 2rem auto;
  padding: 1rem;
  border-top: 1px solid rgba(100, 255, 218, 0.3);
  border-bottom: 1px solid rgba(100, 255, 218, 0.3);
}

.cycle-point {
  text-align: center;
  color: #a7e8ff;
  font-size: 0.95rem;
}

/* integracion boton soltar equilibrio*/

/* Botón "Soltar el límite" – estilo Puroria */
.release-btn {
  background: linear-gradient(145deg, rgba(100, 255, 218, 0.15), rgba(20, 10, 40, 0.6));
  border: 1px solid rgba(100, 255, 218, 0.4);
  color: #64ffda;
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  font-weight: 500;
  padding: 1rem 2.2rem;
  border-radius: 50px;
  cursor: pointer;
  margin: 2.5rem auto 1.5rem;
  display: block;
  transition: all 0.4s ease;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.4), inset 0 0 10px rgba(100, 255, 218, 0.1);
}

.release-btn:hover {
  background: linear-gradient(145deg, rgba(100, 255, 218, 0.3), rgba(20, 10, 40, 0.7));
  box-shadow: 0 8px 30px rgba(100, 255, 218, 0.4), inset 0 0 20px rgba(100, 255, 218, 0.2);
  transform: translateY(-3px);
}

.release-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(100, 255, 218, 0.3);
}

/* Mensaje que aparece al soltar */
.release-message {
  font-size: 1.25rem;
  color: #a7e8ff;
  text-align: center;
  font-style: italic;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1.2s ease-out;
  margin-top: 1rem;
  display: none; /* oculto por defecto */
}

/* Mejoras para tarjetas de personajes */
#personajes .glass-card {
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s ease;
  animation: cardFade 0.8s ease-out forwards;
}

#personajes .glass-card:nth-child(1) { animation-delay: 0.2s; }
#personajes .glass-card:nth-child(2) { animation-delay: 0.4s; }
#personajes .glass-card:nth-child(3) { animation-delay: 0.6s; }
#personajes .glass-card:nth-child(4) { animation-delay: 0.8s; }

@keyframes cardFade {
  to { opacity: 1; transform: translateY(0); }
}

/* Icono al lado del nombre */
.character-icon {
  font-size: 1.6rem;
  margin-right: 0.6rem;
  vertical-align: middle;
}

/* Rol/esencia debajo del nombre */
.essence-role {
  font-size: 0.95rem;
  color: #a7e8ff;
  font-style: italic;
  margin-top: 0.8rem;
  opacity: 0.85;
  text-align: center;
}

/* Quote poético por personaje */
.character-quote {
  font-size: 1rem;
  font-style: italic;
  color: #64ffda;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(100, 255, 218, 0.25);
  text-align: center;
}

/* Revelación al hover */
.glass-card::after {
  content: attr(data-revelation);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(20, 10, 40, 0.9);
  color: #64ffda;
  padding: 1rem;
  font-size: 0.95rem;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.5s ease;
  opacity: 0;
  pointer-events: none;
}

.glass-card:hover::after {
  transform: translateY(0);
  opacity: 1;
}

.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.6), 0 0 30px rgba(100, 255, 218, 0.4);
}

.release-message.visible {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
}
.essence-role {
  font-size: 0.95rem;
  color: #a7e8ff;
  font-style: italic;
  margin-top: 0.8rem;
  opacity: 0.85;
  text-align: center;
}
.character-icon {
  font-size: 1.4rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}
.glass-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.6), 0 0 30px rgba(100, 255, 218, 0.4);
}

.glass-card::after {
  content: attr(data-revelation); /* agregar data-revelation="texto" en HTML */
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #a80070;
  color: #64ffda;
  padding: 0.8rem;
  font-size: 0.95rem;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.5s ease;
  opacity: 0;
}

.glass-card:hover::after {
  transform: translateY(0);
  opacity: 1;
}

.layer {
  transition: transform 0.6s ease-out;
  animation: organicBreathe 18s ease-in-out infinite alternate;
}

@keyframes organicBreathe {
  0%   { transform: translate(0, 0) scale(1.02); }
  50%  { transform: translate(5px, -8px) scale(1.04); }
  100% { transform: translate(-5px, 8px) scale(1.02); }
}

/* Variación por capa para que no se muevan todas igual */
.layer-1 { animation-duration: 22s; animation-delay: 0s; }
.layer-2 { animation-duration: 26s; animation-delay: 4s; }
.layer-3 { animation-duration: 30s; animation-delay: 8s; }

.fragment-img:hover {
  transform: scale(1.12) rotate(3deg);
  box-shadow: 0 15px 40px rgba(0,0,0,0.5),
              0 0 35px rgba(168, 0, 112, 0.5),  /* glow morado que elegiste */
              0 0 60px rgba(168, 0, 112, 0.3);
  z-index: 2;
}

.fragment-img {
  opacity: 0;
  transform: translateY(30px);
  animation: fragmentAppear 1.2s ease-out forwards;
}

.fragment-img:nth-child(1) { animation-delay: 0.4s; }
.fragment-img:nth-child(2) { animation-delay: 0.8s; }
.fragment-img:nth-child(3) { animation-delay: 1.2s; }

@keyframes fragmentAppear {
  to { opacity: 1; transform: translateY(0); }
}

.whisper-btn {
  background: rgba(168, 0, 112, 0.15); /* tu morado */
  border: 1px solid rgba(168, 0, 112, 0.4);
  color: #a80070;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  padding: 0.7rem 1.4rem;
  border-radius: 30px;
  cursor: pointer;
  margin: 2rem auto 1rem;
  display: block;
  transition: all 0.4s ease;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.whisper-btn:hover {
  background: rgba(168, 0, 112, 0.3);
  box-shadow: 0 0 25px rgba(168, 0, 112, 0.5);
  transform: translateY(-2px);
}

.whisper-btn.active {
  background: rgba(168, 0, 112, 0.4);
  color: #fff;
}

/* Fuente Cinzel en todos los planos para dar cuerpo y elegancia */
.plane-page h1,
.plane-content h1,
.plane-narrative p,
.plane-quote,
.plane-trivia,
.release-btn,
.back-button,
.whisper-btn {
  font-family: 'Cinzel', serif !important;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.plane-description,
.main-body,
.intro-line,
.closing-line {
  font-family: 'Cinzel', serif !important;
  line-height: 1.9;
  font-weight: 400;
}

/* Ajuste para que se vea más "lleno" */
.plane-content {
  font-family: 'Cinzel', serif !important;
}

/* Asegura que las tarjetas individuales queden centradas dentro de su celda */
.merch-card {
  justify-self: center; /* centra cada tarjeta en su columna */
  max-width: 320px; /* evita que se estiren demasiado */
  width: 100%;
}

.merch-card img {
  border: 1px solid rgba(168, 0, 112, 0.3);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.price {
  font-size: 1.4rem;
  color: #a80070;
  font-weight: bold;
  margin: 1rem 0;
}

.merch-card.highlight {
  border-color: #a80070;
  box-shadow: 0 0 30px rgba(168, 0, 112, 0.4);
  transform: scale(1.05);
}

.merch-card.highlight:hover {
  box-shadow: 0 0 60px rgba(168, 0, 112, 0.7);
  transform: scale(1.08);
}

.merch-card .description {
  font-size: 0.95rem;
  color: #d0c8ff;
  margin: 0.8rem 0;
  line-height: 1.6;
}
/* Botón "Sostener Puroria" – estilo coherente con Puroria */
.nav-merch {
  background: linear-gradient(145deg, rgba(168, 0, 112, 0.25), rgba(20, 10, 40, 0.6));
  border: 1px solid rgba(168, 0, 112, 0.5);
  color: #a80070;
  padding: 0.6rem 1.4rem;
  border-radius: 30px;
  margin: 0 1.2rem;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  letter-spacing: 0.8px;
  transition: all 0.4s ease;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(168, 0, 112, 0.2);
  text-decoration: none;
}

.nav-merch:hover {
  background: linear-gradient(145deg, rgba(168, 0, 112, 0.45), rgba(20, 10, 40, 0.7));
  box-shadow: 0 0 30px rgba(168, 0, 112, 0.6);
  transform: scale(1.08);
  color: #fff;
}

/* Ajuste para móvil (opcional) */
@media (max-width: 768px) {
  .nav-merch {
    margin: 0.8rem 0;
    padding: 0.8rem 1.6rem;
    width: 100%;
    text-align: center;
  }
}

/* Centrado perfecto de la sección de ventas */
#merch {
  padding: 4rem 2rem; /* espacio arriba/abajo y laterales */
  text-align: center;
}

#merch .grid,
#merch .merch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* tarjetas responsivas */
  gap: 2.5rem;
  max-width: 1200px; /* ancho máximo para que no se estire demasiado */
  margin: 0 auto; /* centrado horizontal */
  padding: 0 1rem; /* margen interno pequeño */
}

/* ================= RESONANCIAS - GRID DE 4 COLUMNAS ================= */
.resonancias-player {
  margin: 1.5rem 0;
}

/* Mejora compacta para Resonancias */
.resonancias-card {
  max-width: 1200px;          /* limita ancho total de la tarjeta */
  margin: 2rem auto;          /* centra mejor */
}

#globalPlayer {
  width: 100%;
  margin-bottom: 1.5rem;
}

.track-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem 1.2rem;         /* más espacio horizontal, menos vertical */
  max-height: 380px;          /* ← clave: limita altura máxima */
  overflow-y: auto;           /* scroll vertical si no cabe todo */
  padding-right: 0.5rem;      /* evita que el scrollbar tape items */
  scrollbar-width: thin;      /* scrollbar más discreto en Firefox */
}

/* Estilo scrollbar (Chrome/Edge/Safari) */
.track-list::-webkit-scrollbar {
  width: 6px;
}

.track-list::-webkit-scrollbar-track {
  background: rgba(20, 40, 80, 0.3);
  border-radius: 10px;
}

.track-list::-webkit-scrollbar-thumb {
  background: rgba(100, 180, 255, 0.5);
  border-radius: 10px;
}

.track-list::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 180, 255, 0.8);
}

/* Items más compactos */
.track-list li {
  padding: 0.85rem 1rem;     /* reduce padding vertical */
  font-size: 0.90rem;
  min-height: 70px;           /* altura mínima consistente */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

/* Títulos más cortos y limpios */
.track-list li strong {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.track-list li:hover,
.track-list li.active {
  background: rgba(80, 140, 220, 0.35);
  border-color: rgba(140, 200, 255, 0.4);
  transform: translateY(-2px);
}

.track-list li strong {
  color: #c0e0ff;
  display: block;
  margin-bottom: 0.3rem;
}

/* Responsivo: en pantallas pequeñas reduce columnas */
@media (max-width: 1024px) {
  .track-list {
    grid-template-columns: repeat(3, 1fr); /* 3 columnas en tablets */
  }
}

@media (max-width: 768px) {
  .track-list {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en móviles */
  }
}

@media (max-width: 480px) {
  .track-list {
    grid-template-columns: 1fr; /* 1 columna en móviles muy pequeños */
  }
}



/* ============================================
   SISTEMA ORBITAL DE 5 PLANOS (ACTUALIZADO)
   Distribución equidistante: 360° / 5 = 72°
   ============================================ */

/* Reemplaza las reglas antiguas de .plane-wrapper.p1-p4 */
.plane-wrapper.p1 { 
  transform: translate(-50%, -50%) rotate(0deg) translateX(250px) rotate(0deg); 
}
.plane-wrapper.p2 { 
  transform: translate(-50%, -50%) rotate(72deg) translateX(250px) rotate(-72deg); 
}
.plane-wrapper.p3 { 
  transform: translate(-50%, -50%) rotate(144deg) translateX(250px) rotate(-144deg); 
}
.plane-wrapper.p4 { 
  transform: translate(-50%, -50%) rotate(216deg) translateX(250px) rotate(-216deg); 
}
.plane-wrapper.p5 { 
  transform: translate(-50%, -50%) rotate(288deg) translateX(250px) rotate(-288deg); 
}

/* ============================================
   ESTILO VISUAL ÚNICO PARA PURUS CRISTALLINI
   ============================================ */

/* Esfera Purus - color blanco/plateado cristalino */
.plane.purus {
  background: radial-gradient(circle at 30% 30%, #ffffff, #e0f7fa, #a8d8ea);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 
    0 0 20px rgba(255, 255, 255, 0.7),
    0 0 40px rgba(168, 216, 234, 0.5),
    inset 0 0 15px rgba(255, 255, 255, 0.6);
  color: #0d1b1e;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
  animation: purusPulse 4s ease-in-out infinite;
}

/* Animación de pulso cristalino para Purus */
@keyframes purusPulse {
  0%, 100% {
    box-shadow: 
      0 0 20px rgba(255, 255, 255, 0.7),
      0 0 40px rgba(168, 216, 234, 0.5),
      inset 0 0 15px rgba(255, 255, 255, 0.6);
  }
  50% {
    box-shadow: 
      0 0 30px rgba(255, 255, 255, 0.95),
      0 0 60px rgba(168, 216, 234, 0.8),
      0 0 80px rgba(255, 255, 255, 0.4),
      inset 0 0 20px rgba(255, 255, 255, 0.8);
  }
}

/* Hover específico para Purus */
.plane-wrapper.p5:hover .plane.purus {
  transform: scale(1.5) !important;
  box-shadow: 
    0 0 40px rgba(255, 255, 255, 1),
    0 0 80px rgba(168, 216, 234, 0.9),
    0 0 120px rgba(255, 255, 255, 0.6);
  z-index: 20;
}

/* ============================================
   RESPONSIVE PARA 5 PLANOS (móvil)
   ============================================ */
@media (max-width: 768px) {
  .cosmic-system {
    width: 380px;
    height: 380px;
  }
  .planet {
    width: 90px;
    height: 90px;
  }
  .planet img {
    width: 100%;
    height: 100%;
  }
  .plane {
    width: 80px;
    height: 80px;
    font-size: 0.75rem;
  }
  .plane-wrapper {
    width: 120px;
    height: 120px;
  }
  /* Radio de órbita reducido en móvil */
  .plane-wrapper.p1 { transform: translate(-50%, -50%) rotate(0deg) translateX(140px) rotate(0deg); }
  .plane-wrapper.p2 { transform: translate(-50%, -50%) rotate(72deg) translateX(140px) rotate(-72deg); }
  .plane-wrapper.p3 { transform: translate(-50%, -50%) rotate(144deg) translateX(140px) rotate(-144deg); }
  .plane-wrapper.p4 { transform: translate(-50%, -50%) rotate(216deg) translateX(140px) rotate(-216deg); }
  .plane-wrapper.p5 { transform: translate(-50%, -50%) rotate(288deg) translateX(140px) rotate(-288deg); }
}



/* ============================================
FONDO Y ANIMACIÓN DEL PLANO PURUS CRISTALLINI
============================================ */

.bg-purus {
  background: linear-gradient(180deg, #0a1628 0%, #1a2f4f 50%, #2d1b4e 100%);
}

body.bg-purus {
  background: radial-gradient(circle at center, #ffffff 0%, #e0f7ff 20%, #a8d8ea 50%, #0d1b1e 100%);
  animation: crystalBreath 15s infinite ease-in-out;
}

@keyframes crystalBreath {
  0%, 100% { 
    background: radial-gradient(circle at center, #ffffff 0%, #e0f7ff 20%, #a8d8ea 50%, #0d1b1e 100%);
  }
  50% { 
    background: radial-gradient(circle at center, #f0f9ff 0%, #c0e8ff 20%, #88c8e8 50%, #0d1b1e 100%);
  }
}

/* Velocidad del reloj cósmico para Purus */
.bg-purus .cosmic-clock {
  --clock-speed: 40s; /* Más rápido que los otros planos (coherencia pura) */
}

/* Efecto de partículas cristalinas para Purus */
body.bg-purus::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("imgs/crystal-particles.png");
  opacity: 0.3;
  animation: crystalFloat 25s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes crystalFloat {
  from { transform: translateY(0) rotate(0deg); }
  to { transform: translateY(-100%) rotate(360deg); }
}