* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0a0118;
  --bg-secondary: #1a0f2e;
  --accent-primary: #6366f1;
  --accent-secondary: #8b5cf6;
  --accent-tertiary: #ec4899;
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: rgba(99, 102, 241, 0.2);
  --glow-color: rgba(99, 102, 241, 0.4);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Age Gate Styles */
.age-gate {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0a0118 0%, #1a0f2e 50%, #0a0118 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
}

.age-gate-content {
  background: rgba(26, 15, 46, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  max-width: 500px;
  width: 100%;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 40px var(--glow-color);
}

.age-gate-logo h1 {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
}

.age-gate-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.age-gate-warning {
  margin-bottom: 2rem;
}

.age-icon {
  width: 64px;
  height: 64px;
  color: var(--accent-tertiary);
  margin: 0 auto 1rem;
}

.age-gate-warning h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.age-gate-warning p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

.age-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.btn-confirm,
.btn-deny {
  padding: 1rem 2rem;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-confirm {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
}

.btn-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--glow-color);
}

.btn-deny {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.btn-deny:hover {
  background: rgba(255, 255, 255, 0.15);
}

.age-gate-legal {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Main Content */
.main-content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.main-content.hidden {
  display: none;
}

#particlesCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.logo-section {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
  filter: blur(60px);
  z-index: -1;
}

.logo-title {
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 40px var(--glow-color);
}

.logo-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

.tagline {
  font-size: 1rem;
  color: var(--text-muted);
  font-style: italic;
}

.cta-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 400px;
}

.btn-primary,
.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 2rem;
  border-radius: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-primary);
}

.btn-icon,
.btn-icon-left {
  width: 20px;
  height: 20px;
}

/* Footer */
.footer {
  padding: 2rem 1rem;
  text-align: center;
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-color);
  background: rgba(10, 1, 24, 0.8);
  backdrop-filter: blur(10px);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.loyalty-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.star-icon {
  width: 16px;
  height: 16px;
  color: var(--accent-tertiary);
}

.separator {
  color: var(--text-muted);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 640px) {
  .age-gate-content {
    padding: 2rem 1.5rem;
  }

  .age-gate-logo h1 {
    font-size: 2rem;
  }

  .hero-container {
    padding: 1.5rem;
  }

  .cta-section {
    max-width: 100%;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
  }

  .separator {
    display: none;
  }
}

/* =============================================
   BOTÓN DE INSTALACIÓN PWA (solo móvil)
============================================= */
.install-btn {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  border: none;
  border-radius: 2rem;
  padding: 0.9rem 1.8rem;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  z-index: 3000;
  animation: slideUp 0.6s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Mostrar solo en móviles */
@media (max-width: 768px) {
  .install-btn {
    display: none; /* El JS lo mostrará solo si aplica */
  }
}
