/* style.css - BASEADO EN RANKINGNOVA.BLOGSPOT.COM */

:root {
    --accent: #1e40ad; /* Azul Nova */
    --red-nova: #dc2626; /* Rojo Botón */
    --muted: #64748b;
    --background: #f8fafc;
    --text-color: #0f172a;
    --gold: #ffcc00;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: var(--background);
    color: var(--text-color);
}

/* =======================
   HEADER (BARRA AZUL)
   ======================= */
#radio-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: var(--accent);
    height: 20px;
    z-index: 9999;
}

/* =======================
   TOPBAR (LOGO Y PLAYER)
   ======================= */
#radio-topbar {
    position: fixed;
    top: 20px;
    left: 0; right: 0;
    background: var(--accent); /* Fondo Azul según tu código */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    z-index: 9990;
    padding: 0 40px;
}

#radio-logo img {
    height: 125px;
    max-width: 325px;
    /* Ajuste para que se vea bien centrado */
    margin-top: 10px; 
}

/* =======================
   BOTÓN FILIALES (TRUCO)
   ======================= */
.filial-wrapper {
    position: absolute;
    left: 10%; /* Posición según tu diseño original aprox */
    top: 50%;
    transform: translateY(-50%);
    z-index: 10000;
}

/* El select real es invisible pero clicable */
#filialSelect {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

/* El botón visual rojo */
#btn-filiales-visual {
    background-color: var(--red-nova);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    pointer-events: none; /* Para que el click pase al select */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.filial-wrapper:hover #btn-filiales-visual {
    background-color: #b91c1c;
}

/* =======================
   REPRODUCTOR DERECHA
   ======================= */
#radio-player {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
}

.play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background-color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.play-btn:hover { background-color: #f87171; }
.play-btn img { width: 30px; height: 30px; object-fit: contain; }

.info { min-width: 150px; text-align: left; }

.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    max-width: 180px;
    font-size: 12px;
    color: white;
}

.marquee-text {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 15s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

.live-badge {
    color: #f87171;
    font-weight: 900;
    font-size: 12px;
    animation: blink 2.5s infinite;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0; }
}

/* MENÚ HAMBURGUESA */
#menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

/* =======================
   NAVEGACIÓN
   ======================= */
nav#main-nav {
    position: sticky;
    top: 140px; /* Debajo del header */
    background: white;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
    z-index: 900;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

nav a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
}

nav a.primary, nav a:hover {
    background: var(--accent);
    color: white;
}

/* =======================
   SECCIÓN VOTACIONES
   ======================= */
.main-content {
    margin-top: 20px; /* Separación del menú */
    padding-bottom: 50px;
}

.hero-title {
    text-align: center;
    padding: 40px 20px;
}

.hero-title h1 {
    color: var(--accent);
    font-size: 2.5rem;
    margin: 0;
}

.categoria-container {
    max-width: 1200px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
}

.titulo-categoria {
    background: var(--accent);
    color: white;
    padding: 15px;
    text-align: center;
    text-transform: uppercase;
    font-size: 1.5rem;
    border-radius: 8px;
    margin-bottom: 30px;
    border-bottom: 4px solid var(--red-nova);
}

.grid-nominados {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.card:hover { transform: translateY(-5px); box-shadow: 0 10px 15px rgba(0,0,0,0.1); }

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-info { padding: 20px; }

.card h3 {
    margin: 0 0 5px 0;
    color: var(--accent);
    font-size: 1.1rem;
}

.card p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.btn-votar {
    background-color: var(--red-nova);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-votar:hover {
    background-color: #991b1b;
    transform: scale(1.05);
}

/* =======================
   RESPONSIVO (MÓVIL)
   ======================= */
@media (max-width: 768px) {
    #radio-topbar {
        height: auto;
        padding: 10px 20px;
        justify-content: space-between;
        position: fixed;
        top: 20px; /* Pegado a la barra azul */
    }

    #radio-logo img { height: 60px; margin: 0; }
    
    .filial-wrapper { display: none; } /* Ocultar filiales en móvil si no cabe */
    
    #radio-player { position: static; transform: none; }
    .info, .live-badge { display: none; } /* Ocultar texto en móvil para espacio */
    
    #menu-toggle { display: block; margin-left: 15px; }

    nav#main-nav {
        display: none; /* Oculto por defecto */
        flex-direction: column;
        top: 80px;
        padding: 0;
    }
    nav#main-nav.open { display: flex; }
    nav a { padding: 15px; text-align: center; border-bottom: 1px solid #eee; }

    .main-content { margin-top: 100px; }
}