body {
    margin: 0;
    padding: 0;
    background-color: #121212;
    font-family: 'Poppins', sans-serif;
       overflow-x: hidden;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
.logo-container {
  position: relative;
  padding: 20px;
  text-align: center;
  background-color: #1e1e1e;
    display: flex; /* <--- AÑADIDO */
  align-items: center; /* <--- AÑADIDO */
  justify-content: center; /* <--- AÑADIDO */
}

/* Estilo del logo */
.logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 48px;
    margin: 0;
}


/* Parte blanca: "Urban" */
.logo-urban {
    color: white;
}

/* Parte azul oscuro: "dle" */
.logo-dle {
    color: #2978b5;
}


/* Botón hamburguesa: tres barras blancas */
.menu-toggle {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 28px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

}

.menu-toggle div {
  height: 4px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-nav {
  position: absolute;
  top: 70px; /* justo debajo del header */
  right: 20px;
  background: rgba(30, 30, 30, 0.95);
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
  padding: 15px 20px;
  display: none;
  flex-direction: column;
  gap: 15px;
  min-width: 180px;
  z-index: 1000;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: translateY(-10px);
}

.mobile-nav.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.mobile-nav a:hover {
  background-color: #2978b5;
  color: white;
}

.menu-toggle.open div:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.menu-toggle.open div:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.open div:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}
.social-icons {
  position: absolute;
  top: 30px;
  left: 100px;
  display: flex;
  gap: 50px;
  align-items: center;
}

.social-icons img {
  width: 45px;  /* Aumenta el tamaño */
  height: 45px;
  transition: transform 0.2s ease;
}

.social-icons img:hover {
  transform: scale(1.1); /* Efecto suave al pasar el mouse */
}
@media (max-width: 760px) {
  .social-icons {
    left: 20px; /* o el valor que prefieras */
    gap: 20px;  /* opcional, para que no quede muy separado en pantallas pequeñas */
  }
}
@media (max-width: 500px) {
  .social-icons img {
    width: 40px;
    height: 40px;
  }
}
@media (max-width: 420px) {
  .social-icons img {
    width: 35px;
    height: 35px;
  }
}
@media (max-width: 380px) {
      .social-icons {
    left: 10px; /* o el valor que prefieras */
    gap: 10px;  /* opcional, para que no quede muy separado en pantallas pequeñas */
  }
  .social-icons img {
    width: 30px;
    height: 30px;
  }
}
.main-container {
    display: flex;
    justify-content: center;
    flex-direction: column; 
    align-items: center;
    padding: 40px 20px;
}

/* Formulario de búsqueda */
.search-form {
    width: 100%;
    max-width: 600px;
}

/* Campo de texto grande y moderno */
.search-input {
    width: 100%;
    padding: 20px;
    font-size: 20px;
    border: none;
    border-radius: 12px;
    background-color: #2c2c2c;
    color: white;
    outline: none;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.search-input::placeholder {
    color: #888;
}

#resultados {
    margin-top: 10px;
    width: 100%;
    padding: 20px;
    background: #1e1e1e; /* Fondo oscuro como el header */
    border-radius: 12px;
    max-width: 550px;
    z-index: 10;
    display: none;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.resultado {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: #2c2c2c; /* Fondo del input */
    margin-bottom: 10px;
    border-radius: 10px;
    font-size: 18px;
    color: #ffffff;
    transition: background 0.3s ease;
    border: 1px solid #444;
    cursor: pointer; /* Añadido para que se vea como clickeable */
}

.resultado:hover {
    background: #3a3a3a;
}

.nombre {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    font-weight: normal;
    color: #ffffff;
   
}

#resultados div {
    padding: 10px;
    color: #333;
}

#buscador:focus + #resultados {
    display: block;
}

/* Estilos para los resultados (cantantes) */
.fila-cantante {
    display: flex;
    justify-content: flex-start; /* Los coloca alineados al inicio */
    margin: 10px auto;
    max-width: 90%;
    padding: 10px;
    background-color: #2c2c2c;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    flex-wrap: nowrap; /* Evita que los divs se acomoden en varias líneas */
    gap: 10px; /* Espacio entre los divs */
    justify-content: space-evenly; /* Distribuye los divs de manera uniforme */
    
}

/* Las celdas de los datos del cantante */
.celda {
    width: 100px; /* Establecemos un tamaño fijo de ancho */
    height: 100px; /* Hacemos que la altura sea igual al ancho para hacerlas cuadradas */
    display: flex;
    justify-content: center; /* Centra el texto horizontalmente */
    align-items: center; /* Centra el texto verticalmente */
    padding: 0; /* Elimina el padding para controlar el tamaño */
    border: 1px solid #444;
    background-color: #3a3a3a;
    color: white;
    font-weight: bold;
    font-size: 16px;
    border-radius: 8px;
    text-align: center; /* Asegura que el texto esté centrado */
    margin: 0; /* Elimina los márgenes entre celdas */
}

/* Agregar algo de espacio entre las celdas */
.fila-cantante .celda:not(:last-child) {
    margin-right: 10px;
}

@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.celda {
    opacity: 0; /* Para que inicien ocultas */
    animation: aparecer 0.4s ease forwards;
}

/* Estilos para la fila de encabezados (letreros) */
#letreros {
    display: flex;
    justify-content: flex-start; /* Los coloca alineados al inicio */
    margin: 10px auto;
    max-width: 90%;
    padding: 10px;
    padding-top: 40px;
    
   
    flex-wrap: nowrap; /* Evita que los divs se acomoden en varias líneas */
    gap: 10px; /* Espacio entre los divs */
   
    height: 20px;
}

#letreros .letrero {
    width: 100px; /* Establecemos un tamaño fijo de ancho */
    height: 100px; /* Hacemos que la altura sea igual al ancho para hacerlas cuadradas */
    display: flex;
    justify-content: center; /* Centra el texto horizontalmente */
    align-items: center; /* Centra el texto verticalmente */
    padding: 0; /* Elimina el padding para controlar el tamaño */
    color: white;
    font-weight: bold;
    font-size: 16px;
    height: 20px;
    border-radius: 8px;
    text-align: center; /* Asegura que el texto esté centrado */
    margin: 0; /* Elimina los márgenes entre celdas */
}

.linea-separadora {
    width: 100%;
    max-width: 800px;
    height: 2px;
    background-color: white;
    margin: 10px auto;
    border-radius: 1px;
}

#buscador:disabled {
    background-color: #ddd;
    color: #555;
    cursor: not-allowed;
}



.anuncio-inferior {
    max-width: 900px;
    margin: 40px auto;
    padding: 10px 0;
    background-color: #333;

    text-align: center;
    border-radius: 10px;
    font-size: 16px;
}
/* Anuncios laterales fijos */
.anuncios-laterales-contenedor {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  height: 1000px; /* o lo que necesites para que haya scroll */
  display: flex;
  justify-content: space-between; /* para separar anuncios a ambos lados */
  gap: 20px; /* margen entre anuncios y contenido */
}

.anuncio-lateral {
  position: fixed;
  top: 150px; /* Ajusta según el header */
  width: 200px;  /* Más ancho */
  height: 600px; /* Ajusta según contenido */
  background-color: #222;
   height: calc(100vh - 400px);
  border-radius: 10px;
  box-shadow: 0 0 10px #000;
  z-index: 100;
  padding: 10px;
  color: white;
  font-size: 0.9em;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Anuncios pegados al borde exterior */
.anuncio-izquierdo {
  left: 20px;  /* Pequeño margen desde el borde izquierdo */
}

.anuncio-derecho {
  right: 20px; /* Pequeño margen desde el borde derecho */
}




/* Añadir esta clase para envolver todo el contenido */
.wrapper {
  max-width: 1100px;  /* ancho máximo contenido */
  margin: 0 auto;     /* centrado horizontal */
  position: relative; /* para referencia de sticky hijos */
  padding-top: 6%;
 padding-bottom: 25%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contenedor-juegos {
    display: flex;
    flex-direction: column;
    gap: 25px;
    text-align: center;
    width: 800px; /* dejar espacio para anuncios */
     max-width: 100%;
     flex-shrink: 0;
     margin: 0 auto;
}
@media (max-width: 1270px) {
  .anuncio-lateral {
    display: none;
  }
}
@media (max-width: 1100px) {
 .anuncios-laterales-contenedor {
     max-width: 900px;
 }
 .wrapper {
  max-width: 900px; 
   padding-bottom: 45%;
 }
}
@media (max-width: 900px) {
 .anuncios-laterales-contenedor {
     max-width: 500px;
 }
 .wrapper {
  max-width: 500px; 
   padding-bottom: 45%;
 }
}
@media (max-width: 600px) {
 .anuncios-laterales-contenedor {
     max-width: 400px;
 }
 .wrapper {
  max-width: 400px; 
   padding-bottom: 65%;
 }
}
@media (max-width: 400px) {
 .anuncios-laterales-contenedor {
     max-width: 320px;
 }
 .wrapper {
  max-width: 320px; 
   padding-bottom: 65%;
 }
}
.juego {
    background-color: #1e1e1e;
    border: 2px solid #444;
    border-radius: 18px;
    padding: 25px 40px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.juego:hover {
    transform: translateY(-3px) scale(1.03);
    background-color: #2a2a2a;
    border-color: #2978b5;
}
.new-tag {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #36ee61cc; /* verde más claro y vibrante */
    color: white;
    font-weight: 700;
    font-size: 0.9em;
    padding: 6px 10px;
    border-radius: 6px;
    box-shadow: 0 0 12px #36ee61cc, 0 0 4px #000 inset;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 10;
    transform: rotate(-8deg);
    animation: brillar 1.4s infinite alternate;
}

/* Efecto de brillo animado */
@keyframes brillar {
  from {
    box-shadow: 0 0 12px #36ee61cc, 0 0 4px #000 inset;
  }
  to {
    box-shadow: 0 0 18px #36ee61cc, 0 0 8px #000 inset;
  }
}
.juego a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-size: 1.5em;
    font-weight: 600;
}

.juego-icono {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
    border-radius: 12px;
    object-fit: cover;
    transition: transform 0.2s;
}

.juego:hover .juego-icono {
    transform: scale(1.1);
}

.logo-link {
    text-decoration: none; /* Eliminar el subrayado del enlace */
    display: inline-block; /* Asegurarse de que el enlace abarque el logo completo */
}

.info-icon {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #0ff;
    color: white;
    font-size: 18px;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
    margin-left: 20px;
    transition: background-color 0.3s;
  }
  
  .info-icon:hover {
    background-color: #ff5733; /* Cambio de color al pasar el ratón */
  }
  
  /* Estilos del desplegable de la explicación */
  .info-icon {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #3a3a3a; /* Gris oscuro acorde a la página */
    color: white;
    font-size: 18px;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
    margin-left: 40px; /* Lo movemos un poco más a la derecha */
    transition: background-color 0.3s;
  }
  
  .info-icon:hover {
    background-color: #0a74b6; /* Azul oscuro para el hover */
  }
  
  /* Estilos del desplegable de la explicación */
  .game-info {
    display: none; /* Oculto por defecto */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    max-width: 80%;
    max-height: 80%;
    overflow-y: auto;
    color: white;
    z-index: 9999;
    animation: fadeIn 0.5s ease;
  }
  
  .game-info .info-content {
    position: relative;
  }
  
  .game-info h2 {
    font-size: 24px;
    margin-bottom: 10px;
  }
  
  .game-info p {
    font-size: 18px;
    line-height: 1.5;
  }
  
  /* Botón de cerrar */
  .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 30px;
    color: white;
    cursor: pointer;
  }
  
  /* Animación de aparición del desplegable */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translate(-50%, -60%);
    }
    to {
      opacity: 1;
      transform: translate(-50%, -50%);
    }
  }

  .racha-contador {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #000;
    color: #fff;
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
  }
  .mensaje-racha {
    color: orange;
    font-size: 1.2em;
    font-weight: bold;
    animation: aparecer 0.5s ease-in-out;
}

.overlay-juegos {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8); /* Fondo oscuro del overlay */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.ventana-juegos {
  background: #2c2c2c; /* Gris oscuro en lugar del blanco */
  border: 4px solid #003366; /* Borde azul oscuro */
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 0 25px #003366aa;
  animation: zoomIn 0.6s ease;
  max-width: 95%;
  width: 600px;
  max-height: 90%;
  overflow-y: auto;
}

.ventana-juegos h2 {
  font-size: 28px;
  color: #ffffff;
  margin-bottom: 10px;
}

.ventana-juegos p {
  font-size: 18px;
  margin-bottom: 25px;
  color: #dddddd;
}

.botones-juegos {
  display: flex;
  flex-direction: column; /* Uno debajo de otro */
  align-items: center;
  gap: 20px;
  margin-top: 15px;
}

.juego-btn {
  background-color: #003366;
  color: white;
  padding: 20px 30px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: bold;
  font-size: 20px;
  width: 100%; /* Ocupa el ancho del contenedor */
  max-width: 500px;
  box-shadow: 0 0 10px #00336677;
  transition: transform 0.3s, background-color 0.3s;
  box-sizing: border-box;
}
.juego-btn:hover {
  background-color: #005599;
  transform: scale(1.03);
}

.cerrar-juegos {
  margin-top: 30px;
  padding: 12px 20px;
  background-color: #777;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  transition: background-color 0.3s;
}
.cerrar-juegos:hover {
  background-color: #555;
}

@keyframes zoomIn {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 700px) {
  .ventana-juegos {
    width: 90%;
    padding: 25px 20px;
  }

  .juego-btn {
    font-size: 18px;
    padding: 16px 24px;
  }

  .ventana-juegos h2 {
    font-size: 22px;
  }

  .ventana-juegos p {
    font-size: 16px;
  }
}
@media (max-width: 600px) {
  .ventana-juegos {
    width: 80%;
    padding: 20px 15px;
  }

  .juego-btn {
    font-size: 16px;
    padding: 14px 20px;
    width: 100%; /* Ocupa el ancho del contenedor */
    max-width: 400px;
  }

  .ventana-juegos h2 {
    font-size: 20px;
  }

  .ventana-juegos p {
    font-size: 15px;
  }
}
@media (max-width: 530px) {
  .ventana-juegos {
    width: 80%;
    padding: 20px 15px;
  }

  .juego-btn {
    font-size: 14px;
    padding: 14px 20px;
    width: 100%; /* Ocupa el ancho del contenedor */
    max-width: 300px;
  }

  .ventana-juegos h2 {
    font-size: 20px;
  }

  .ventana-juegos p {
    font-size: 15px;
  }
}

@media (max-width: 400px) {
  .ventana-juegos {
    width: 80%;
    padding: 20px 15px;
  }

  .juego-btn {
    font-size: 13px;
    padding: 14px 20px;
    width: 100%; /* Ocupa el ancho del contenedor */
    max-width: 250px;
  }

  .ventana-juegos h2 {
    font-size: 20px;
  }

  .ventana-juegos p {
    font-size: 15px;
  }
}


@keyframes aparecer {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media screen and (max-width: 850px) {


    /* Ajusta el tamaño del campo de búsqueda */
    .search-input {
        font-size: 16px;
        padding: 15px;
    }

    /* Reduce el tamaño de las celdas */
    .celda,
    #letreros .letrero {
        width: 80px; /* Reducido proporcionalmente */
        height: 80px; /* Mantiene la proporción cuadrada */
        font-size: 14px; /* Ajuste en el tamaño del texto */
    }

    /* Ajusta el tamaño de la fila de los resultados */
    .fila-cantante {
        font-size: 14px; /* Reduce el tamaño de texto dentro de la fila */
        gap: 5px; /* Menos espacio entre las celdas */
    }




}
@media screen and (max-width: 690px) {

    #letreros {
        padding-top: 20px;
    }
    .search-input {
        font-size: 14px; /* Menor tamaño en el input */
        padding: 12px; /* Menos padding */
    }

    .celda,
    #letreros .letrero {
        width: 70px; /* Reducido aún más */
        height: 70px;
        font-size: 12px; /* Aún más pequeño */
    }

    .fila-cantante {
        font-size: 12px; /* Ajuste adicional */
        gap: 3px; /* Menos espacio entre las celdas */
    }


}

@media screen and (max-width: 575px) {

    #letreros {
        padding-top: 15px;
    }
    .search-input {
        font-size: 12px; /* Menor tamaño en el input */
        padding: 10px; /* Menos padding */
    }

    .celda,
    #letreros .letrero {
        width: 60px; /* Reducido más */
        height: 60px;
        font-size: 10px; /* Texto más pequeño */
    }

    .fila-cantante {
        font-size: 10px; /* Ajuste en el tamaño del texto */
        gap: 2px; /* Menos espacio entre las celdas */
    }


}
@media screen and (max-width: 525px) {

    #resultados {
        margin-top: 1px;
    }
    .search-input {
        font-size: 10px; /* Aún más pequeño */
        padding: 8px; /* Menos padding */
    }
    #letreros {
        padding-top: 10px;
    }
    .celda,
    #letreros .letrero {
        width: 50px; /* Más pequeño */
        height: 50px;
        font-size: 8px; /* Texto aún más pequeño */
    }

    .fila-cantante {
        font-size: 8px; /* Ajuste adicional en el tamaño del texto */
        gap: 1px; /* Menos espacio entre las celdas */
    }

}

@media screen and (max-width: 430px) {

 

    .search-input {
        font-size: 10px; /* Más pequeño */
        padding: 6px; /* Menos padding */
    }

    .celda,
    #letreros .letrero {
        width: 40px; /* Más pequeño */
        height: 40px;
        font-size: 9px; /* Más pequeño */
    }

    .fila-cantante {
        font-size: 9px; /* Texto más pequeño */
        gap: 1px; /* Menos espacio entre las celdas */
    }



    /* Reducir el espacio entre la barra de búsqueda y los divs */
    .main-container {
        margin-top: 10px; /* Reducido el margen superior */
    }
}
@media screen and (max-width: 370px) {

    .search-input {
        font-size: 10px; /* Más pequeño */
        padding: 4px; /* Menos padding */
    }

    .celda,
    #letreros .letrero {
        width: 35px; /* Aún más pequeño */
        height: 35px;
        font-size: 8px; /* Más pequeño */
    }

    .fila-cantante {
        font-size: 8px; /* Texto más pequeño */
        gap: 1px; /* Espacio mínimo */
    }


    /* Reducir el espacio entre la barra de búsqueda y los divs */
    .main-container {
        margin-top: 5px; /* Más pequeño */
    }
}

@media (max-width: 500px) {
    .contenedor-juegos {
        gap: 15px;
        padding: 0 10px;
    }

    .juego {
        padding: 18px 25px;
        border-radius: 14px;
    }

    .juego a {
        font-size: 1.2em;
    }

    .juego-icono {
        width: 50px;
        height: 50px;
        margin-bottom: 8px;
    }
}