/* Reset de márgenes y paddings para todos los elementos */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Estilo general del cuerpo */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #fff;
  color: #000;
}

/* Contenedor del menú de navegación */
nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 15px 20px;
  background: transparent;
  position: relative;
  z-index: 10;
}

/* Lista del menú principal */
ul#menu {
  list-style: none;
  display: flex;
  gap: 25px;
}

ul#menu li {
  position: relative;
}

/* Estilos generales de los enlaces del menú */
ul#menu li a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}

/* Estilo al pasar el mouse o cuando el enlace está activo */
ul#menu li a.active,
ul#menu li a:hover {
  color: #39ff14;
  border-bottom-color: #39ff14;
}

/* Botón hamburguesa oculto por defecto (visible solo en móviles) */
#menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 30px;
  height: 21px;
  justify-content: space-between;
}

/* Líneas del botón hamburguesa */
#menu-toggle span {
  display: block;
  height: 3px;
  background: #000;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Estilos responsivos para pantallas pequeñas (móvil) */
@media (max-width: 768px) {
  /* Menú desplegable oculto inicialmente */
  ul#menu {
    position: fixed;
    top: 60px;
    right: 0;
    background: #000;
    height: calc(100vh - 60px);
    width: 200px;
    flex-direction: column;
    padding-top: 20px;
    gap: 15px;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  /* Mostrar el menú al activar la clase "show" */
  ul#menu.show {
    transform: translateX(0);
  }

  /* Mostrar el botón hamburguesa */
  #menu-toggle {
    display: flex;
  }
}

/* Reaplica fondo oscuro y texto blanco para todo el body */
body {
  margin: 0;
  background-color: #121212;
  color: white;
  font-family: Arial, sans-serif;
  text-align: center;
}

/* Encabezado */
header {
  padding: 20px;
}

/* Logo posicionado arriba a la izquierda */
.logo {
  position: absolute;
  top: 25px;
  left: 60px;
  width: 200px;
}

/* Texto principal grande */
.llego {
  font-size: 60px;
  font-weight: bold;
  color: #0066ff;
  margin-top: 120px;
  font-family: 'TropicaliaType', cursive;
}

/* Subtítulo */
.titulo {
  font-size: 35px;
  font-weight: bold;
  margin-top: 10px;
}

/* Texto genérico blanco */
.el {
  color: white;
  font-family: 'Montserrat', sans-serif;
}

/* Texto resaltado en amarillo */
.spam {
  color: #ffff00;
  font-family: 'Tropical', cursive;
}

/* Contenedor de reproductores en columnas */
.reproductores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 40px;
}

/* Caja del reproductor */
.player {
  width: 480px;
  max-width: 90%;
  height: 270px;
  background: black;
  border-radius: 10px;
  overflow: hidden;
}

/* Pie de página */
footer {
  background-color: #1a1a1a;
  color: #ccc;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 14px;
}

/* Iconos sociales */
.social-icons a {
  color: #ccc;
  margin-right: 10px;
  text-decoration: none;
  font-size: 20px;
}

/* Botones del footer */
.footer-buttons a {
  background: #0066ff;
  color: white;
  padding: 8px 12px;
  border-radius: 5px;
  text-decoration: none;
  margin-left: 10px;
}

/* Estilo del modal (fondo oscuro) */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
}

/* Contenido del modal */
.modal-content {
  background-color: #222;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  text-align: left;
}

/* Inputs y labels dentro del modal */
.modal-content label,
.modal-content input {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  color: white;
}

/* Input del modal */
.modal-content input {
  padding: 8px;
  border: none;
  border-radius: 5px;
  color: black;
}

/* Botón del modal */
.modal-content button {
  background-color: #25D366;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 5px;
  width: 100%;
}

/* Botón para cerrar el modal */
.close {
  color: white;
  float: right;
  font-size: 24px;
  cursor: pointer;
}

/* Estilos responsivos para móvil */
@media (max-width: 768px) {
  .llego {
    font-size: 40px;
  }

  .titulo {
    font-size: 26px;
  }

  .player {
    height: 250px;
  }

  footer {
    flex-direction: column;
    text-align: center;
  }

  .footer-buttons {
    margin-top: 10px;
  }
}

/* Estilo especial para el footer */
.tropicalia-footer {
  background-color: #121212;
  color: white;
  padding: 20px 40px 40px 40px;
  font-family: 'Arial Black', sans-serif;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

/* Contenedor del contenido del footer */
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  width: 100%;
}

/* Texto de la izquierda en el footer */
.footer-left p {
  font-size: 14px;
  font-weight: bold;
  margin: 30px 0 0 0;
}

/* Columna derecha del footer */
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Iconos sociales del footer */
.footer-social {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

/* Estilo de enlaces sociales */
.footer-social a {
  color: white;
  font-size: 16px;
  text-decoration: none;
}

.footer-social a:hover {
  color: #aaa;
}

/* Enlaces del footer */
.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Responsive para el footer */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-right {
    align-items: center;
    margin-top: 10px;
  }

  .footer-links {
    flex-direction: row;
    gap: 15px;
  }
}

/* Animación del botón hamburguesa al estar activo */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: column;
}

.logo-preloader {
  width: 200px;
  margin-bottom: 20px;
  animation: zoomIn 1.5s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 10px red);
}

.typing-text {
  font-family: 'Courier New', monospace;
  font-size: 28px;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid white;
  width: 0;
  margin: 0 auto;
  animation: typing 2.5s steps(12) forwards, blink 0.7s step-end infinite;
  text-align: center;
}

@keyframes typing {
  from { width: 0; }
  to { width: 12ch; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

@keyframes zoomIn {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}
