:root {
  --color-primario: #D4AF37;
  --color-secundario: #1c1c1c;
  --color-fondo: #121212;
  --color-texto: #f5f5f5;
  --color-acento: #C41E3A;
  --color-hover: #FFD700;
  --toast-success: #28a745;
  --toast-error: #dc3545;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--color-fondo);
  color: var(--color-texto);
  line-height: 1.6;
}

/* Navbar */
.navbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 2rem;
  background: rgba(28, 28, 28, 0.85);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 1000;
}
.logo img { height: 50px; }
.nav-links { display: flex; align-items: center; gap: 1rem; }
.nav-links a {
  text-decoration: none; color: var(--color-texto); transition: 0.3s;
  font-weight: 500;
}
.nav-links a:hover { color: var(--color-hover); }
.nav-links a.disabled { color: #666; pointer-events: none; }
.cart-icon { margin-left: 15px; font-size: 1.2rem; }
.hamburger { display: none; }

/* Hero */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #1c1c1c, #2a2a2a);
  display: flex; justify-content: center; align-items: center;
  padding: 6rem 2rem;
  text-align: center;
}
.hero-overlay {
  background: rgba(0,0,0,0.6);
  width: 100%; height: 100%;
  display: flex; justify-content: center; align-items: center;
  flex-direction: column;
  padding: 2rem;
}
.hero-logo { max-width: 220px; margin-bottom: 1.5rem; }
.hero-content h1 { font-size: 3rem; margin-bottom: 0.5rem; color: var(--color-primario); }
.hero-content h3 { font-size: 1.5rem; margin-bottom: 1.5rem; color: var(--color-hover); }
.hero-content p { font-size: 1.1rem; margin-bottom: 2rem; max-width: 800px; }

/* Botones */
.btn-cta {
  padding: 14px 28px;
  border-radius: 10px;
  background: var(--color-primario);
  color: #000;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}
.btn-cta:hover { background: #e0c04c; transform: translateY(-2px); }
.btn-card.disabled { background: #444 !important; cursor: not-allowed; }

/* Secciones */
.section { padding: 4rem 2rem; text-align: center; max-width: 1200px; margin: 0 auto; }
.section.presentacion p { margin-bottom: 1rem; font-size: 1.1rem; }

/* Juegos */
#juegos h2 { font-size: 2.2rem; margin-bottom: 1.2rem; color: var(--color-primario); }
.highlight-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.big-card {
  padding: 2rem;
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
  transition: 0.3s ease;
  text-align: center;
}
.big-card:hover:not(.inactive) { transform: translateY(-6px); border-color: var(--color-primario); }
.big-card h3 { font-size: 1.8rem; margin-bottom: 0.5rem; color: var(--color-primario); }
.big-card p { font-size: 1rem; margin-bottom: 1rem; }
.big-card .btn-card {
  font-size: 1rem; padding: 12px 24px; border-radius: 6px;
  background: var(--color-acento); color: #fff; cursor: pointer;
  transition: 0.3s; border: none;
}
.big-card .btn-card:hover:not(.disabled) { background: #a5172d; }
.big-card.inactive { opacity: 0.6; }
.small-note { font-size: 0.9rem; color: #ccc; }

/* Modal */
.modal {
  display: flex; justify-content: center; align-items: center;
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%; background: rgba(0,0,0,0.6);
  z-index: 2000; opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal.show { opacity: 1; pointer-events: auto; }
.modal.closing { opacity: 0; pointer-events: none; }
.modal-content {
  background: #1e1e1e;
  padding: 2rem;
  border-radius: 14px;
  width: 90%;
  max-width: 420px;
  max-height: 85vh; /* controla altura */
  overflow-y: auto; /* scroll interno */
  text-align: center;
  transform: translateY(30px);
  transition: transform 0.3s ease;
  position: relative;
}

/* Scroll elegante en modal */
.modal-content::-webkit-scrollbar { width: 6px; }
.modal-content::-webkit-scrollbar-thumb {
  background: var(--color-primario);
  border-radius: 4px;
}
.modal-content::-webkit-scrollbar-track { background: #2a2a2a; }

.close {
  position: absolute; right: 15px; top: 10px;
  font-size: 1.8rem; cursor: pointer; color: var(--color-texto);
}

/* Premios en modal */
.premios-list {
  text-align: left;
  margin: 1rem 0 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--color-primario);
}
.premios-list li {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  color: var(--color-texto);
  display: flex;
  align-items: center;
  gap: 8px;
}
.premios-list li::before {
  content: "⭐";
  color: var(--color-hover);
  font-size: 0.9rem;
}

.options { display: flex; flex-direction: column; gap: 1rem; margin: 1.5rem 0; }
.option-btn {
  background: #2a2a2a; border: 1px solid #3a3a3a;
  border-radius: 8px; padding: 12px; font-size: 1rem;
  color: var(--color-texto); transition: all 0.25s ease;
}
.option-btn:hover { border-color: var(--color-primario); }
.option-btn.active { border-color: var(--color-primario); background: #3a3a3a; color: var(--color-primario); }

/* Toasts */
#toast-container {
  position: fixed; top: 20px; right: 20px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 3000;
}
.toast {
  min-width: 280px; padding: 14px 18px; border-radius: 8px;
  color: #fff; font-size: 0.95rem;
  display: flex; align-items: center; gap: 10px;
  animation: slideIn 0.5s ease, fadeOut 0.5s ease 3.5s forwards;
  position: relative;
}
.toast.success { background: var(--toast-success); }
.toast.error { background: var(--toast-error); }
.toast::after {
  content: ""; position: absolute; bottom: 0; left: 0;
  height: 3px; background: rgba(255,255,255,0.7);
  animation: progressBar 3s linear forwards; width: 100%;
}
@keyframes progressBar { from { width: 100%; } to { width: 0; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeOut { to { opacity: 0; transform: translateX(100%); } }

/* Footer */
footer { background: #000; text-align: center; padding: 1.5rem; margin-top: 2rem; }

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none; flex-direction: column;
    background: rgba(28,28,28,0.95);
    position: absolute; top: 70px; right: 0; width: 220px; padding: 1rem;
    border-radius: 0 0 0 10px;
  }
  .nav-links.active { display: flex; }
  .hamburger { display: block; font-size: 2rem; cursor: pointer; }
  .hero-content h1 { font-size: 2rem; }
  .hero-content h3 { font-size: 1.2rem; }
  .hero-content p { font-size: 1rem; }
}
