/* === ESTILO GLOBAL === */
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(to bottom right, #0f0f0f, #1a1a1a);
  color: #e0e0e0;
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
}


/* === CONTENEDOR DEL MODAL === */
.modal {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  padding: 20px;
  box-sizing: border-box;
}


/* === CONTENIDO DEL MODAL === */
.modal-content {
  background: url('https://www.transparenttextures.com/patterns/diamond-upholstery.png') #111;
  border-radius: 15px;
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.7);
  padding: 30px;
  text-align: center;
  position: relative;
  animation: powerOn 1s ease-out;
  max-width: 600px;
  width: 100%;
  margin: 20px;
  box-sizing: border-box;
}


/* === IMAGEN DEL MODAL === */
.modal-content img {
  max-width: 200px;
  width: 100%;
  height: auto;
  margin-bottom: 5px;
  transition: transform 0.4s ease-in-out;
}

.modal-content img:hover {
  transform: rotate(360deg) scale(1.1);
}


/* === ENCABEZADO GLITCH === */
h1.glitch {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.5rem, 5vw, 2.4rem);
  color: #fff;
  margin:  0 0 20px 0;
  animation: glitch 1.5s infinite;
  line-height: 1.2;
}


/* === ANIMACIÓN GLITCH === */
@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, -2px); }
  40% { transform: translate(-1px, 1px); }
  60% { transform: translate(2px, 0); }
  80% { transform: translate(1px, 2px); }
  100% { transform: translate(0); }
}


/* === FRASE DESTACADA === */
.battle-tagline {
  font-size: clamp(1rem, 4vw, 1.8rem);
  color: #ff2b2b;
  animation: pulse 2s infinite;
  margin: 15px 0;
  line-height: 1.3;
}


/* === ANIMACIÓN PULSE === */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}


/* === CONTENEDOR DE BOTONES === */
.buttons-container {
  margin: 25px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
}


/* === BOTONES DEL MODAL === */
.modal-btn {
  background-color: #ff0033;
  color: white;
  border: none;
  padding: 12px 5px;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 0 10px #ff0033, 0 0 20px #ff0033;
  font-weight: bold;
  cursor: pointer;
  min-width: 140px;
  width: auto;
  max-width: 100%;
  text-align: center;
  text-decoration: none;
  font-size: clamp(0.8rem, 3vw, 0.9rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 1 auto;
}

.modal-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px #bfbfbf, 0 0 20px #ffffff;
  background: #e0e0e0;
  color: black;
  text-decoration: none;
}


/* === ANIMACIÓN DE ENTRADA === */
@keyframes powerOn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}


/* === PIE DE PÁGINA === */
.footer-upc {
  margin-top: auto;
  font-size: 0.85rem;
  color: #666;
  text-align: center;
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  box-sizing: border-box;
}

.footer-upc:hover {
  color: #aaa;
}


/* === MEDIA QUERY: PANTALLAS PEQUEÑAS === */
@media (max-width: 600px) {
  .buttons-container {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .modal-btn {
    width: 45%;
    min-width: 120px;
    padding: 12px 5px;
    font-size: 0.8rem;
  }
}

@media (max-width: 400px) {
  .modal-btn {
    width: 100%;
    max-width: 180px;
  }
}

#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: black;
}