/* Reset y estilos base - Tema NBMX (inspirado en Netflix) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
}

/* Navegación superior - Estilo NBMX */
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.8);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-left a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.logo {
    font-weight: bold;
    font-size: 18px;
    color: #DAA520; /* Amarillo mostaza */
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-icon, .profile-icon {
    width: 24px;
    height: 24px;
    background-color: #fff;
    border-radius: 50%;
}

/* Banner principal - Hero NBMX-style */
.hero-banner {
    position: relative;
    height: 70vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('../images/sliders/slider2.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 60px;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hero-logo {
    max-width: 100%;
    height: auto;
    max-height: 200px; /* Límite para no desbordar en móvil */
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(218, 165, 32, 0.5); /* Glow amarillo mostaza sutil */
}

.hero-title {
    font-size: 4rem;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #ccc;
}

/* Sección de reproductor interactivo (ahora con iframe de YouTube) */
.video-player-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.player-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #fff;
    font-weight: bold; /* Bold para "ESTRENO" */
    text-transform: uppercase; /* Mayúsculas */
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.video-player {
    width: 100%;
    height: 450px;
    border: none; /* Para iframe */
}

/* Carrusel horizontal de categorías (una sola fila con scroll responsivo) */
.categories-carousel {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative; /* Para posicionar flechas */
}

.carousel-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #fff;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8); /* Sombra sutil */
}

.categories-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.categories-scroll {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1; /* Ocupa el espacio disponible */
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.category-img {
    flex: 0 0 150px; /* Ancho fijo en desktop */
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    scroll-snap-align: start;
    border: 2px solid transparent;
}

.category-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #DAA520; /* Glow amarillo mostaza */
}

/* Carrusel de Estaciones de Radio */
.radio-carousel {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.radio-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.radio-scroll {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
}

.radio-scroll::-webkit-scrollbar {
    display: none;
}

.radio-img {
    flex: 0 0 150px; /* Igual que categorías */
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    scroll-snap-align: start;
    border: 2px solid transparent;
    position: relative;
}

.radio-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #DAA520; /* Glow amarillo mostaza */
}

.radio-img::after {
    content: attr(data-tooltip); /* Tooltip con nombre + descripción */
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 5;
}

.radio-img:hover::after {
    opacity: 1;
}

/* Nuevo Carrusel de Top 12 Videos */
.music-carousel {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.music-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.music-scroll {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
}

.music-scroll::-webkit-scrollbar {
    display: none;
}

.music-img {
    flex: 0 0 150px; /* Igual que categorías */
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    scroll-snap-align: start;
    border: 2px solid transparent;
    position: relative;
}

.music-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #DAA520; /* Glow amarillo mostaza */
}

.music-img::after {
    content: attr(data-tooltip); /* Tooltip con título + descripción */
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 5;
}

.music-img:hover::after {
    opacity: 1;
}

/* Flechas de navegación (comunes para todos los carruseles) */
.arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
    transition: background 0.3s, box-shadow 0.3s;
    border-radius: 50%;
    z-index: 10;
    opacity: 0; /* Oculto por defecto, aparece en hover */
}

.arrow-btn:hover {
    background: #DAA520;
    box-shadow: 0 0 10px #DAA520;
}

.arrow-left {
    left: 10px;
}

.arrow-right {
    right: 10px;
}

.categories-wrapper:hover .arrow-btn,
.radio-wrapper:hover .arrow-btn,
.music-wrapper:hover .arrow-btn {
    opacity: 1; /* Visible en hover del wrapper */
}

/* Sección de tarjetas en páginas de categorías */
.cards-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #333;
    cursor: pointer;
    transition: transform 0.3s, border 0.3s;
    border: 2px solid transparent;
}

.card:hover {
    transform: scale(1.05);
    border-color: #DAA520; /* Borde amarillo mostaza en hover */
}

.card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.card-title {
    padding: 10px;
    font-size: 1rem;
    color: #fff;
    text-align: center;
}

/* Lightbox para videos y audio - NBMX vibe */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95); /* Más oscuro */
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

#lightbox-content {
    text-align: center;
    max-width: 800px;
    width: 90%;
}

.lightbox-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.lightbox-subtitle {
    color: #ccc;
    margin-bottom: 20px;
    font-size: 1rem;
}

.lightbox-video,
.lightbox-audio,
.lightbox-youtube {
    width: 100%;
    max-width: 600px;
    height: 400px; /* Altura fija para embeds */
    border-radius: 8px;
    box-shadow: 0 0 50px #DAA520; /* Glow amarillo mostaza */
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 2001;
}

.close-lightbox:hover {
    color: #DAA520;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    text-align: center;
    border-top: 1px solid #DAA520;
    margin-top: 40px;
}

.footer p {
    margin-bottom: 10px;
    color: #ccc;
}

.footer-link {
    color: #DAA520; /* Amarillo mostaza para enlaces */
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #fff;
}

/* Responsividad - Carrusel adaptativo y logo */
@media (max-width: 768px) {
    .nav-bar { padding: 10px; flex-wrap: wrap; }
    .nav-left { gap: 10px; font-size: 12px; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .hero-logo { max-height: 150px; } /* Más compacto en móvil */
    .video-player { height: 250px; }
    .arrow-btn { display: none; } /* Oculta flechas en touch/móvil */
    .category-img, .radio-img, .music-img { 
        flex: 0 0 calc(100vw - 40px); /* Una por slide en tablet/móvil: ancho casi completo (menos padding) */
        height: 200px; 
        max-width: 300px; /* Límite para tablets */
    }
    .cards-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
    .card img { height: 250px; }
    .lightbox-video, .lightbox-audio, .lightbox-youtube { max-width: 100%; height: 250px; }
    .footer { padding: 10px; }
    .footer p { font-size: 0.9rem; }
}

@media (max-width: 480px) {
    .hero-banner { height: 50vh; }
    .hero-title { font-size: 2rem; }
    .hero-logo { max-height: 120px; } /* Aún más compacto en celular */
    .video-player { height: 200px; }
    .category-img, .radio-img, .music-img { 
        flex: 0 0 90vw; /* En celular pequeño: 90% del viewport para mejor touch y bordes */
        height: 150px; 
    }
    .cards-grid { grid-template-columns: 1fr; }
    .lightbox-video, .lightbox-audio, .lightbox-youtube { height: 200px; }
}