:root {
    /* Paleta DARK (Por defecto) */
    --color-background: #0A2540;
    --color-surface: #133355;
    --color-text: #FFFFFF;
    --color-text-muted: #CBD5E1;
    
    --color-primary: #FF6A00;
    --color-secondary: #FFC300;
    --gradient-brand: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --player-height: 90px;
    --transition-speed: 0.4s; /* Suavizamos un poco más */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--color-background);
}
::-webkit-scrollbar-thumb {
    background: var(--gradient-brand);
    border-radius: 10px;
    border: 3px solid var(--color-background);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Branded Selection */
::selection {
    background: var(--color-primary);
    color: #000;
}

[data-theme="light"] {
    --color-background: #F8FAFC;
    --color-surface: #FFFFFF;
    --color-text: #0F172A;
    --color-text-muted: #475569;
    
    --color-primary: #E65A00; 
    --main-bg-overlay: linear-gradient(to right, rgba(255,255,255, 0.95) 0%, rgba(255,255,255, 0.7) 50%, rgba(255,255,255, 0.2) 100%);
    
    --bg-header: rgba(255, 255, 255, 0.9);
    --bg-footer: #F1F5F9;
    --bg-player: #FFFFFF;
    --logo-filter: brightness(0); /* Hace que logos blancos se vean negros */
}

[data-theme="dark"] {
    --main-bg-overlay: linear-gradient(to right, rgba(10, 37, 64, 0.8) 0%, rgba(10, 37, 64, 0.4) 50%, transparent 100%);
    --bg-header: rgba(10, 37, 64, 0.9);
    --bg-footer: #081220;
    --bg-player: #081B30;
    --logo-filter: brightness(0) invert(1);
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    width: 100%;
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text);
    padding-bottom: var(--player-height);
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

.theme-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--color-text);
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.theme-btn:hover {
    background: var(--gradient-brand);
    color: #000;
    transform: translateY(-2px);
}

[data-theme="light"] .theme-btn {
    background: rgba(0, 0, 0, 0.05);
    color: var(--color-text);
    border-color: rgba(0,0,0,0.1);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Typography Helpers */
.text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* HEADER Y NAVBAR */
.main-header {
    background: var(--bg-header);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.top-bar {
    background: rgba(0,0,0,0.2); 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
    padding: 5px 0;
}

.social-links-top {
    display: flex;
    gap: 15px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 50px;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gradient-brand);
    transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

/* Nav Dropdown (Secciones) */
.nav-dropdown {
    display: inline-block;
    position: relative;
}

.nav-dropdown > a {
    cursor: pointer;
}

.dropdown-content {
    position: absolute;
    background-color: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-width: 220px;
    box-shadow: 0px 15px 35px rgba(0,0,0,0.6);
    z-index: 1000;
    border-radius: 12px;
    border: 1px solid rgba(255,106,0,0.2);
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.nav-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-content::-webkit-scrollbar {
    width: 6px;
}
.dropdown-content::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 3px;
}

.dropdown-content a {
    color: var(--color-text);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Evitar que la linea naranja salga en el dropdown items */
.dropdown-content a::after {
    display: none; 
}

.dropdown-content a:hover {
    background-color: rgba(255,106,0,0.1);
    color: var(--color-primary);
}


.weather-widget {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--color-text);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 992px) {
    .navbar {
        height: 70px;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 85%;
        height: 100vh;
        background: var(--color-surface);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.7, 0, 0.3, 1), visibility 0.4s;
        z-index: 99999;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        visibility: hidden;
    }
    .nav-links.active {
        transform: translateX(0);
        visibility: visible;
    }
    .nav-links a {
        font-size: 1.4rem;
        width: 100%;
        text-align: center;
        padding: 10px 0;
        color: var(--color-text);
    }
    .mobile-socials {
        display: flex !important;
    }
    .social-links-top {
        display: none !important;
    }
    .mobile-menu-btn {
        display: block;
    }
    .weather-widget {
        display: none;
    }
    .top-bar {
        padding: 10px 0;
    }
}

@media (max-width: 768px) {
    .player-info {
        width: 60%;
    }
    .player-volume {
        display: none;
    }
    .player-controls {
        width: 40%;
        justify-content: flex-end;
    }
    .hero-title {
        font-size: 2.2rem;
    }
}


/* HOME HERO */
.hero-section {
    min-height: 80vh; /* Aumentamos un poco la altura para lucir las fotos */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: #000; /* Fondo base mientras carga */
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Capa de contraste (Overlay) */
.hero-slider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 37, 64, 0.8) 0%, rgba(10, 37, 64, 0.4) 50%, transparent 100%);
    z-index: 2;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: heroSlider 36s linear infinite;
}

/* Staggered animation delays for 6 images */
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 6s; }
.hero-slide:nth-child(3) { animation-delay: 12s; }
.hero-slide:nth-child(4) { animation-delay: 18s; }
.hero-slide:nth-child(5) { animation-delay: 24s; }
.hero-slide:nth-child(6) { animation-delay: 30s; }

@keyframes heroSlider {
    0% { opacity: 0; transform: scale(1.05); }
    5% { opacity: 1; transform: scale(1); }
    16% { opacity: 1; }
    21% { opacity: 0; }
    100% { opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--color-text);
    text-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.hero-text {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 30px;
}

.btn-primary {
    background: var(--gradient-brand);
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 106, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 106, 0, 0.6);
}

/* RADIO PLAYER (STICKY FOOTER STYLE LIKE SPOTIFY) */
.radio-player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--player-height);
    background: var(--bg-player);
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1001;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.5);
    color: var(--color-text);
}

.player-info {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 30%;
}

.player-artwork {
    width: 60px;
    height: 60px;
    background: var(--color-surface);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.player-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-details {
    display: flex;
    flex-direction: column;
}

.track-title {
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.track-artist {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

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

.ctrl-btn {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s;
}

.ctrl-btn:hover {
    color: var(--color-text);
    transform: scale(1.1);
}

.play-pause-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #000;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(255,106,0,0.3);
}

.play-pause-btn:hover {
    color: #000;
    transform: scale(1.05);
}

.player-volume {
    width: 30%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.volume-slider {
    width: 100px;
    accent-color: var(--color-primary);
}

/* WHATSAPP FLOAT BTN */
.whatsapp-float {
    position: fixed;
    bottom: calc(var(--player-height) + 20px);
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: white;
}

/* FOOTER INTERNO */
.site-footer {
    background: var(--bg-footer);
    padding: 60px 20px 40px;
    margin-bottom: var(--player-height); /* Para no ser tapado por la radio */
    border-top: 1px solid rgba(255,255,255,0.05);
}

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

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

.footer-col p {
    color: var(--color-text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--color-text-muted);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(128,128,128,0.1);
    border-radius: 50%;
    color: var(--color-text);
    font-size: 1.2rem;
    transition: background 0.3s, transform 0.3s;
}

.footer-social a:hover {
    background: var(--gradient-brand);
    color: #000;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* ADS TICKER (CINTA DE PUBLICIDAD) */
.ads-ticker-container {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 0;
    position: relative;
}

.ads-ticker-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 40px; /* Espacio entre logos */
    animation: ticker-animation 35s linear infinite;
    padding-left: 0; /* Sin espacio inicial para loop infinito */
}

.ads-ticker-wrapper:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: flex;
    align-items: center;
    transition: transform 0.3s;
}

.ticker-item img {
    height: 200px;
    width: 200px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.ticker-item:hover img {
    transform: scale(1.05);
}

@keyframes ticker-animation {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.3333%); }
}

/* PRO: Scroll Reveal Animation */
.reveal {
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* PRO: Advanced Card Interaction */
.pro-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.pro-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 106, 0, 0.2);
}

/* PRO: Header Scrolled Effect */
.main-header.scrolled {
    padding: 0;
    background: var(--bg-header);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

.scroll-indicator {
    animation: bounce 2s infinite;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .player-info {
        width: 50%;
    }
    .player-volume {
        display: none;
    }
    .player-controls {
        width: 50%;
        justify-content: flex-end;
    }
}
