/* ==================== ESTILOS GENERALES ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #301a05;
  font-family: 'Georgia', serif;
  color: #e2d4b7;
  text-align: center;
  min-height: 100vh;
}

/* Opcional: textura de madera */
/* body { background: url("textura-madera.jpg") repeat; } */

h1, h2, h3 {
  color: #f4e4c1;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

h2 {
  font-size: 2.5em;
  margin: 40px 0 30px 0;
  letter-spacing: 2px;
}

/* ==================== HEADER Y LOGO ==================== */
.logo-principal { 
  width: 250px; 
  margin-top: 20px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

h1 {
  font-size: 1.8em;
  margin: 20px auto;
  max-width: 800px;
  padding: 0 20px;
}

.descripcion {
  font-size: 1.1em;
  margin: 10px auto 30px auto;
  max-width: 600px;
  color: #d4c5a9;
}

/* ==================== MENÚ HAMBURGUESA ==================== */
#menu-hamburguesa { 
  position: fixed; 
  top: 15px; 
  left: 15px; 
  font-size: 2em; 
  cursor: pointer;
  z-index: 1001;
  background: rgba(48, 26, 5, 0.9);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 2px solid #c19e70;
  transition: all 0.3s ease;
}

#menu-hamburguesa:hover {
  background: rgba(193, 158, 112, 0.3);
  transform: scale(1.1);
}

/* ==================== SIDEBAR / BARRA LATERAL ==================== */
.sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, #2a1605 0%, #1a0f03 100%);
  border-right: 3px solid #c19e70;
  z-index: 1002;
  transition: left 0.4s ease;
  overflow-y: auto;
  box-shadow: 4px 0 20px rgba(0,0,0,0.5);
}

.sidebar.active {
  left: 0;
}

.sidebar-header {
  padding: 20px;
  border-bottom: 2px solid #c19e70;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(193, 158, 112, 0.1);
}

.sidebar-header h2 {
  font-size: 1.3em;
  margin: 0;
  color: #f4e4c1;
}

#close-sidebar {
  font-size: 2em;
  cursor: pointer;
  color: #e2d4b7;
  transition: color 0.3s;
}

#close-sidebar:hover {
  color: #ff6b6b;
}

.sidebar-menu {
  list-style: none;
  padding: 20px 0;
}

.sidebar-menu li {
  margin: 0;
}

.sidebar-menu li a {
  display: flex;
  align-items: center;
  padding: 15px 25px;
  color: #e2d4b7;
  text-decoration: none;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.sidebar-menu li a:hover {
  background: rgba(193, 158, 112, 0.2);
  border-left: 4px solid #c19e70;
  padding-left: 30px;
}

.sidebar-menu li a .icon {
  margin-right: 15px;
  font-size: 1.3em;
}

#sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1001;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#sidebar-overlay.active {
  display: block;
  opacity: 1;
}

/* ==================== DONACIÓN ==================== */
#donacion-container { 
  position: fixed; 
  top: 15px; 
  right: 15px; 
  text-align: center; 
  cursor: pointer;
  z-index: 1000;
  background: rgba(48, 26, 5, 0.9);
  padding: 10px;
  border-radius: 10px;
  border: 2px solid #c19e70;
  transition: all 0.3s ease;
}

#donacion-container:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(193, 158, 112, 0.5);
}

#donacion-label-top, #donacion-label-bottom { 
  font-size: 0.8em; 
  color: #e2d4b7; 
  margin: 2px 0; 
}

#boton-donacion img { 
  width: 60px;
  margin: 5px 0;
}

/* ==================== MARQUESINA ==================== */
.marquesina { 
  margin: 30px 0; 
  font-size: 1.5em; 
  font-weight: bold; 
  color: #fff;
  background: rgba(193, 158, 112, 0.1);
  padding: 15px;
  border-top: 2px solid #c19e70;
  border-bottom: 2px solid #c19e70;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

/* ==================== SECCIONES DE CONTENIDO ==================== */
.seccion-contenido {
  display: none;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  animation: fadeIn 0.5s ease;
}

.seccion-contenido.active {
  display: block;
}

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

/* ==================== SECCIÓN INICIO / CARTELES ==================== */
.carteles { 
  display: flex; 
  justify-content: center; 
  gap: 30px; 
  margin: 30px auto;
  flex-wrap: wrap;
}

.carteles img { 
  max-width: 350px;
  width: 100%;
  border: 3px solid #c19e70;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}

.carteles img:hover {
  transform: scale(1.05);
}

/* ==================== TIENDA ==================== */
.tienda-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.producto-card {
  background: rgba(42, 22, 5, 0.8);
  border: 2px solid #c19e70;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
}

.producto-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(193, 158, 112, 0.4);
}

.producto-imagen {
  font-size: 4em;
  margin-bottom: 15px;
}

.producto-card h3 {
  font-size: 1.4em;
  margin: 15px 0;
  color: #f4e4c1;
}

.producto-card p {
  color: #d4c5a9;
  margin: 10px 0;
  font-size: 0.95em;
}

.precio {
  font-size: 1.6em;
  color: #ffd700;
  margin: 15px 0;
  font-weight: bold;
}

.btn-comprar {
  background: linear-gradient(135deg, #8b6914 0%, #c19e70 100%);
  color: #1a0f03;
  border: none;
  padding: 12px 25px;
  font-size: 1em;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Georgia', serif;
}

.btn-comprar:hover {
  background: linear-gradient(135deg, #c19e70 0%, #e4c998 100%);
  transform: scale(1.05);
}

/* ==================== GREENWATER ==================== */
.greenwater-intro {
  background: rgba(42, 22, 5, 0.6);
  border: 2px solid #c19e70;
  border-radius: 10px;
  padding: 25px;
  margin: 30px auto;
  max-width: 800px;
  font-size: 1.1em;
  line-height: 1.8;
}

.greenwater-intro strong {
  color: #7bc96f;
  font-size: 1.2em;
}

.greenwater-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.feature-card {
  background: rgba(42, 22, 5, 0.8);
  border: 2px solid #7bc96f;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(123, 201, 111, 0.4);
}

.feature-icon {
  font-size: 3.5em;
  margin-bottom: 15px;
}

.feature-card h3 {
  color: #7bc96f;
  margin: 15px 0;
}

.greenwater-status {
  background: rgba(42, 22, 5, 0.8);
  border: 2px solid #c19e70;
  border-radius: 10px;
  padding: 25px;
  margin: 40px auto;
  max-width: 700px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.status-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.status-label {
  color: #d4c5a9;
  font-size: 0.95em;
}

.status-value {
  color: #ffd700;
  font-size: 1.4em;
  font-weight: bold;
}

.btn-primary {
  background: linear-gradient(135deg, #7bc96f 0%, #5a9e4f 100%);
  color: #1a0f03;
  border: none;
  padding: 15px 40px;
  font-size: 1.2em;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Georgia', serif;
  margin-top: 20px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5a9e4f 0%, #7bc96f 100%);
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(123, 201, 111, 0.5);
}

/* ==================== CASINO ==================== */
.casino-intro {
  background: rgba(42, 22, 5, 0.6);
  border: 2px solid #c19e70;
  border-radius: 10px;
  padding: 25px;
  margin: 30px auto;
  max-width: 800px;
  font-size: 1.1em;
}

.casino-games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.game-card {
  background: rgba(42, 22, 5, 0.8);
  border: 2px solid #ff6b6b;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
}

.game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.game-icon {
  font-size: 3.5em;
  margin-bottom: 15px;
}

.game-card h3 {
  color: #ff6b6b;
  margin: 15px 0;
}

.btn-jugar {
  background: linear-gradient(135deg, #ff6b6b 0%, #c92a2a 100%);
  color: #fff;
  border: none;
  padding: 12px 25px;
  font-size: 1em;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Georgia', serif;
  margin-top: 15px;
}

.btn-jugar:hover {
  background: linear-gradient(135deg, #c92a2a 0%, #ff6b6b 100%);
  transform: scale(1.05);
}

.casino-info {
  background: rgba(42, 22, 5, 0.8);
  border: 2px solid #ffd700;
  border-radius: 10px;
  padding: 25px;
  margin: 40px auto;
  max-width: 600px;
  text-align: left;
}

.casino-info h3 {
  text-align: center;
  color: #ffd700;
  margin-bottom: 20px;
}

.casino-info ul {
  list-style: none;
  padding-left: 0;
}

.casino-info li {
  padding: 10px 0;
  font-size: 1.1em;
  border-bottom: 1px solid rgba(193, 158, 112, 0.3);
}

/* ==================== MISIONES ==================== */
.misiones-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.mision-card {
  background: rgba(42, 22, 5, 0.8);
  border: 2px solid #c19e70;
  border-radius: 10px;
  padding: 25px;
  position: relative;
  transition: all 0.3s ease;
}

.mision-card.disponible {
  border-color: #7bc96f;
}

.mision-card.completada {
  border-color: #ffd700;
  opacity: 0.8;
}

.mision-card.bloqueada {
  border-color: #666;
  opacity: 0.6;
}

.mision-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.mision-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: #7bc96f;
  color: #1a0f03;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: bold;
}

.completada-badge {
  background: #ffd700;
}

.bloqueada-badge {
  background: #666;
  color: #fff;
}

.mision-card h3 {
  margin: 20px 0 15px 0;
  color: #f4e4c1;
}

.mision-recompensa {
  margin: 15px 0;
  padding: 10px;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 5px;
}

.mision-recompensa strong {
  color: #ffd700;
  font-size: 1.3em;
}

.mision-progreso {
  margin: 20px 0;
}

.progreso-bar {
  width: 100%;
  height: 20px;
  background: rgba(0,0,0,0.3);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progreso-fill {
  height: 100%;
  background: linear-gradient(90deg, #7bc96f 0%, #5a9e4f 100%);
  transition: width 0.5s ease;
}

.mision-progreso span {
  font-size: 0.9em;
  color: #d4c5a9;
}

.mision-requisito {
  margin: 15px 0;
  padding: 10px;
  background: rgba(255, 107, 107, 0.1);
  border-radius: 5px;
  color: #ff6b6b;
}

.btn-mision {
  width: 100%;
  background: linear-gradient(135deg, #7bc96f 0%, #5a9e4f 100%);
  color: #1a0f03;
  border: none;
  padding: 12px;
  font-size: 1em;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Georgia', serif;
  margin-top: 10px;
}

.btn-mision:hover:not(:disabled) {
  background: linear-gradient(135deg, #5a9e4f 0%, #7bc96f 100%);
  transform: scale(1.02);
}

.btn-mision:disabled {
  background: #666;
  cursor: not-allowed;
  color: #aaa;
}

/* ==================== MULTIMEDIA / NOVELA ==================== */
.multimedia-intro {
  background: rgba(42, 22, 5, 0.6);
  border: 2px solid #c19e70;
  border-radius: 10px;
  padding: 25px;
  margin: 30px auto;
  max-width: 800px;
  font-size: 1.1em;
}

.multimedia-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.media-card {
  background: rgba(42, 22, 5, 0.8);
  border: 2px solid #c19e70;
  border-radius: 10px;
  padding: 25px;
  transition: all 0.3s ease;
}

.media-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(193, 158, 112, 0.4);
}

.media-card h3 {
  margin-bottom: 15px;
}

.btn-leer {
  background: linear-gradient(135deg, #8b6914 0%, #c19e70 100%);
  color: #1a0f03;
  border: none;
  padding: 10px 20px;
  font-size: 1em;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Georgia', serif;
  margin-top: 15px;
}

.btn-leer:hover {
  background: linear-gradient(135deg, #c19e70 0%, #e4c998 100%);
  transform: scale(1.05);
}

.novela-quotes {
  margin: 50px auto;
  max-width: 700px;
  padding: 30px;
  background: rgba(42, 22, 5, 0.8);
  border-left: 5px solid #c19e70;
  border-radius: 5px;
}

.novela-quotes blockquote {
  font-size: 1.3em;
  font-style: italic;
  color: #f4e4c1;
  margin-bottom: 15px;
  line-height: 1.6;
}

.novela-quotes cite {
  display: block;
  text-align: right;
  color: #c19e70;
  font-size: 1.1em;
}

/* ==================== TOKENS PZG ==================== */
.tokens-intro {
  background: rgba(42, 22, 5, 0.6);
  border: 2px solid #ffd700;
  border-radius: 10px;
  padding: 25px;
  margin: 30px auto;
  max-width: 800px;
  font-size: 1.1em;
  line-height: 1.8;
}

.token-packages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.token-card {
  background: rgba(42, 22, 5, 0.8);
  border: 2px solid #ffd700;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.token-card.popular {
  border-color: #ff6b6b;
  border-width: 3px;
  transform: scale(1.05);
}

.token-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.token-card.popular:hover {
  transform: translateY(-10px) scale(1.07);
}

.token-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: #ff6b6b;
  color: #fff;
  padding: 5px 20px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: bold;
}

.token-cantidad {
  font-size: 2.5em;
  color: #ffd700;
  font-weight: bold;
  margin: 20px 0;
}

.token-precio {
  font-size: 2em;
  color: #f4e4c1;
  margin: 15px 0;
}

.token-descuento {
  color: #7bc96f;
  font-size: 1.1em;
  font-weight: bold;
  margin: 10px 0;
}

.token-beneficios {
  list-style: none;
  text-align: left;
  margin: 20px 0;
  padding: 0;
}

.token-beneficios li {
  padding: 8px 0;
  color: #d4c5a9;
}

.btn-comprar-token {
  width: 100%;
  background: linear-gradient(135deg, #ffd700 0%, #c19e70 100%);
  color: #1a0f03;
  border: none;
  padding: 15px;
  font-size: 1.1em;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Georgia', serif;
  margin-top: 15px;
}

.btn-comprar-token:hover {
  background: linear-gradient(135deg, #c19e70 0%, #ffd700 100%);
  transform: scale(1.05);
}

.payment-methods {
  margin: 50px auto;
  max-width: 600px;
  padding: 25px;
  background: rgba(42, 22, 5, 0.8);
  border: 2px solid #c19e70;
  border-radius: 10px;
}

.payment-methods h3 {
  margin-bottom: 20px;
}

.payment-icons {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 15px;
}

.payment-icons span {
  font-size: 1.2em;
  padding: 10px 15px;
  background: rgba(193, 158, 112, 0.2);
  border-radius: 5px;
}

/* ==================== FOOTER ==================== */
footer { 
  margin-top: 80px;
  padding: 40px 20px;
  font-size: 0.9em;
  background: rgba(26, 15, 3, 0.8);
  border-top: 2px solid #c19e70;
}

footer img { 
  width: 150px;
  margin-bottom: 20px;
}

footer p {
  margin: 10px 0;
  color: #d4c5a9;
}

.footer-links {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(193, 158, 112, 0.3);
}

.footer-links a {
  color: #c19e70;
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #f4e4c1;
}

/* ==================== VIDEO CONTAINER ==================== */
#video-container { 
  display: none; 
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  background: black; 
  justify-content: center; 
  align-items: center; 
  flex-direction: column; 
  z-index: 9999; 
}

#video-container video { 
  width: 90%; 
  max-width: 900px;
}

#mensaje-final { 
  display: none; 
  margin-top: 30px; 
  font-size: 1.8em; 
  color: #fff;
  text-align: center;
  padding: 0 20px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  h1 {
    font-size: 1.4em;
  }
  
  h2 {
    font-size: 2em;
  }
  
  .sidebar {
    width: 260px;
    left: -260px;
  }
  
  .carteles {
    flex-direction: column;
    align-items: center;
  }
  
  .carteles img {
    max-width: 90%;
  }
  
  .tienda-grid,
  .greenwater-features,
  .casino-games,
  .misiones-container,
  .multimedia-content,
  .token-packages {
    grid-template-columns: 1fr;
  }
  
  .token-card.popular {
    transform: scale(1);
  }
}

@media (max-width: 480px) {
  #menu-hamburguesa,
  #donacion-container {
    top: 10px;
  }
  
  #menu-hamburguesa {
    left: 10px;
    width: 45px;
    height: 45px;
  }
  
  #donacion-container {
    right: 10px;
  }
  
  .logo-principal {
    width: 180px;
  }
  
  .marquesina {
    font-size: 1.2em;
  }
}
