/* Estructura base con Flexbox */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

body {
  background-color: #111;
  color: #0f0;
  font-family: monospace;
  text-align: center;
  text-shadow: 0 0 5px #0f0, 0 0 10px #0f0;
  font-size: 18px;
}

/* El main se expande y empuja el footer hacia abajo */
main {
  flex: 1;
}

/* Menú superior */
nav.menu-container {
  background-color: #2e2e2e;
  padding: 10px 0;
  border-bottom: 2px solid #0f0;
}

ul.menu-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 30px;
}

ul.menu-row li a {
  color: #0f0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

ul.menu-row li a:hover {
  text-decoration: underline;
  color: #0ff;
  text-shadow: 0 0 10px #0ff, 0 0 20px #0ff;
}

/* Contenido */
h1 {
  margin-top: 50px;
  font-size: 2em;
}

section {
  margin: 40px auto;
  max-width: 1200px;
  background-color: #1a1a1a;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #0f0;
  animation: neon-glow 2s infinite alternate;
}

/* Layout para video + chat */
.stream-container {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
}

.video-box {
  flex: 3;
  position: relative;
  padding-top: 56.25%;
  height: 0;
  overflow: hidden;
  border: 2px solid #0f0;
  border-radius: 8px;
  animation: neon-glow 2s infinite alternate;
}

.video-box iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

.chat-box {
  flex: 2;
  min-width: 300px;
  height: 500px;
  position: relative;
  border: 2px solid #0f0;
  border-radius: 8px;
  animation: neon-glow 2s infinite alternate;
}

.chat-box iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* Animación de brillo neón */
@keyframes neon-glow {
  from {
    box-shadow: 0 0 10px #0f0, 0 0 20px #0f0, 0 0 30px #0f0;
  }
  to {
    box-shadow: 0 0 20px #0ff, 0 0 40px #0ff, 0 0 60px #0ff;
  }
}

/* Footer siempre al fondo */
footer {
  padding: 20px;
  background-color: #2e2e2e;
  border-top: 2px solid #0f0;
}

/* Responsive: compacta en móviles */
@media (max-width: 800px) {
  section {
    max-width: 95%;
    padding: 15px;
  }

  .stream-container {
    flex-direction: column;
  }

  .video-box {
    padding-top: 56.25%;
    height: 0;
  }

  .chat-box {
    height: 400px;
  }

  body {
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  ul.menu-row {
    flex-direction: column;
    gap: 15px;
  }
}
