/* ============================================
   MARKANSAYA RADIO - DISEÑO PROFESIONAL DE EMISORA
   Estilo de radio moderna y dinámica
   ============================================ */

/* Reset y Variables */
:root {
    --primary-yellow: #FFC107;
    --primary-dark: #FFA000;
    --secondary-orange: #FF6F00;
    --accent-red: #E74C3C;
    --dark-bg: #1a1a2e;
    --darker-bg: #0f0f1e;
    --light-bg: #f8f9fa;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-hover: 0 15px 40px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f0f2f5;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: inherit;
}

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

/* ===================================
   TOP INFO BAR
   =================================== */
.top-info-bar {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    color: white;
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-info-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-left span {
    margin-right: 20px;
}

.info-left i {
    color: var(--primary-yellow);
    margin-right: 5px;
}

.info-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.live-indicator {
    background: var(--accent-red);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    animation: pulse 2s infinite;
}

.live-indicator i {
    animation: blink 1s infinite;
}

.social-icon {
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary-yellow);
    transform: translateY(-3px);
}

/* ===================================
   MAIN HEADER
   =================================== */
.main-header {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--primary-dark) 50%, var(--secondary-orange) 100%);
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.main-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    align-content: center;
    justify-content: center;
}

.main-logo {
    height: auto;
    width: auto;
    max-width: 100%;
    max-height: 100px;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
}

.logo-placeholder {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-dark);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.logo-text h1 {
    font-size: 3.5rem;
    color: white;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    letter-spacing: 3px;
    margin: 0;
    line-height: 1;
}

.logo-text p {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    margin: 5px 0 0;
}

.mobile-menu-btn {
    display: none;
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    font-size: 1.5rem;
    color: var(--primary-dark);
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
}

/* ===================================
   NAVIGATION
   =================================== */
.main-nav {
    background: var(--dark-bg);
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    position: relative;
    z-index: 100;
}

/* Overlay para menú móvil */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
    z-index: 999; /* Debajo del menú (1000) */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Header del menú móvil */
.nav-header-mobile {
    display: none; /* Oculto en desktop */
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: var(--darker-bg);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-title-mobile {
    color: white;
    font-size: 1.5rem;
    letter-spacing: 1px;
    font-weight: 700;
}

.nav-close-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.nav-close-btn:hover {
    background: var(--accent-red);
    transform: rotate(90deg);
}

/* Solo aplicar sticky en desktop (min-width: 769px) */
@media (min-width: 769px) {
    .main-nav.sticky {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        animation: slideDown 0.3s ease;
        box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    }
}

/* Mobile Social Icons */
.mobile-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px 0;
    margin-top: 20px; /* Separación clara del menú */
    border-top: 1px solid rgba(255,255,255,0.1);
    position: relative; /* Para el z-index si fuera necesario */
    width: 100%; /* Ocupar todo el ancho */
}

.mobile-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.mobile-social a:hover {
    background: var(--primary-yellow);
    transform: translateY(-3px);
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 18px 25px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

.nav-menu > li > a i {
    margin-right: 8px;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--primary-dark) 100%);
    color: white;
}

.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 3px;
    background: var(--primary-yellow);
    transition: transform 0.3s;
}

.nav-menu > li > a:hover::after,
.nav-menu > li > a.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--darker-bg);
    list-style: none;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    border-radius: 0 0 10px 10px;
    border: 1px solid rgba(255,255,255,0.1);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dropdown-menu li:last-child a {
    border-bottom: none;
    border-radius: 0 0 10px 10px;
}

.dropdown-menu li a:hover {
    background: var(--primary-yellow);
    color: white;
    padding-left: 30px;
}

/* ===================================
   EQUALIZER BANNER
   =================================== */
.equalizer-banner {
    margin-left: 10px;
    background: transparent;
    padding: 0px 0;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    align-content: flex-end;
}

.equalizer {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 4px;
    height: 20px;
    align-content: flex-end;
}

.equalizer .bar {
    width: 8px;
    background: linear-gradient(to top, var(--primary-yellow), var(--secondary-orange));
    border-radius: 4px 4px 0 0;
    animation: equalize 1s ease-in-out infinite;
}

.equalizer .bar:nth-child(1) { animation-delay: 0.1s; }
.equalizer .bar:nth-child(2) { animation-delay: 0.2s; }
.equalizer .bar:nth-child(3) { animation-delay: 0.3s; }
.equalizer .bar:nth-child(4) { animation-delay: 0.4s; }
.equalizer .bar:nth-child(5) { animation-delay: 0.5s; }
.equalizer .bar:nth-child(6) { animation-delay: 0.6s; }
.equalizer .bar:nth-child(7) { animation-delay: 0.7s; }
.equalizer .bar:nth-child(8) { animation-delay: 0.8s; }
.equalizer .bar:nth-child(9) { animation-delay: 0.9s; }
.equalizer .bar:nth-child(10) { animation-delay: 1s; }
.equalizer .bar:nth-child(11) { animation-delay: 0.3s; }
.equalizer .bar:nth-child(12) { animation-delay: 0.6s; }
.equalizer .bar:nth-child(13) { animation-delay: 0.2s; }
.equalizer .bar:nth-child(14) { animation-delay: 0.8s; }
.equalizer .bar:nth-child(15) { animation-delay: 0.4s; }

/* ===================================
   MAIN CONTENT
   =================================== */
.site-content {
    min-height: 60vh;
    padding: 40px 0;
}

/* ===================================
   FOOTER
   =================================== */
.main-footer {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    color: white;
    padding-top: 60px;
    position: relative;
    margin-top: 60px;
}

.footer-wave {
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 60px;
    overflow: hidden;
}

.footer-wave svg {
    width: 100%;
    height: 100%;
    color: var(--dark-bg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--primary-yellow);
    font-size: 1.2rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.footer-col p {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col ul li a:hover {
    color: var(--primary-yellow);
    padding-left: 10px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-yellow);
    transform: translateY(-5px);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.8);
}

.contact-info i {
    color: var(--primary-yellow);
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 30px 0;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

.footer-bottom p {
    margin: 5px 0;
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes equalize {
    0%, 100% { height: 10px; }
    50% { height: 50px; }
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* ===================================
   PAGE LOADER & PROGRESS BAR
   =================================== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.page-loader.active {
    opacity: 1;
    visibility: visible;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-yellow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loader-text {
    font-size: 1.5rem;
    color: var(--text-dark);
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 700;
}

.progress-container {
    width: 200px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-yellow), var(--secondary-orange));
    transition: width 0.1s linear;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
    .logo-text h1 {
        font-size: 2.5rem;
    }
    
    .main-logo, .logo-placeholder {
        height: 80px;
        width: auto;
    }
    
    .nav-menu > li > a {
        padding: 15px 18px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .top-info-bar {
        display: none; /* Ocultar barra superior completa en móviles */
    }
    
    .top-info-bar .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .info-left span {
        margin: 0 10px;
        font-size: 0.85rem;
    }
    
    .logo-text h1 {
        font-size: 2rem;
    }
    
    .logo-text p {
        font-size: 0.85rem;
    }
    
    .main-logo, .logo-placeholder {
        height: 60px;
        width: auto;
    }
    
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--dark-bg);
        transition: left 0.3s;
        overflow-y: auto;
        z-index: 1000;
        display: flex;
        flex-direction: column; /* Organizar verticalmente */
    }
    
    .main-nav .container {
        flex: 1; /* Ocupar espacio disponible */
        display: flex;
        flex-direction: column;
        justify-content: flex-start !important; /* Alinear arriba */
        align-items: stretch !important; /* Estirar ancho */
        padding-bottom: 20px;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .nav-header-mobile {
        display: flex; /* Mostrar header en móvil */
    }
    
    .mobile-social {
        display: flex !important; /* Mostrar solo en móvil */
        z-index: 1001; /* Asegurar que esté por encima */
        position: relative;
    }
    
    .nav-menu {
        flex-direction: column;
        padding: 20px 0;
        z-index: 1002; /* Asegurar que el menú esté por encima */
    }
    
    .nav-menu > li {
        width: 100%;
    }
    
    .nav-menu > li > a {
        padding: 15px 25px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255,255,255,0.05);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 500px;
    }
    
    .equalizer-banner {
        display: none; /* Ocultar ecualizador en móviles para limpiar interfaz */
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.p-2 { padding: 2rem; }


/* Scrollbar personalizado */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-yellow);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
