/* --- Estilos Globales & Reset --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-color: #050505;        /* Negro muy profundo */
  --card-bg: rgba(18, 28, 24, 0.95); /* Verde oscuro casi negro */
  --text-color: #e0e0e0;      /* Gris claro */
  --gold-primary: #d4af37;    /* Dorado clásico */
  --gold-bright: #f9d877;     /* Dorado brillante para hover */
  --emerald: #006a4e;         /* Verde esmeralda */
  --emerald-light: #009b77;   /* Esmeralda más claro para textos */
  --font-main: 'Montserrat', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --font-script: 'Yellowtail', cursive;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  background-image: radial-gradient(circle at center, #1a2e26 0%, #000000 100%);
  color: var(--text-color);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 15px;
}

/* --- Contenedor Principal (El Libro) --- */
.book-container {
  position: relative;
  background: var(--card-bg);
  padding: 40px 30px 90px 30px;
  border: 1px solid rgba(212, 175, 55, 0.3); /* Borde dorado sutil */
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8), inset 0 0 20px rgba(0,0,0,0.5);
  max-width: 650px;
  width: 100%;
  min-height: 600px;
  overflow: hidden;
}

/* Efecto de "partículas doradas" sutiles en el fondo del contenedor */
.book-container::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0IiBoZWlnaHQ9IjQiPgo8cmVjdCB3aWR0aD0iNCIgaGVpZ2h0PSI0IiBmaWxsPSIjZmZmIiBmaWxsLW9wYWNpdHk9IjAuMDUiLz4KPC9zdmc+');
  pointer-events: none;
  opacity: 0.3;
  z-index: 0;
}

/* --- Títulos y Textos --- */
h1, h2 {
  font-family: var(--font-serif);
  color: var(--gold-primary);
  text-align: center;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding-bottom: 10px;
}

h2 {
  font-size: 1.8rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

p, li {
  line-height: 1.7;
  font-size: 0.95rem;
  font-weight: 300;
  color: #ddd;
}

strong {
  color: var(--gold-primary);
  font-weight: 600;
}

/* --- Páginas --- */
.page {
  display: none;
  animation: fadeIn 0.6s ease;
  position: relative;
  z-index: 1;
}
.page.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- PÁGINA 1: Portada (Estilo Cartel) --- */
#page1 {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding-top: 20px;
}

.header-info p { margin: 5px 0; color: #aaa; font-size: 0.8rem; letter-spacing: 1px;}
.dance-type span {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--emerald-light);
  margin: 10px 0;
  letter-spacing: 3px;
  font-weight: 700;
}

.academia-presenta {
  margin-top: 15px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.logo-jassiba-header { height: 40px; margin-right: 10px; }

.main-event-title { margin: 30px 0; }
.title-tradicion {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 2px;
}
.title-modernidad {
  display: block;
  font-family: var(--font-serif); /* Cambiado a Serif para parecerse más a "ESCÉNICAS" del cartel */
  font-size: 3.5rem;
  color: var(--gold-primary);
  line-height: 1;
  margin-top: 5px;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.event-details {
  border-top: 1px solid var(--emerald);
  border-bottom: 1px solid var(--emerald);
  padding: 15px 0;
  margin-top: 20px;
  width: 100%;
}
.event-details p { color: #fff; margin: 5px 0; font-size: 0.9rem; text-transform: uppercase;}
.event-details .time { color: var(--gold-primary); font-weight: bold; }
.ticket-warning { font-size: 0.75rem !important; color: #bbb !important; margin-top: 10px !important; font-style: italic;}

/* --- Listas de Programa y Música --- */
.lista-dos-columnas { list-style: none; padding: 0; }
.lista-dos-columnas li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.1);
}
.columna-izquierda { width: 48%; font-weight: 600; color: var(--gold-primary); }
.columna-derecha { width: 48%; text-align: right; color: #ccc; font-size: 0.9rem;}

/* --- Agradecimientos --- */
.lista-participantes, .lista-participantes-2 {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.director-block {
  text-align: center;
  margin-top: 30px;
  padding: 20px;
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  border: 1px solid var(--gold-primary);
}
.frase-direccion { font-style: italic; color: var(--emerald-light); margin-top: 10px;}

/* --- Formulario --- */
.rating-stars-container { text-align: center; margin-bottom: 20px; }
.rating-stars { display: inline-block; direction: rtl; } /* Right to Left para el hover correcto */
.rating-stars input { display: none; }
.rating-stars label {
  font-size: 2.5rem;
  color: #444;
  cursor: pointer;
  transition: color 0.2s;
}
.rating-stars input:checked ~ label,
.rating-stars label:hover,
.rating-stars label:hover ~ label { color: var(--gold-primary); }

textarea {
  width: 100%;
  background: rgba(0,0,0,0.5);
  border: 1px solid #444;
  color: #fff;
  padding: 10px;
  border-radius: 5px;
}

/* --- Botones --- */
.cta-boton, .submit-feedback, .nav-buttons button {
  background: linear-gradient(135deg, var(--emerald) 0%, #004d38 100%);
  color: #fff;
  border: 1px solid var(--emerald-light);
  padding: 12px 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-block;
}

.cta-boton:hover, .submit-feedback:hover, .nav-buttons button:hover {
  background: var(--gold-primary);
  color: #000;
  border-color: var(--gold-bright);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.nav-buttons {
  position: absolute;
  bottom: 30px;
  left: 30px;
  right: 30px;
  display: flex;
  justify-content: space-between;
  z-index: 10;
}

/* Responsive */
@media (max-width: 600px) {
  .title-tradicion { font-size: 1.5rem; }
  .title-modernidad { font-size: 2.5rem; }
  .lista-dos-columnas li { flex-direction: column; }
  .columna-izquierda, .columna-derecha { width: 100%; text-align: left; }
  .columna-derecha { margin-top: 4px; font-style: italic; }
  .lista-participantes { grid-template-columns: 1fr; }
}