/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Arial", sans-serif;
}

/* Body y contenedor principal */
body {
  background-color: #000;
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

/* Fondo decorativo animado */
.fondo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-size: cover;
  background-position: center;
  transition: background-image 1s ease-in-out;
  filter: brightness(0.4);
}

/* Título */
h1 {
  font-size: 3rem;
  color: #ff2e2e;
  text-shadow: 2px 2px #000;
  margin: 60px 0 80px;
  text-align: center;
}

/* Contenedor de botones */
.botones {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 300px;
  align-items: center;
}

/* Estilo de los botones */
.botones a {
  display: block;
  width: 100%;
  padding: 15px 20px;
  font-size: 1.1rem;
  text-align: center;
  text-decoration: none;
  background-color: #ff2e2e;
  color: #fff;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.botones a:hover {
  background-color: #e01e1e;
  transform: scale(1.05);
}

/* Popup decorativo centrado en pantalla */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Contenido del popup */
.popup-content {
  position: relative;
  background: #1a1a1a;
  color: #fff;
  padding: 30px 40px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  border: 3px solid #ff2e2e;
  animation: fadeIn 0.5s;
}

/* Botón de cierre del popup (X) */
.cerrar {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #ff2e2e;
  font-size: 24px;
  cursor: pointer;
}

/* Animación de aparición del popup */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Estilos responsivos para pantallas pequeñas */
@media (max-width: 500px) {
  h1 {
    font-size: 2.2rem;
  }
  .botones a {
    font-size: 0.95rem;
    padding: 12px 15px;
  }
}
