/* =========================================
   Piensa en Gujarati 
   Tema Contenido · Cósmico
   Misma atmósfera que el Index
   ========================================= */

:root {
  /* Paleta cósmica (herencia del index) */
  --gold: #D4AF37;
  --gold-light: #F9E596;
  --gold-dark: #997A15;
  --teal: #00E5FF;
  --teal-dark: #008B99;
  --purple-glow: rgba(147, 51, 234, 0.4);
  
  --ink: #070B14;
  --ink-soft: #111A2C;
  
  --paper: #EAE0CC;
  --paper-warm: #FDF9F1;
  --mist: rgba(255, 255, 255, 0.06);
  --border-gold: rgba(212, 175, 55, 0.4);
  
  /* Sombras */
  --sombra-suave: 0 4px 20px rgba(0, 0, 0, 0.4);
  --sombra-tarjeta: 0 8px 32px rgba(0, 0, 0, 0.5);
  --sombra-glow: 0 4px 20px rgba(212, 175, 55, 0.15);
  
  /* Radios */
  --radio-sm: 12px;
  --radio-md: 16px;
  --radio-lg: 24px;
  --radio-full: 50px;
}

/* ── RESET ── */
*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

body {
  background: var(--ink);
  background-image: 
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(0, 229, 255, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 75% 65%, var(--purple-glow) 0%, transparent 50%),
    radial-gradient(ellipse 50% 60% at 20% 50%, rgba(212, 175, 55, 0.15) 0%, transparent 60%);
  color: var(--paper);
  font-family: 'Source Sans 3', sans-serif;
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.gu { font-family: 'Noto Serif Gujarati', serif; }

/* ── HEADER DEL SITIO ── */
.site-header {
  background: rgba(7, 11, 20, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-gold);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.header-brand { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  text-decoration: none; 
}

.header-logo { 
  width: 44px; 
  height: 44px; 
  border-radius: 50%; 
  object-fit: cover; 
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.6), 0 0 20px rgba(212, 175, 55, 0.3); 
}

.header-name { 
  font-family: 'Fraunces', serif; 
  font-size: 1.25rem; 
  font-weight: 700; 
  color: var(--gold-light); 
}

.header-sub { 
  font-size: 0.75rem; 
  color: rgba(234, 224, 204, 0.6); 
  font-weight: 600; 
  letter-spacing: 0.05em; 
  text-transform: uppercase; 
}

.btn-home {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  padding: 8px 18px;
  border-radius: var(--radio-full);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border-gold);
  transition: all 0.3s ease;
}

.btn-home:hover { 
  background: rgba(212, 175, 55, 0.15);
  transform: translateY(-1px); 
  box-shadow: var(--sombra-glow);
}

/* ── HERO DEL CONTENIDO ── */
.content-hero { 
  padding: 60px 28px 48px; 
  text-align: center; 
  border-bottom: 1px solid var(--border-gold); 
  margin-bottom: 40px; 
  position: relative;
}

.content-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
}

.content-hero h1 { 
  font-family: 'Fraunces', serif; 
  font-size: clamp(2.2rem, 5vw, 3.2rem); 
  font-weight: 700; 
  color: var(--paper-warm); 
  margin: 0 0 14px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.content-hero p { 
  font-size: 1.1rem; 
  color: rgba(234, 224, 204, 0.85); 
  max-width: 600px; 
  margin: 0 auto; 
  line-height: 1.6; 
}

/* ── BARRA DE PROGRESO ── */
.progress-bar-wrap { 
  max-width: 440px; 
  margin: 32px auto 0; 
  background: rgba(17, 26, 44, 0.8); 
  padding: 20px 26px; 
  border-radius: var(--radio-md); 
  box-shadow: var(--sombra-tarjeta); 
  border: 1px solid var(--border-gold);
}

.progress-label { 
  display: flex; 
  justify-content: space-between; 
  font-size: 0.88rem; 
  font-weight: 600; 
  color: rgba(234, 224, 204, 0.7); 
  margin-bottom: 12px; 
}

.progress-bar { 
  height: 8px; 
  background: rgba(255, 255, 255, 0.05); 
  border-radius: 4px; 
  overflow: hidden; 
}

.progress-fill { 
  height: 100%; 
  width: 0%; 
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light)); 
  border-radius: 4px; 
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.5);
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1); 
}

/* ── CONTENEDOR PRINCIPAL ── */
.main { 
  max-width: 860px; 
  margin: 0 auto; 
  padding: 0 28px 90px; 
  display: flex; 
  flex-direction: column; 
  gap: 56px; 
}

/* ── ETAPAS ── */
.etapa { 
  display: flex; 
  flex-direction: column; 
  gap: 16px; 
}

.etapa-header { 
  display: flex; 
  align-items: center; 
  gap: 18px; 
  padding-bottom: 14px; 
  border-bottom: 1px solid var(--border-gold); 
}

.etapa-num { 
  font-family: 'Fraunces', serif; 
  font-size: 3.2rem; 
  font-weight: 700; 
  color: var(--gold); 
  line-height: 1; 
  min-width: 44px; 
  text-align: center; 
  text-shadow: 0 0 24px rgba(212, 175, 55, 0.4);
}

.etapa-title { 
  font-family: 'Fraunces', serif; 
  font-size: 1.65rem; 
  font-weight: 700; 
  color: var(--paper-warm); 
  line-height: 1.2; 
}

.etapa-meta { 
  font-size: 0.92rem; 
  color: rgba(234, 224, 204, 0.6); 
  margin-top: 4px; 
}

/* ── MÓDULOS (DETAILS) ── */
details.modulo { 
  background: rgba(17, 26, 44, 0.6); 
  border-radius: var(--radio-md); 
  box-shadow: var(--sombra-tarjeta); 
  margin-bottom: 16px; 
  border: 1px solid rgba(212, 175, 55, 0.2); 
  overflow: hidden; 
  transition: all 0.3s ease;
}

details.modulo:hover {
  border-color: var(--border-gold);
}

details.modulo[open] {
  border-color: var(--gold);
  box-shadow: var(--sombra-tarjeta), 0 0 30px rgba(212, 175, 55, 0.1);
}

details.modulo summary { 
  display: flex; 
  align-items: center; 
  gap: 16px; 
  padding: 22px 26px 22px 50px; 
  background: transparent; 
  cursor: pointer;
  list-style: none;
  transition: background 0.25s ease; 
  position: relative;
}

details.modulo summary::-webkit-details-marker { display: none; }

details.modulo summary::before {
  content: '▸';
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--gold);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

details.modulo[open] summary::before {
  transform: translateY(-50%) rotate(90deg);
}

details.modulo summary:hover { 
  background: rgba(255, 255, 255, 0.03); 
}

.modulo-num { 
  font-family: 'Fraunces', serif; 
  font-size: 1.25rem; 
  font-weight: 700; 
  color: var(--gold); 
  min-width: 44px; 
}

.modulo-info { 
  flex: 1; 
}

.modulo-title { 
  font-weight: 700; 
  font-size: 1.15rem; 
  color: var(--paper-warm); 
}

.modulo-sub { 
  font-size: 0.92rem; 
  color: rgba(234, 224, 204, 0.55); 
  margin-top: 2px; 
  font-weight: 400; 
}

.modulo-badge { 
  font-size: 0.75rem; 
  font-weight: 700; 
  letter-spacing: 0.08em; 
  text-transform: uppercase; 
  padding: 6px 14px; 
  border-radius: var(--radio-full); 
}

.badge-active { 
  background: rgba(0, 229, 255, 0.1); 
  color: var(--teal);
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.badge-locked { 
  background: rgba(255, 255, 255, 0.03); 
  color: rgba(234, 224, 204, 0.4); 
}

.badge-coming { 
  background: rgba(212, 175, 55, 0.1); 
  color: var(--gold-light); 
}

/* ── LISTA DE LECCIONES ── */
.lecciones { 
  border-top: 1px solid rgba(212, 175, 55, 0.15); 
  padding: 8px 0; 
  background: rgba(7, 11, 20, 0.4); 
}

.details-body {
  animation: revelarContenido 0.35s ease-out forwards;
}

@keyframes revelarContenido {
  0% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.leccion { 
  display: flex; 
  align-items: center; 
  gap: 18px; 
  padding: 16px 26px 16px 50px; 
  text-decoration: none; 
  color: inherit; 
  transition: all 0.25s ease; 
  border-bottom: 1px solid rgba(255, 255, 255, 0.04); 
}

.leccion:last-child { 
  border-bottom: none; 
}

.leccion:hover { 
  background: rgba(255, 255, 255, 0.04); 
}

.leccion.activa { 
  background: rgba(0, 229, 255, 0.04); 
  border-left: 3px solid var(--teal);
  box-shadow: inset 0 0 20px rgba(0, 229, 255, 0.05);
}

.leccion.activa:hover { 
  background: rgba(0, 229, 255, 0.08); 
}

.leccion.bloqueada, .leccion.proxima { 
  opacity: 0.4; 
  cursor: default; 
}

.leccion.bloqueada:hover, .leccion.proxima:hover { 
  background: transparent; 
}

.lec-num { 
  font-size: 1.05rem; 
  color: var(--gold); 
  min-width: 34px; 
  font-family: 'Fraunces', serif; 
  font-weight: 700; 
}

.lec-info { 
  flex: 1; 
}

.lec-title { 
  font-size: 1.05rem; 
  font-weight: 600; 
  color: var(--paper); 
  line-height: 1.3; 
}

.lec-sub { 
  font-size: 0.95rem; 
  color: rgba(234, 224, 204, 0.5); 
  margin-top: 4px; 
  font-family: 'Noto Serif Gujarati', serif; 
}

.lec-status { 
  font-size: 1.15rem; 
}

.lec-status.check { 
  color: #4ADE80; 
  font-weight: 700; 
}

.lec-status.lock { 
  color: rgba(234, 224, 204, 0.3); 
  font-size: 0.95rem; 
}

.lec-status.play { 
  color: var(--teal); 
}

.lec-status.soon { 
  color: var(--gold-light); 
  font-size: 0.75rem; 
  font-weight: 700; 
  letter-spacing: 0.08em; 
  text-transform: uppercase; 
}

/* ── NOTA DE CONSTRUCCIÓN ── */
.nota-construccion { 
  background: rgba(212, 175, 55, 0.04); 
  border: 1px solid var(--border-gold);
  border-radius: var(--radio-sm); 
  padding: 18px 24px; 
  font-size: 0.95rem; 
  color: rgba(234, 224, 204, 0.5); 
  text-align: center; 
  margin: 16px 26px; 
  font-style: italic; 
}

/* ── BOTÓN DE MÚSICA ── */
#musicToggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  background: rgba(7, 11, 20, 0.9);
  color: var(--gold);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  box-shadow: var(--sombra-suave);
}

#musicToggle:hover {
  transform: scale(1.08);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .etapa-num { 
    font-size: 2.6rem; 
    min-width: 36px; 
  }
  
  details.modulo summary { 
    padding: 18px 20px 18px 40px; 
    flex-wrap: wrap; 
    gap: 12px; 
  }
  
  details.modulo summary::before { 
    left: 16px; 
  }
  
  .modulo-badge { 
    margin-left: auto; 
  }
  
  .leccion { 
    padding: 14px 20px 14px 40px; 
  }

  .content-hero { 
    padding: 40px 18px 32px; 
  }

  .main { 
    padding: 0 18px 70px; 
  }
}

/* ── UTILIDADES ── */
html {
  scroll-behavior: smooth;
}

a, button {
  transition: all 0.25s ease;
}

/* Estado del botón de música */
#musicToggle.music-off { color: rgba(234,224,204,0.4); }+
