@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&display=swap');

* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

html, body { 
  width: 100%; 
  height: 100%; 
  background: #000; 
  overflow: hidden; 
  font-family: 'Cinzel', serif; 
}

/* ===========================
   PANTALLA INICIAL (INTRO)
   =========================== */
.intro {
  position: fixed; 
  inset: 0;
  display: flex; 
  align-items: center; 
  justify-content: center;
  background: radial-gradient(circle at center, #1a0000 0%, #000 100%);
  transition: opacity .8s ease-in-out;
}

/* BOTÓN PRINCIPAL “Toca para entrar…” */
#enterButton {
  background: linear-gradient(180deg, #3b1a0a 0%, #1b0a04 100%);
  border: 2px solid #c9a23f;
  color: #f9e8a1;
  padding: 18px 45px;
  font-size: 1.2rem;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  border-radius: 10px;
  text-shadow: 0 0 10px rgba(255, 230, 130, .8);
  box-shadow: inset 0 0 10px rgba(255, 215, 0, .2),
              0 0 25px rgba(255, 215, 0, .15);
  cursor: pointer;
  transition: all .3s ease;
  animation: pulseGlow 4s infinite ease-in-out; /* 🔥 efecto pulsante */
}

#enterButton:hover {
  transform: scale(1.05);
  box-shadow: 0 0 35px rgba(255, 215, 0, .8),
              inset 0 0 12px rgba(255, 255, 180, .2);
}

#enterButton:active { 
  transform: scale(0.97); 
}

/* ===========================
   VIDEO PRINCIPAL
   =========================== */
.video-container { 
  display: none; 
  position: fixed; 
  inset: 0; 
  background: #000; 
}

#bgVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  display: block;
}

/* ===========================
   BOTÓN FINAL “VOLVER”
   =========================== */
#endOverlay {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease;
}

#endOverlay.fade-in { 
  opacity: 1; 
  visibility: visible; 
}

/* BOTÓN VOLVER estilo medieval */
.btn-volver {
  display: inline-block;
  text-decoration: none;
  background: linear-gradient(180deg, #4d1d08 0%, #2a0c05 100%);
  border: 2px solid #d4af37;
  color: #ffe9a6;
  padding: 16px 38px;
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 10px;
  text-shadow: 0 0 10px rgba(255, 230, 130, .8);
  box-shadow: inset 0 0 10px rgba(255, 215, 0, .2),
              0 0 35px rgba(255, 215, 0, .25);
  animation: pulseGlow 4s infinite ease-in-out;
  transition: filter .3s;
}

.btn-volver:hover { 
  filter: brightness(1.08); 
}

/* ===========================
   ANIMACIÓN COMPARTIDA
   =========================== */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 30px rgba(255, 215, 0, .25); }
  50%      { box-shadow: 0 0 45px rgba(255, 215, 0, .65); }
}

/* ===========================
   MODO MÓVIL
   =========================== */
@media (max-width: 768px) {

  #bgVideo {
    object-fit: cover;
    object-position: top; /* 🔹 ahora el video se pega arriba del viewport */
    background: #000;
  }

  #enterButton { 
    font-size: 1rem; 
    padding: 14px 28px; 
  }

  .btn-volver { 
    font-size: 1rem; 
    padding: 14px 26px; 
  }

  #endOverlay { 
    bottom: 8%; 
  }
}


