@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&display=swap');

body {
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  background: #0b0f19;
  overflow: hidden;
  color: #fff;
}

/* --- Fondo animado --- */
.menu-bg {
  position: fixed;
  inset: 0;
  background: #0b0f19;
  z-index: 0;
  pointer-events: none;
}

/* --- Contenedor principal --- */
.menu-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
  transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
}
.menu-container.fade-out {
  opacity: 0;
  transform: scale(0.9);
  filter: blur(4px);
}

/* --- Título --- */
.menu-title {
  font-size: 4rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 40px;
  text-shadow: 0 0 25px rgba(64,224,255,0.4);
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s ease;
}
.menu-title.active {
  opacity: 1;
  transform: scale(1);
  text-shadow: 0 0 40px rgba(64,224,255,0.8);
}
.menu-title span {
  color: #40e0ff;
  text-shadow: 0 0 30px rgba(64,224,255,0.8);
}

/* --- Botones --- */
.menu-options {
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 2;
}
.menu-btn {
  background: rgba(255,255,255,.08);
  border: 2px solid #40e0ff;
  color: #fff;
  font-weight: 700;
  font-size: 1.3rem;
  padding: 14px 36px;
  border-radius: 12px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.25s ease-in-out;
  box-shadow: 0 0 16px rgba(64,224,255,0.15);
  opacity: 0;
  transform: translateY(30px);
}
.menu-btn.visible {
  animation: fadeUp 0.8s forwards ease-out;
}
.menu-btn:hover {
  transform: scale(1.05);
  background: rgba(64,224,255,0.15);
  box-shadow: 0 0 32px rgba(64,224,255,0.35);
}

/* --- Footer --- */
.menu-footer {
  position: absolute;
  bottom: 20px;
  color: rgba(255,255,255,.6);
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s forwards ease-out;
  animation-delay: 1.2s;
}

/* --- Animaciones de entrada --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Overlay de carga --- */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 25, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}
.loading-overlay.visible {
  opacity: 1;
  pointer-events: all;
}
.loading-overlay.hidden {
  display: none;
}

/* --- Loader circular --- */
.loader {
  width: 70px;
  height: 70px;
  border: 4px solid rgba(64,224,255,0.2);
  border-top-color: #40e0ff;
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
  box-shadow: 0 0 20px rgba(64,224,255,0.5);
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Texto dinámico --- */
.loading-text {
  font-size: 1.2rem;
  color: #40e0ff;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(64,224,255,0.6);
  animation: pulseText 1.6s infinite;
}
@keyframes pulseText {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}


/* --- Logo debajo del título --- */
.menu-logo {
  margin-top: 10px;
  margin-bottom: 40px;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s ease;
}

.menu-logo img {
  width: 225px;
  height: auto;
  filter: drop-shadow(0 0 15px rgba(64,224,255,0.4));
}

.menu-logo.active {
  opacity: 1;
  transform: scale(1);
  filter: drop-shadow(0 0 25px rgba(64,224,255,0.7));
}

