body {
    font-family: Arial, sans-serif;
    text-align: center;

    background-image: url('bg.jpg'); /* Usa la imagen de fondo */
    background-size: cover; /* Ajusta la imagen para cubrir toda la pantalla */
    background-position: center; /* Centra la imagen */
    background-repeat: no-repeat; /* Evita que la imagen se repita */
    background-attachment: fixed; /* Mantiene la imagen estática al hacer scroll */
}

.bi {
    font-size: 40px; /* Ajusta el tamaño según lo necesites */
}

.icono-movimiento-sube {
    color: #32CD32; /* Verde lima brillante */
    -webkit-text-stroke: 2px #32CD32; /* Grosor del trazo */
    text-shadow: 3px 2px black;
}

.icono-movimiento-baja {
    color: #E63946; /* Rojo coral intenso */
    -webkit-text-stroke: 2px #e63946; /* Grosor del trazo */
    text-shadow: 3px 2px black;
}

.icono-movimiento-igual {
    color: #404040; /* Gris carbón oscuro */
    -webkit-text-stroke: 2px #404040; /* Grosor del trazo */
    text-shadow: 3px 2px black;
}

.icono-movimiento-nuevo {
    color: #fbff0e; /* Naranja ámbar eléctrico */
    -webkit-text-stroke: 2px #fbff0e; /* Grosor del trazo */
    text-shadow: 3px 2px black;
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

.header img {
    width: 50%; /* Para que no se salga del área en pantallas pequeñas */
    height: auto; /* Mantiene proporciones correctas */
}

#ranking {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cancion {
    display: flex;
    background-color: rgba(241, 249, 255, 0.6);
    
    align-items: center;
    gap: 15px;
    width: 85%;
    min-height: 180px; /* Se aumentó la altura */
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 2px 2px 10px rgba(255, 255, 255, 0.3);
    border: 0px solid black; /* Borde negro */

    /* Fondo de la tarjeta con la imagen de la canción */
    position: relative;
    background-size: cover;
    background-position: center;
}

.cancion::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    opacity: 0.1; /* Opacidad más transparente */
    z-index: -1;
}

.posicion {
    font-size: 26px;
    font-weight: bold;
    color: #000;
}

.cancion img {
    width: 175px;
    height: 175px;
    border: #ccc 3px solid;
    object-fit: cover;
    border-radius: 5px;
}

.info {
    flex-grow: 1;
    text-align: left;
}

.detalles {
    display: flex;
    flex-direction: column; /* Cada ítem en su propia línea */
    gap: 8px;
    margin-right: 5%;
}

.detalle-item {
    display: flex;
    align-items: center; /* Asegura que el ícono y el número estén bien alineados */
    justify-content: space-between;
    width: 100%;
    font-size: 24px;
    color: #555;
}

.detalle-item i {
    flex-shrink: 0; /* Evita que el ícono se deforme */
    font-size: 30px; /* Tamaño uniforme para todos los íconos */
    margin-right: 10px; /* Espacio entre el ícono y el número */
}

.numero-detalles {
    font-size: 26px;
    font-weight: bold;
    color: #333;
}

button {
    background-color: #d10000;
    color: white;
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 20px;
}

button:hover {
    background-color: #0056b3;
}

@media (max-width: 768px) {
  .cancion img {
    width: 85px;
    height: 85px;
    border: #ccc 3px solid;
    object-fit: cover;
    border-radius: 5px;
}
.detalle-item {
    display: flex;
    align-items: center; /* Asegura que el ícono y el número estén bien alineados */
    justify-content: space-between;
    width: 100%;
    font-size: 14px;
    color: #555;
}

.detalle-item i {
    flex-shrink: 0; /* Evita que el ícono se deforme */
    font-size: 20px; /* Tamaño uniforme para todos los íconos */
    margin-right: 5px; /* Espacio entre el ícono y el número */
}

.numero-detalles {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.cancion {
    display: flex;
    background-color: rgba(241, 249, 255, 0.6);
    
    align-items: center;
    gap: 10px;
    width: 95%;
    min-height: 180px; /* Se aumentó la altura */
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 2px 2px 10px rgba(255, 255, 255, 0.3);
    border: 0px solid black; /* Borde negro */

    /* Fondo de la tarjeta con la imagen de la canción */
    position: relative;
    background-size: cover;
    background-position: center;
}
.header img {
    width: 75%; /* Para que no se salga del área en pantallas pequeñas */
    height: auto; /* Mantiene proporciones correctas */
}

  }

