/* --- GLOBAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #0a0a0a;
    color: white;
    scroll-behavior: smooth;
    /* Mantiene el desplazamiento suave */
}

/* SOLUCIÓN AL PROBLEMA DE LAS SECCIONES OCULTAS */
section[id] {
    scroll-margin-top: 100px;
    /* Evita que el header sticky tape los títulos */
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.titulo-seccion {
    font-size: 32px;
    color: #ee700a;
    margin-bottom: 30px;
    text-transform: uppercase;
    text-align: center;
}

/* --- HEADER --- */
header {
    position: relative;
    min-height: 15vh;
    /* Mantenemos el oscurecido para que el menú resalte */
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('Imagenes/IMG_SONIDO.jpeg');

    /* Hacemos la imagen un poco más grande (120%) para tener margen de movimiento */
    background-size: 110% 100%;
    background-position: left center;
    background-repeat: no-repeat;
    background-color: #0a0a0a;

    padding: 0 40px;
    border-bottom: 2px solid #ee700a;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 100px;
    display: flex;
    align-items: center;

    /* ANIMACIÓN: 15 segundos, suave (ease-in-out), infinita y ALTERNADA (va y vuelve) */
    animation: movimientoVaiven 15s ease-in-out infinite alternate;
}

/* Definición del movimiento de un lado al otro */
@keyframes movimientoVaiven {
    from {
        background-position: left center;
    }

    to {
        background-position: right center;
    }
}


.menu {
    display: flex;
    justify-content: space-between;
    /* Esto empuja el logo a la izquierda y el menú a la derecha */
    align-items: center;
    width: 100%;
    /* Obligatorio para que se reparta el espacio */
    max-width: 1400px;
    margin: 0 auto;
}

.logo-img {
    height: 100px;
    /* Ajuste leve para que luzca mejor con la onda */
    display: block;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 25px;
    background: rgba(0, 0, 0, 0.6);
    /* Oscurece el fondo detrás de las letras */
    padding: 10px 20px;
    border-radius: 50px;
}

.navbar a {
    text-decoration: none;
    color: #fff;
    transition: 0.3s;
}

.navbar a:hover {
    color: #ffcc00;
}

#menu-btn {
    display: none;
}

.menu-icono {
    display: none;
    cursor: pointer;
}



/* --- REPRODUCTOR --- */
.player-bar {
    background: #1a1a1a;
    /* Un gris muy oscuro casi negro para que sea discreto */
    padding: 20px 0;
    transition: background 0.5s;
}

.player-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.status-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 15px;
    border-radius: 20px;
}

.piloto {
    width: 12px;
    height: 12px;
    background: #444;
    border-radius: 50%;
}

.piloto-activo {
    background: #0ad314;
    box-shadow: 0 0 10px #0ad314;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    50% {
        opacity: 0.5;
    }
}

.audio-player {
    filter: invert(100%);
    height: 35px;
}

/* --- HERO --- */
.hero {
    position: relative;
    min-height: 78vh;
    /* Aumentamos un poco la altura mínima */
    background: url('Imagenes/fondo-artguru.jpeg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    /* Centrado vertical */
    justify-content: center;
    /* Centrado horizontal */
}

.hero-overlay {
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.6);
    /* Eliminamos el padding fijo de 270px que causaba el desajuste */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 23vh 20px;
    /* Se ajusta mejor al alto de la pantalla */
    /* Padding ligero para móviles */
}

.hero-content {
    text-align: center;
    max-width: 900px;
    width: 100%;
}

.hero h1 {
    font-size: 53px;
    color: #ee700a;
    margin-bottom: 17px;
    text-transform: uppercase;
    text-shadow: 2px 2px 8px #000;
}

.hero p {
    font-size: 25px;
    margin-bottom: 35px;
    line-height: 1.4;
    color: #f0f0f0;
}

.btn-info {
    display: inline-block;
    padding: 12px 30px;
    background: #cfbd1b;
    color: #000;
    text-decoration: none;
    border-radius: 7px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-info:hover {
    background: #e6b800;
    transform: scale(1.05);
}

/* --- PROGRAMACIÓN --- */
.programacion-container {
    padding: 80px 0;
    background: #0a0a0a;
}

.grid-programas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card-programa {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 10px;
    border-left: 6px solid #cfbd1b;
    text-align: left;
}

.card-programa span {
    color: #fff;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.card-programa h3 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 10px;
}

/* --- TOP 5 --- */
.top5-section {
    padding: 80px 0;
    background: #111;
}

.top5-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.top-item {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    border-bottom: 5px solid #ee700a;
    position: relative;
    transition: 0.3s;
}

.top-item:hover {
    transform: translateY(-8px);
}

.top-img-container {
    height: 180px;
    overflow: hidden;
}

.top-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.6);
    transition: 0.5s;
}

.top-item:hover .top-img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.1);
}

.top-info {
    padding: 15px;
    text-align: center;
}

.top-info h4 {
    color: #ee700a;
    font-size: 17px;
    margin-bottom: 5px;
}

.mini-player {
    width: 100%;
    height: 30px;
    filter: invert(100%);
    margin-top: 8px;
}

.rank {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ee700a;
    color: white;
    padding: 3px 10px;
    border-radius: 5px;
    font-weight: bold;
    z-index: 5;
}

/* --- PANELISTAS --- */
.staff-section {
    padding: 80px 0;
    background: #0a0a0a;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.staff-card {
    background: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    border-bottom: 6px solid #ee700a;
    transition: 0.3s;
}

.staff-img-container img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    filter: grayscale(100%);
    transition: 0.4s;
}

.staff-card:hover img {
    filter: grayscale(0%);
}

.staff-info {
    padding: 25px;
    text-align: center;
}

/* --- CONTACTO --- */
.contacto-section {
    padding: 80px 0;
    background: #0a0a0a;
}

.contacto-wrapper {
    max-width: 650px;
    margin: 0 auto;
    background: #161616;
    padding: 40px;
    border-radius: 15px;
}

.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    gap: 15px;
}

.contacto-form input,
.contacto-form textarea {
    width: 100%;
    padding: 15px;
    background: #000;
    border: 1px solid #333;
    color: #fff;
    border-radius: 8px;
    font-family: inherit;
}

/* --- SOCIAL MEDIA --- */
.social-media-bar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.social-media-bar img {
    width: 38px;
    transition: 0.3s;
}

.social-media-bar img:hover {
    transform: scale(1.2);
}

/* --- FOOTER --- */
footer {
    padding: 40px 0;
    text-align: center;
    background: #000;
    color: #666;
    font-size: 14px;
}

/* --- RESPONSIVE --- */
@media (max-width: 1100px) {
    .top5-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 18px;
    }

    .menu-icono {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #0a0a0a;
        height: 0;
        overflow: hidden;
        transition: 0.3s;
    }

    #menu-btn:checked~.navbar {
        height: 260px;
    }

    .navbar ul {
        flex-direction: column;
        padding: 20px;
    }

    .top5-list {
        grid-template-columns: repeat(1, 1fr);
    }

    .input-group {
        flex-direction: column;
    }
}

/* --- ESTILOS PUBLICIDAD PRISMA --- */
.publicidad-container {
    padding: 40px 0;
    /* Espaciado entre las secciones superiores e inferiores */
    background: #0a0a0a;
}

.grid-publicidad {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Crea las 4 columnas */
    gap: 20px;
    /* Espacio entre las imágenes */
}

.item-publicidad {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 10px;
    border: 1px solid #333;
    /* Borde sutil como tus cards */
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-publicidad img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    filter: grayscale(30%);
    /* Un toque elegante */
    transition: 0.3s;
}

.item-publicidad:hover {
    border-color: #ee700a;
    /* Resalta con el naranja de Prisma */
    transform: translateY(-5px);
}

.item-publicidad:hover img {
    filter: grayscale(0%);
}

/* Ajuste para tablets y celulares (Responsive) */
@media (max-width: 992px) {
    .grid-publicidad {
        grid-template-columns: repeat(2, 1fr);
        /* 2x2 en tablets */
    }
}

@media (max-width: 480px) {
    .grid-publicidad {
        grid-template-columns: 1fr;
        /* Una sola fila en celulares */
    }
}


/* --- MEJORAS SEGURAS (Añadir al final de style.css) --- */

/* Hace que el texto EN VIVO brille suavemente */
.en-vivo-text {
    animation: resplandor 2s ease-in-out infinite;
    font-weight: bold;
}

@keyframes resplandor {

    0%,
    100% {
        opacity: 1;
        text-shadow: 0 0 5px #fff;
    }

    50% {
        opacity: 0.6;
        text-shadow: 0 0 15px #ff0000;
        color: #ff4d4d;
    }
}

/* Efecto de elevación en tus tarjetas de programación */
.card-programa {
    transition: all 0.3s ease;
}

.card-programa:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(238, 112, 10, 0.3);
    border-color: #fff;
}