/* --- VARIABLES CSS (Paleta Minimalista & Urbana) --- */
:root {
    --bg-main: #ffffff; /* Blanco puro */
    --bg-secondary: #f8fafc; /* Gris/Azul muy claro (nube) */
    --bg-light-blue: #e0f2fe; /* Azul cielo muy flojito */
    --text-primary: #0f172a; /* Azul oscuro casi negro para leer bien */
    --text-secondary: #64748b; /* Gris azulado */
    --accent: #002db3; /* Azul fuerte de tu logo "FUSION" */
    --accent-hover: #1d4ed8; /* Azul intermedio */
    --header-height: 80px;
    --border-radius: 12px;
}

/* --- RESET & ESTILOS BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    padding-top: var(--header-height);
}

/* Tipografía Grafitera */
.graffiti-text {
    font-family: 'Permanent Marker', cursive;
    letter-spacing: 1px;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.accent { color: var(--accent); }
.section-pad { padding: 80px 0; }
.section-title { font-size: 2.5rem; margin-bottom: 40px; position: relative; color: var(--accent); text-align: center; }
.section-title::after {
    content: '';
    position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%);
    width: 60px; height: 4px; background-color: var(--text-primary);
    border-radius: 2px;
}

/* Alineación de títulos para secciones no centradas */
#programacion .section-title, #trabajo .section-title, #publicidad .section-title { text-align: left; }
#programacion .section-title::after, #trabajo .section-title::after, #publicidad .section-title::after { left: 0; transform: none; }

.bg-light-blue { background-color: var(--bg-light-blue); }

/* --- BOTONES --- */
.btn {
    padding: 12px 30px; border-radius: 30px; font-weight: 700;
    cursor: pointer; border: none; transition: 0.3s;
    text-transform: uppercase; letter-spacing: 1px;
}
.btn-primary { 
    background-color: var(--accent); 
    color: #ffffff; 
    box-shadow: 4px 4px 0px var(--text-primary); /* Toque urbano/brutalista */
}
.btn-primary:hover { 
    background-color: var(--accent-hover); 
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--text-primary);
}

/* --- HEADER PRINCIPAL --- */
.main-header {
    position: fixed; top: 0; left: 0;
    width: 100%; height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--bg-light-blue);
    z-index: 1000;
    display: flex; align-items: center;
}

.header-content {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; 
    gap: 15px; 
}

.logo-container {
    flex-shrink: 0; 
}
.logo-container img {
    height: 55px; 
    width: auto;  
    object-fit: contain;
}

.main-nav ul { 
    display: flex; 
    gap: 15px; 
}
.main-nav li {
    white-space: nowrap; 
}
.main-nav a { 
    font-weight: 700; 
    font-size: 0.85rem; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    color: var(--text-primary);
}
.main-nav a:hover, .main-nav a.active { color: var(--accent); }

.menu-toggle { display: none; font-size: 1.8rem; cursor: pointer; color: var(--accent); }

/* --- REPRODUCTOR (Escritorio) --- */
.mini-player {
    display: flex; align-items: center; gap: 15px; 
    background-color: #ffffff;
    padding: 6px 15px; 
    border-radius: 30px;
    border: 2px solid var(--bg-light-blue);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    flex-shrink: 0; 
}
.track-info { display: flex; flex-direction: column; font-size: 0.75rem; margin-right: 5px; }
.track-info .label { color: var(--accent); font-weight: 800; font-size: 0.7rem;}
.track-info .track-name { white-space: nowrap; max-width: 130px; overflow: hidden; text-overflow: ellipsis; font-weight: 600;}
.player-controls { display: flex; align-items: center; gap: 10px; }
.btn-play {
    width: 36px; height: 36px; border-radius: 50%;
    background-color: var(--accent); color: #fff;
    border: none; font-size: 1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: 0.2s;
}
.btn-play:hover { transform: scale(1.05); background-color: var(--accent-hover); }
.volume-control { display: flex; align-items: center; gap: 5px; color: var(--text-primary); }
input[type=range] { width: 70px; accent-color: var(--accent); cursor: pointer;}

/* --- SECCIÓN HÉROE --- */
.hero-section {
    background: linear-gradient(135deg, var(--bg-light-blue) 0%, var(--bg-main) 100%);
    position: relative;
    overflow: hidden;
    padding-top: 60px;    
    padding-bottom: 120px; 
}
.hero-content { 
    max-width: 650px; 
    position: relative; 
    z-index: 2; 
}
.hero-content h5 { color: var(--accent); letter-spacing: 3px; margin-bottom: 10px; font-weight: 800; }
.hero-content h1 { font-size: 4.5rem; line-height: 1.1; margin-bottom: 20px; color: var(--text-primary); }
.hero-content p { font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 30px; font-weight: 500;}

/* --- SECCIÓN PROGRAMACIÓN --- */
.schedule-tabs { display: flex; gap: 10px; margin-bottom: 30px; overflow-x: auto; padding-bottom: 10px; }
.tab-btn {
    background: #ffffff; border: 2px solid var(--bg-light-blue);
    color: var(--text-secondary); padding: 10px 25px; border-radius: 20px;
    cursor: pointer; font-weight: 700; transition: 0.3s;
}
.tab-btn.active, .tab-btn:hover { background-color: var(--accent); color: #ffffff; border-color: var(--accent); }
.schedule-list { background-color: #ffffff; border-radius: var(--border-radius); box-shadow: 0 10px 30px rgba(0,0,0,0.03); border: 1px solid var(--bg-light-blue); }
.program-item { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--bg-light-blue); transition: 0.3s; }
.program-item:last-child { border-bottom: none; }
.program-left { display: flex; gap: 30px; align-items: center; }
.program-item .time { font-weight: 800; color: var(--accent); min-width: 100px; font-size: 1rem; }
.program-item .info h3 { margin: 0 0 5px 0; font-size: 1.1rem; color: var(--text-primary); font-weight: 700;}
.program-item .info .presenter { color: var(--text-secondary); font-size: 0.9rem; display: flex; align-items: center; gap: 5px; }

/* Badge EN VIVO animado */
.live-badge {
    background-color: #ef4444; color: white; padding: 5px 12px;
    font-size: 0.75rem; font-weight: 800; border-radius: 20px; letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4); animation: pulseLive 2s infinite; display: none;
}
.program-item.active-show { background-color: var(--bg-light-blue); border-left: 4px solid var(--accent); }
.program-item.active-show .live-badge { display: block; }
@keyframes pulseLive { 0% { opacity: 1; } 50% { opacity: 0.6; } 100% { opacity: 1; } }

/* --- TRABAJO & PUBLICIDAD --- */
.work-content p { margin-bottom: 15px; font-size: 1.1rem; color: var(--text-secondary); }
.bank-info { background: var(--bg-main); padding: 25px; border-radius: var(--border-radius); border-left: 5px solid var(--accent); margin-top: 30px; }
.bank-info h4 { color: var(--accent); font-size: 1.2rem; margin-bottom: 5px; }
.bank-info .account-number { font-size: 1.6rem; font-weight: 800; font-family: monospace; letter-spacing: 2px; color: var(--text-primary); margin: 0; }

.ad-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; align-items: flex-start; }

.ad-left h3 { color: var(--accent); font-size: 2.2rem; line-height: 1.3; font-weight: 800; }
.ad-right { background: #ffffff; padding: 40px; border-radius: var(--border-radius); box-shadow: 0 10px 30px rgba(0,0,0,0.03); border: 2px solid var(--bg-light-blue); }
.ad-right h4 { font-size: 1.4rem; margin-bottom: 20px; color: var(--text-primary); }
.ad-right p { color: var(--text-secondary); line-height: 1.7; }
.ad-right ul { margin: 20px 0 30px 0; list-style: none; }
.ad-right li { margin-bottom: 15px; display: flex; align-items: flex-start; gap: 15px; color: var(--text-secondary); font-weight: 500;}
.ad-right li i { color: var(--accent); font-size: 1.2rem; margin-top: 4px; }
.ad-contact { margin-top: 30px; padding-top: 25px; border-top: 2px solid var(--bg-light-blue); }
.ad-contact p { font-weight: 700; margin-bottom: 15px; color: var(--text-primary); }
.contact-link { display: block; font-size: 1.2rem; font-weight: 700; color: var(--accent); margin-bottom: 10px; transition: 0.3s; }
.contact-link:hover { color: var(--accent-hover); transform: translateX(5px); }
.contact-link i { width: 25px; }

/* --- SECCIÓN PATROCINADORES --- */
.sponsors-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.sponsor-link { display: block; }
.sponsor-logo {
    max-width: 220px; 
    max-height: 100px;
    object-fit: contain;
    filter: grayscale(100%); 
    opacity: 0.6; 
    transition: all 0.3s ease;
}
.sponsor-link:hover .sponsor-logo {
    filter: grayscale(0%); 
    opacity: 1; 
    transform: scale(1.05); 
}

/* --- FOOTER --- */
.main-footer { background-color: var(--bg-secondary); padding: 60px 0 20px; border-top: 2px solid var(--bg-light-blue);}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-info p, .footer-contact p { color: var(--text-secondary); margin-top: 15px; font-weight: 500;}
.footer-social h3, .footer-contact h3 { margin-bottom: 20px; color: var(--text-primary); font-family: 'Permanent Marker', cursive;}
.social-icons { display: flex; gap: 15px; flex-wrap: wrap;}
.social-icons a { width: 40px; height: 40px; background: #ffffff; border: 2px solid var(--bg-light-blue); display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--accent); transition: 0.3s;}
.social-icons a:hover { background: var(--accent); color: #ffffff; border-color: var(--accent);}
.footer-contact i { color: var(--accent); margin-right: 10px; }
.footer-bottom { text-align: center; color: var(--text-secondary); border-top: 1px solid var(--bg-light-blue); padding-top: 20px; font-size: 0.9rem; font-weight: 600;}

/* =========================================
   VERSIÓN MÓVIL
   ========================================= */
@media (max-width: 768px) {
    body { padding-top: 145px; }
    .header-content { gap: 0; }
    .menu-toggle { display: block; }

    .mini-player {
        position: fixed; top: var(--header-height); left: 0; width: 100%; height: 65px;
        border-radius: 0; border: none; border-bottom: 2px solid var(--bg-light-blue);
        background-color: #ffffff; justify-content: space-between; padding: 10px 20px;
        z-index: 999; box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    }

    .track-info .track-name { max-width: 100px; }

    .main-nav {
        position: fixed; top: 145px; left: 0; width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-bottom: 2px solid var(--bg-light-blue);
        max-height: 0; overflow: hidden; opacity: 0;
        transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out; z-index: 998;
    }

    .main-nav.show-mobile-menu { max-height: 500px; opacity: 1; box-shadow: 0 10px 20px rgba(0,0,0,0.05);}
    .main-nav ul { flex-direction: column; gap: 0; text-align: center; padding: 15px 0; }
    .main-nav li { width: 100%; white-space: normal; } 
    .main-nav a { display: block; padding: 15px 20px; font-size: 1.1rem; border-bottom: 1px solid var(--bg-light-blue); }
    .main-nav li:last-child a { border-bottom: none; }
    
    .hero-section {
        padding-top: 40px; 
        padding-bottom: 80px; 
    }
    .hero-content h1 { font-size: 3rem; margin-top: 20px; margin-bottom: 25px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .social-icons { justify-content: center; }
    .program-left { flex-direction: column; align-items: flex-start; gap: 5px; }
    .program-item { align-items: flex-start; }
    .live-badge { margin-top: 10px; }
    
    .ad-grid { grid-template-columns: 1fr; gap: 20px; }
    .ad-left h3 { font-size: 1.8rem; }
    .ad-right { padding: 25px; }
    .bank-info .account-number { font-size: 1.1rem; letter-spacing: 0; }
    
    .sponsors-grid { gap: 30px; }
    .sponsor-logo { max-width: 150px; }
}