/* public/css/style.css */

/* ─── Base ───────────────────────────────────────────────────────────────────── */
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: #0b0b0f;
  color: white;
  overflow-x: hidden;
  animation: fadeIn 1.2s ease;
}

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

/* ─── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(180deg, #0b0b1a, #151530, #1d1d45);
  position: relative;
  overflow: hidden;
}

.hero h1,
.nombre-evento {
  font-size: clamp(40px, 8vw, 90px);
  font-family: 'Playfair Display', serif;
  color: #c7a6ff;
  font-weight: 700;
  letter-spacing: 2px;
  margin: 0 0 10px;
}

.hero p,
.fecha {
  font-size: clamp(16px, 3vw, 25px);
  opacity: 0.8;
  margin: 0 0 10px;
}

/* ─── Botón ──────────────────────────────────────────────────────────────────── */
.btn-glow {
  margin-top: 20px;
  padding: 14px 36px;
  background: linear-gradient(45deg, #8f5eff, #c59cff);
  border: none;
  border-radius: 30px;
  color: white;
  cursor: pointer;
  font-size: 16px;
  box-shadow: 0 0 20px rgba(155, 108, 255, 0.6);
  transition: 0.3s;
}

.btn-glow:hover {
  transform: scale(1.05);
  box-shadow: 0 0 28px rgba(143, 94, 255, 0.8);
}

/* ─── Contenido ──────────────────────────────────────────────────────────────── */
#contenido {
  display: none;
}

/* ─── Cards ──────────────────────────────────────────────────────────────────── */
.card {
  margin: 30px auto;
  padding: 30px 40px;
  max-width: 700px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 25px;
  backdrop-filter: blur(12px);
  transition: 0.4s;
}

.card:hover {
  transform: translateY(-5px);
}

/* ─── Formulario ─────────────────────────────────────────────────────────────── */
input, select, textarea {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border-radius: 10px;
  border: none;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 15px;
}

/* ─── Animaciones ────────────────────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  animation: fade 2s forwards;
}

.fade-in.delay {
  animation-delay: 1s;
}

@keyframes fade {
  to { opacity: 1; }
}

/* ─── Scroll reveal ──────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Countdown ──────────────────────────────────────────────────────────────── */
#countdown {
  font-size: 35px;
}

.contador {
  display: flex;
  justify-content: space-around;
  font-size: 2rem;
  text-align: center;
}

.contador span {
  font-weight: bold;
  font-size: 2.5rem;
}

/* ─── Galería ────────────────────────────────────────────────────────────────── */
.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.galeria img {
  width: 100%;
  border-radius: 15px;
  transition: 0.4s;
  cursor: pointer;
}

.galeria img:hover {
  transform: scale(1.08) rotate(1deg);
}

/* ─── Mapa ───────────────────────────────────────────────────────────────────── */
iframe {
  width: 100%;
  height: 300px;
  border-radius: 20px;
  border: none;
}

/* ─── Título animado ─────────────────────────────────────────────────────────── */
.titulo {
  background: linear-gradient(90deg, #c7a6ff, #ffffff, #c7a6ff);
  background-size: 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 5s infinite;
}

@keyframes shine {
  0%   { background-position: 0%; }
  100% { background-position: 200%; }
}

/* ─── Modal galería ──────────────────────────────────────────────────────────── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal.abierto {
  display: flex;
}

.modal img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 20px;
}

/* ─── Particles canvas ───────────────────────────────────────────────────────── */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ─── Timeline ───────────────────────────────────────────────────────────────── */
.timeline {
  border-left: 3px solid #c7a6ff;
  padding-left: 20px;
}

.evento {
  margin-bottom: 15px;
  position: relative;
}

.evento::before {
  content: '';
  width: 10px;
  height: 10px;
  background: #c7a6ff;
  border-radius: 50%;
  position: absolute;
  left: -26px;
  top: 5px;
}

/* ─── Ticket / QR ────────────────────────────────────────────────────────────── */
#ticket {
  background: white;
  color: #111;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 300px;
  margin: 30px auto;
  text-align: center;
}

#qrTicket {
  width: 200px;
  margin: 20px auto;
  display: block;
  border-radius: 8px;
}

#btnDescargarQR {
  background: #111;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  margin-top: 10px;
}

/* ─── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .card {
    margin: 16px;
    padding: 20px;
  }

  .hero {
    padding: 20px;
  }
}
