/* ======================== VARIABLES GLOBALES ======================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #FF1744;
    --primary-dark: #C41339;
    --secondary: #1a1a1a;
    --tertiary: #2d2d2d;
    --accent: #00E5FF;
    --accent-alt: #FFD700;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --neon-purple: #B300FF;
    --neon-green: #00FF41;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a1f 50%, #0d1a2d 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

body.playing {
    background: linear-gradient(135deg, #1a0a2e 0%, #2d1a4d 50%, #1a2d4d 100%);
}

/* ======================== HEADER MEJORADO ======================== */
.main-header {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.98) 0%, rgba(26, 10, 31, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 3px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 8px 32px rgba(255, 23, 68, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    position: relative;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.nav-logo {
    height: 55px;
    width: auto;
    border-radius: 8px;
    border: 2px solid var(--primary);
    padding: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 23, 68, 0.5);
}

.nav-logo:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 0 30px rgba(255, 23, 68, 0.8);
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-text h2 {
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.logo-text p {
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 1px;
    font-weight: 600;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 23, 68, 0.5);
}

.nav-menu a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.nav-menu a:hover::before {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
}

.menu-toggle:hover {
    transform: scale(1.15);
    color: var(--accent);
}

.menu-toggle.active {
    color: var(--accent);
}

/* ======================== HERO BANNER ÉPICO ======================== */
.hero-banner {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1a0a1f 0%, #2d1a4d 50%, #1a2d4d 100%);
    border-bottom: 3px solid var(--primary);
    margin-bottom: 50px;
}

.banner-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 23, 68, 0.15), transparent 40%),
                radial-gradient(circle at 80% 80%, rgba(179, 0, 255, 0.15), transparent 40%),
                radial-gradient(circle at 50% 50%, rgba(0, 229, 255, 0.08), transparent 50%);
    animation: pulse-background 8s ease-in-out infinite;
}

@keyframes pulse-background {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 40px 20px;
}

.badge-rock {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--neon-purple));
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    box-shadow: 0 0 30px rgba(255, 23, 68, 0.6);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.banner-text h1 {
    font-size: 64px;
    font-weight: 900;
    margin-bottom: 15px;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 23, 68, 0.3);
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner-text p {
    font-size: 20px;
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.play-button-main {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: 2px solid var(--accent);
    padding: 18px 50px;
    font-size: 16px;
    font-weight: 900;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 auto;
    box-shadow: 0 0 30px rgba(255, 23, 68, 0.5),
                inset 0 0 20px rgba(0, 229, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.play-button-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.play-button-main:hover::before {
    left: 100%;
}

.play-button-main:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 0 50px rgba(255, 23, 68, 0.8),
                inset 0 0 30px rgba(0, 229, 255, 0.2);
    border-color: var(--neon-purple);
}

.play-button-main:active {
    transform: scale(0.98);
}

.play-icon {
    font-size: 20px;
}

/* ======================== NOW PLAYING ======================== */
.now-playing {
    background: linear-gradient(135deg, rgba(42, 21, 61, 0.8), rgba(26, 45, 77, 0.8));
    backdrop-filter: blur(10px);
    padding: 30px 20px;
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    margin-bottom: 50px;
}

.now-playing-content {
    max-width: 1200px;
    margin: 0 auto;
}

.track-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.album-art {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--neon-purple));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow: 0 8px 25px rgba(255, 23, 68, 0.4);
    animation: pulse-scale 2s ease-in-out infinite;
}

@keyframes pulse-scale {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.track-details h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.track-details p {
    font-size: 13px;
    color: var(--accent);
    letter-spacing: 0.5px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    width: 0%;
    transition: width 0.3s linear;
    box-shadow: 0 0 10px rgba(255, 23, 68, 0.8);
}

/* ======================== SECTION TITLES ======================== */
.section-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 40px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(255, 23, 68, 0.5);
}

/* ======================== FEATURED SECTION ======================== */
.featured-section {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
    width: 100%;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.featured-card {
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.8), rgba(42, 21, 61, 0.6));
    padding: 40px;
    border-radius: 15px;
    border: 2px solid rgba(255, 23, 68, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 23, 68, 0.1), rgba(179, 0, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 12px 50px rgba(255, 23, 68, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.featured-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 48px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.featured-card h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ======================== SCHEDULE SECTION ======================== */
.schedule-preview {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
    width: 100%;
}

.schedule-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.schedule-item {
    background: linear-gradient(135deg, rgba(42, 21, 61, 0.6), rgba(26, 45, 77, 0.6));
    padding: 25px;
    border-radius: 12px;
    border-left: 5px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.schedule-item.active {
    background: linear-gradient(135deg, rgba(255, 23, 68, 0.15), rgba(179, 0, 255, 0.15));
    border-left-color: var(--primary);
    box-shadow: 0 8px 25px rgba(255, 23, 68, 0.2);
}

.schedule-item:hover {
    background: linear-gradient(135deg, rgba(255, 23, 68, 0.1), rgba(179, 0, 255, 0.1));
    border-left-color: var(--accent);
    transform: translateX(5px);
}

.time {
    font-weight: 900;
    font-size: 18px;
    color: var(--primary);
    min-width: 90px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.program-info h4 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.program-info p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ======================== BOTTOM PLAYER MEJORADO ======================== */
.bottom-player {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.98) 0%, rgba(26, 10, 31, 0.95) 100%);
    border-top: 3px solid var(--primary);
    padding: 20px;
    margin-top: auto;
    box-shadow: 0 -8px 32px rgba(255, 23, 68, 0.3), inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    position: sticky;
    bottom: 0;
}

.player-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.player-section-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 180px;
}

.station-live {
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-pulse {
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    animation: live-pulse 2s ease-in-out infinite;
    box-shadow: 0 0 15px var(--primary);
}

@keyframes live-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

.live-text {
    font-weight: 900;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(255, 23, 68, 0.5);
}

.station-name {
    font-size: 16px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.player-section-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.master-play {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: 2px solid var(--accent);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(255, 23, 68, 0.6),
                inset 0 0 20px rgba(0, 229, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.master-play::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    animation: spin 3s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.master-play:hover {
    transform: scale(1.15);
    box-shadow: 0 0 50px rgba(255, 23, 68, 0.8),
                inset 0 0 30px rgba(0, 229, 255, 0.2);
    border-color: var(--neon-purple);
}

.master-play:active {
    transform: scale(1.05);
}

.master-play.playing {
    background: linear-gradient(135deg, var(--neon-purple), var(--primary));
    animation: beat 0.5s ease-in-out infinite;
}

@keyframes beat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

.player-section-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.volume-label {
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.vol-control {
    width: 130px;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 23, 68, 0.2));
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.vol-control::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 0 15px rgba(255, 23, 68, 0.5);
    border: 2px solid var(--accent);
}

.vol-control::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    box-shadow: 0 0 25px rgba(255, 23, 68, 0.8);
}

.vol-control::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    cursor: pointer;
    border: 2px solid var(--accent);
    transition: all 0.2s ease;
    box-shadow: 0 0 15px rgba(255, 23, 68, 0.5);
}

.vol-control::-moz-range-thumb:hover {
    transform: scale(1.3);
    box-shadow: 0 0 25px rgba(255, 23, 68, 0.8);
}

/* ======================== CONTENT AREA ======================== */
.content-area {
    flex: 1;
    width: 100%;
}

/* ======================== SCROLLBAR PERSONALIZADO ======================== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--secondary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--neon-purple));
    border-radius: 6px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent), var(--primary));
}

/* ======================== RESPONSIVE DESIGN ======================== */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-container {
        height: 70px;
        padding: 0 15px;
    }

    .logo-text h2 {
        font-size: 14px;
    }

    .logo-text p {
        font-size: 10px;
    }

    .nav-logo {
        height: 45px;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, rgba(10, 10, 10, 0.98) 0%, rgba(26, 10, 31, 0.95) 100%);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-bottom: 3px solid var(--primary);
    }

    .nav-menu.active {
        max-height: 500px;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 23, 68, 0.2);
    }

    .nav-menu a {
        display: flex;
        justify-content: center;
        padding: 15px;
        font-size: 12px;
    }

    .nav-menu a::before {
        display: none;
    }

    .hero-banner {
        height: 380px;
        margin-bottom: 40px;
    }

    .banner-text h1 {
        font-size: 42px;
        letter-spacing: 2px;
    }

    .banner-text p {
        font-size: 16px;
    }

    .play-button-main {
        padding: 14px 35px;
        font-size: 14px;
    }

    .badge-rock {
        font-size: 11px;
        padding: 8px 16px;
    }

    .featured-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .featured-card {
        padding: 30px;
    }

    .featured-card h3 {
        font-size: 18px;
    }

    .card-icon {
        font-size: 40px;
    }

    .schedule-items {
        grid-template-columns: 1fr;
    }

    .player-wrapper {
        flex-direction: column;
        gap: 15px;
    }

    .player-section-left,
    .player-section-center,
    .player-section-right {
        width: 100%;
        justify-content: center;
    }

    .vol-control {
        width: 200px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        height: 60px;
        padding: 0 12px;
    }

    .logo-text {
        display: none;
    }

    .logo-text h2 {
        font-size: 12px;
    }

    .nav-logo {
        height: 40px;
    }

    .nav-menu {
        top: 60px;
    }

    .hero-banner {
        height: 300px;
        margin-bottom: 30px;
    }

    .banner-text {
        padding: 20px 15px;
    }

    .banner-text h1 {
        font-size: 28px;
        letter-spacing: 1px;
    }

    .banner-text p {
        font-size: 13px;
        margin-bottom: 25px;
    }

    .play-button-main {
        padding: 12px 25px;
        font-size: 12px;
    }

    .badge-rock {
        font-size: 10px;
        padding: 6px 12px;
        margin-bottom: 15px;
    }

    .featured-section,
    .schedule-preview {
        margin-bottom: 40px;
        padding: 0 15px;
    }

    .featured-card {
        padding: 20px;
    }

    .featured-card h3 {
        font-size: 16px;
    }

    .featured-card p {
        font-size: 13px;
    }

    .card-icon {
        font-size: 35px;
        margin-bottom: 10px;
    }

    .schedule-item {
        padding: 20px;
    }

    .time {
        font-size: 14px;
        min-width: 70px;
    }

    .program-info h4 {
        font-size: 14px;
    }

    .program-info p {
        font-size: 12px;
    }

    .bottom-player {
        padding: 12px;
    }

    .player-wrapper {
        gap: 10px;
    }

    .live-text {
        font-size: 10px;
    }

    .station-name {
        font-size: 13px;
    }

    .master-play {
        width: 65px;
        height: 65px;
        font-size: 24px;
    }

    .vol-control {
        width: 150px;
        height: 5px;
    }

    .volume-label {
        font-size: 10px;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 25px;
    }

    .section-title::after {
        width: 80px;
    }
}

/* ======================== ANIMACIONES FINALES ======================== */
@media (prefers-reduced-motion: no-preference) {
    * {
        scroll-behavior: smooth;
    }
}
