/*
  Estilos Nochevieja Copacabana (Móstoles)
  - Separación completa de estilos desde index.html
  - Reemplazo de paleta Halloween por una estética festiva (dorados/plateados)
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --gold: #d4af37;
  --champagne: #fff3c4;
  --silver: #c0c0c0;
  --ink: #0b0b0b;
  --white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --accent: #ffd700;
  --neon-magenta: #ff00a6;
  --neon-cyan: #00e5ff;
  --neon-violet: #8a2be2;
  --success: #4caf50;
  --error: #ff5c5c;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--ink);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Fondo: destellos festivos sutiles */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(212,175,55,0.15), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(192,192,192,0.12), transparent 50%),
    radial-gradient(circle at 40% 60%, rgba(255,215,0,0.1), transparent 40%);
  z-index: -1;
}

/* Topbar */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  background: rgba(11, 11, 11, 0.92);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 50px;
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.project-text { color: var(--white); }
.x-text { color: var(--gold); }
.champagne-icon { font-size: 1.4rem; }

.event-pill {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.8rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  font-size: 0.95rem;
}
.countdown-unit { display: inline-flex; flex-direction: column; align-items: center; min-width: 52px; }
.countdown-number { font-weight: 800; font-size: 1.1rem; color: var(--gold); }
.countdown-label { font-size: 0.75rem; color: var(--silver); }
.countdown-separator { color: var(--silver); font-weight: 700; }

/* Responsive: ajustar contador en pantallas pequeñas */
@media (max-width: 780px) {
  .topbar { padding: 0.8rem 1rem; }
  .logo { font-size: 1.6rem; height: 46px; }
  .topbar { justify-content: center; flex-wrap: wrap; gap: 0.6rem; }
  .event-pill { gap: 0.5rem; font-size: 0.9rem; margin: 0 auto; }
  .countdown-unit { min-width: 48px; }
  .countdown-number { font-size: 1.05rem; }
  .countdown-label { font-size: 0.7rem; }
}

@media (max-width: 520px) {
  .topbar { flex-direction: column; align-items: center; gap: 0.5rem; }
  /* Reducir efectos pesados en móvil para evitar jank al deslizar */
  .topbar { backdrop-filter: none; background: rgba(11,11,11,0.92); }
  .event-pill {
    width: 100%;
    justify-content: center;
    padding: 0.4rem 0.6rem;
    gap: 0.4rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .event-pill::-webkit-scrollbar { display: none; }
  .countdown-unit { min-width: 40px; }
  .countdown-number { font-size: 0.95rem; }
  .countdown-label { font-size: 0.65rem; }
  .countdown-separator { font-size: 0.9rem; }
}

/* Hero */
.hero {
  min-height: auto;
  padding: 140px 24px 30px; /* Espacio ajustado para separación limpia */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.2rem;
  margin-bottom: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--silver);
  font-weight: 600;
  backdrop-filter: blur(8px);
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: 3.2rem;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--gold);
  font-weight: 800;
  max-width: 900px;
  margin: 0;
}

.hero-subtitle {
  max-width: 700px;
  color: var(--white);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.5;
  margin: 0 auto;
  opacity: 0.95;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin: 0.5rem 0 1.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: rgba(0, 0, 0, 0.4);
  border-radius: 999px;
  color: var(--champagne);
  font-size: 0.95rem;
  font-weight: 600;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background: var(--gold);
  color: #000;
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none; /* Sin glow por petición */
}

.hero-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* Ajustes responsive del Hero */
@media (max-width: 768px) {
  .hero-title { font-size: 2.4rem; }
  .hero-subtitle { font-size: 1.1rem; }
  .hero-chips { flex-direction: column; gap: 0.5rem; }
  .chip { width: 100%; justify-content: center; }
}

/* Media */
.media-section { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; padding: 24px; max-width: 1100px; margin: 32px auto 0; position: relative; z-index: 0; }
.flyer-container, .reel-container { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 16px; overflow: hidden; }
#flyer { width: 100%; height: 100%; object-fit: cover; display: block; }
#reel { width: 100%; height: 100%; }

@media (max-width: 900px) { .media-section { grid-template-columns: 1fr; } }

/* Formulario de reservas */
.form-section { padding: 24px; }
.form-container { max-width: 900px; margin: 0 auto; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 16px; padding: 24px; }
.form-title { font-size: 1.8rem; margin-bottom: 1rem; color: var(--gold); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label { color: var(--silver); font-weight: 600; }
.form-group input, .form-group textarea { 
  padding: 0.7rem 0.9rem; 
  border-radius: 10px; 
  border: 1px solid var(--glass-border); 
  background: rgba(255,255,255,0.06); 
  color: var(--white); 
  outline: none;
  font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,0.18); }
.error { color: var(--error); font-size: 0.8rem; min-height: 18px; }

/* Campo de cantidad de entradas - estilo mejorado */
.quantity-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  outline: none;
  text-align: left;
}

.quantity-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.18);
  background: rgba(255,255,255,0.08);
}

.quantity-input::placeholder {
  color: rgba(255,255,255,0.4);
}

/* Estilos para los botones de spinner (nativos del input number) */
.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
  opacity: 0.6;
  cursor: pointer;
  height: 20px;
}

.quantity-input::-webkit-inner-spin-button:hover,
.quantity-input::-webkit-outer-spin-button:hover {
  opacity: 1;
}

/* Botón dorado */
.reserve-btn.gold-cta {
  width: 100%;
  margin-top: 1.5rem;
  padding: 1rem 1.4rem;
  border-radius: 12px;
  border: none;
  font-weight: 800;
  font-size: 1.1rem;
  cursor: pointer;
  background: linear-gradient(180deg, #e5c558 0%, #d4af37 100%);
  color: #000000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}
.reserve-btn.gold-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
.reserve-btn:disabled { opacity: 0.7; cursor: wait; transform: none; }

.reservation-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--silver);
  text-align: center;
  line-height: 1.5;
  background: rgba(212, 175, 55, 0.1);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Mensajes de estado */
.success-message, .error-message {
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  text-align: center;
}

.success-message {
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid var(--success);
  color: #e8f5e9;
}

.success-message h3 {
  color: #66bb6a;
  margin-bottom: 0.5rem;
}

.success-message .important-note {
  margin-top: 1rem;
  font-weight: bold;
  color: var(--gold);
}

.error-message {
  background: rgba(255, 92, 92, 0.1);
  border: 1px solid var(--error);
  color: #ffebee;
}

/* Sección: Primera Venta Física */
.sale-section { padding: 12px 24px 24px; margin-top: 0; } /* Mantenemos 0 margin-top */
.section-title { text-align: center; color: var(--white); font-size: 1.8rem; margin-bottom: 1rem; font-weight: 800; }
.sale-container { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 1rem; background: #121212; border: 1px solid #FFD75A; border-radius: 16px; padding: 16px; }
.sale-left { display: flex; align-items: center; }
.date-block { background: #FFD75A; color: #000; border-radius: 12px; padding: 32px 28px; display: grid; gap: 6px; justify-items: center; box-shadow: 0 6px 14px rgba(0,0,0,0.18); }
.date-large { font-weight: 900; font-size: 1.6rem; letter-spacing: 0.2px; }
.date-small { font-weight: 700; font-size: 1.05rem; opacity: 0.9; }
.date-title { font-weight: 800; font-size: 1.2rem; }
.sale-right { display: grid; gap: 0.8rem; }
.info-card { display: flex; align-items: center; gap: 0.8rem; background: rgba(0,0,0,0.3); border: 1px solid #333; border-radius: 12px; padding: 14px 16px; }
.info-text { display: grid; }
.info-label { color: var(--silver); font-size: 0.9rem; font-weight: 600; }
.info-value { color: var(--white); font-weight: 800; }
.icon { font-size: 1.2rem; }

/* Sección: Sistema de Tramos */
.tiers-section { padding: 24px; }
.section-subtitle { text-align: center; color: var(--silver); max-width: 900px; margin: 0.2rem auto 1rem; }
.tiers-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; max-width: 1000px; margin: 0 auto; }
.tier-card { background: rgba(0,0,0,0.3); border-radius: 12px; padding: 20px; width: 100%; text-align: center; border: 2px solid #E0E0E0; }
.tier-price { color: var(--white); font-weight: 900; margin-bottom: 8px; font-size: 2rem; }
.tier-status { font-weight: 900; letter-spacing: 0.2px; }
.tier-note { margin-top: 6px; color: var(--silver); font-size: 0.9rem; }
.tier-card--soldout { border-color: #FF4747; }
.tier-card--last { border-color: #FFD75A; }
.tier-card--next { border-color: #E0E0E0; }
/* Colores de estado */
.tier-card--soldout .tier-status { color: #FF4747; }
.tier-card--last .tier-status { color: #FFD75A; }
.tier-card--next .tier-status { color: #E0E0E0; }

/* Foto grande del evento */
.event-photo-section { padding: 24px; }
.event-photo { width: 100%; max-width: 1000px; margin: 0 auto; display: block; border-radius: 16px; border: 1px solid var(--glass-border); }

/* Features */
.features-section { padding: 24px; }
.features-title { text-align:center; color: var(--gold); font-size: 1.8rem; margin-bottom: 1rem; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 1100px; margin: 0 auto; }
.feature-card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 16px; padding: 16px; text-align: center; }
.feature-icon { font-size: 2rem; display: block; margin-bottom: 0.6rem; }

@media (max-width: 900px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } .form-grid { grid-template-columns: 1fr; } }

/* Información del evento */
.info-section { padding: 24px; }
.info-container { max-width: 900px; margin: 0 auto; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 16px; padding: 24px; }
.info-container h2 { color: var(--gold); margin-bottom: 0.6rem; }
.info-list { list-style: none; display: grid; gap: 0.6rem; }
.info-list li { color: var(--silver); }
.info-list strong { color: var(--white); }

/* Contacto y redes */
.social-section { padding: 24px; }
.social-title { text-align:center; color: var(--gold); font-size: 1.6rem; margin-bottom: 0.6rem; }
.contact-list { list-style: none; max-width: 900px; margin: 0 auto; display: grid; gap: 0.6rem; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 16px; padding: 16px; }
.contact-list a { color: var(--gold); text-decoration: none; }

/* Ajuste móvil: más espacio superior en hero para topbar fija */
@media (max-width: 520px) {
  .hero { padding: 160px 16px 30px; }
  .hero-title { font-size: 2.2rem; }
  .hero-chips { flex-direction: column; gap: 0.6rem; width: 100%; }
  .chip { width: 100%; justify-content: center; font-size: 0.9rem; }
}

@media (max-width: 600px) {
  .sale-section { padding: 12px 16px 16px; margin-top: 0; margin-bottom: 12px; }
  .sale-container { grid-template-columns: 1fr; max-width: 92%; gap: 14px; }
  .date-block { padding: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.18); }
  .date-large { font-size: 1.35rem; }
  .date-small { font-size: 0.95rem; }
  .info-card { padding: 12px; }
  .tiers-grid { grid-template-columns: 1fr; max-width: 92%; }
  .tier-card { margin-bottom: 14px; padding: 16px; }
  .tier-price { font-size: 1.6rem; }
  .tier-status { font-size: 0.95rem; }
}

@media (min-width: 601px) and (max-width: 900px) {
  .sale-container { grid-template-columns: 1fr 1fr; max-width: 94%; }
  .tiers-grid { grid-template-columns: repeat(2, minmax(0,1fr)); max-width: 94%; }
}
