:root {
    --bg-base: #1f2221; 
    --bg-surface: #2a2e2d;
    --bg-surface-hover: #353a39;
    --accent: #0094bf; 
    --accent-hover: #00aee6;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --player-height: 90px;
    --nav-height: 70px;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    padding-bottom: var(--player-height);
    overflow-x: hidden;
}

/* STICKY NAVBAR */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: var(--nav-height);
    background: rgba(31, 34, 33, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-brand { font-size: 1.5rem; font-weight: 900; letter-spacing: -1px; text-transform: uppercase; }
.nav-brand span { color: var(--accent); }

.nav-links { display: flex; gap: 2rem; }
.nav-links a { color: var(--text-main); text-decoration: none; font-weight: 600; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }

.btn-social {
    background: var(--bg-surface-hover);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s, background 0.2s;
    border: 1px solid rgba(255,255,255,0.1);
}
.btn-social:hover { transform: scale(1.05); background: var(--accent); color: #fff; }

/* HERO SECTION */
.hero {
    margin-top: var(--nav-height);
    height: 60vh;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 3rem 2rem;
    background-color: var(--bg-base);
    background-image: url('img/banner5.webp');
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-base) 5%, rgba(31,34,33,0.7) 50%, rgba(31,34,33,0.4) 100%);
    z-index: 2;
}

.hero-play-center {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
}

.btn-play-massive {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(0, 148, 191, 0.4);
    transition: transform 0.2s, background 0.2s;
}

.btn-play-massive:hover {
    transform: scale(1.1);
    background: var(--accent-hover);
}

.btn-play-massive svg { width: 45px; height: 45px; fill: currentColor; margin-left: 6px; }
.btn-play-massive.playing svg { margin-left: 0; }

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.hero-now-playing {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    max-width: 100%;
}

.hero-thumb {
    width: clamp(120px, 18vw, 180px);
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.8));
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    width: 100%;
    padding-top: 10px;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #111;
    color: #ff3333;
    border: 2px solid #cc0000;
    padding: 4px 14px;
    border-radius: 6px;
    font-weight: 900;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    align-self: flex-start;
    box-shadow: 0 0 15px rgba(204, 0, 0, 0.4), inset 0 0 10px rgba(204, 0, 0, 0.2);
    text-shadow: 0 0 8px rgba(255, 51, 51, 0.8);
}

.dot {
    width: 10px; height: 10px;
    background: #ff0000;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff0000;
    animation: radioPulse 1s infinite alternate ease-in-out;
}

@keyframes radioPulse {
    0% { opacity: 1; transform: scale(1.1); box-shadow: 0 0 18px #ff0000, 0 0 8px #ff0000; }
    100% { opacity: 0.4; transform: scale(0.9); box-shadow: 0 0 4px #cc0000; }
}

.hero-title {
    font-size: clamp(2rem, 5vw + 0.5rem, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.hero-artist {
    font-size: clamp(1.2rem, 3vw + 0.2rem, 1.8rem);
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* MAIN GRID LAYOUT */
.main-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--bg-surface-hover);
    padding-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    grid-column: 1 / -1;
}

/* Schedule Cards */
#programacion {
    grid-column: 1 / -1;
}

.schedule-card {
    background: var(--bg-surface);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    transition: background 0.2s, border-left 0.2s;
    border-left: 4px solid transparent;
}
.schedule-card:hover { 
    background: var(--bg-surface-hover); 
    border-left: 4px solid var(--accent);
}

.time {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent);
    min-width: 130px;
}

.prog-info h4 { font-size: 1.2rem; margin-bottom: 0.2rem; color: #fff; }
.prog-info p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* CONTACT GRID & FORMS */
#contacto {
    grid-column: 1 / -1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.contact-list { list-style: none; }
.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.contact-icon { 
    background: var(--bg-surface-hover);
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-weight: bold;
}
.contact-info strong { display: block; font-size: 1.1rem; color: #fff;}
.contact-info span { color: var(--text-muted); font-size: 0.9rem; }
.contact-info a { color: var(--accent); text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

/* Form Elements */
.form-container {
    background: var(--bg-surface);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-input {
    width: 100%;
    background: var(--bg-base);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-main);
    padding: 1rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
}

textarea.form-input {
    resize: vertical;
    margin-bottom: 1rem;
}

.btn-submit {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    width: 100%;
    text-transform: uppercase;
}

.btn-submit:hover {
    background: var(--accent-hover);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.alert-box {
    display: none;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-weight: 600;
    text-align: center;
}

.alert-box.success {
    background: rgba(0, 208, 132, 0.1);
    color: #00d084;
    border: 1px solid #00d084;
}

.alert-box.error {
    background: rgba(255, 51, 51, 0.1);
    color: #ff3333;
    border: 1px solid #ff3333;
}

/* STICKY BOTTOM PLAYER */
.player-bar {
    position: fixed;
    bottom: -150px; 
    left: 0; width: 100%;
    height: var(--player-height);
    background: var(--bg-surface);
    border-top: 1px solid rgba(255,255,255,0.05);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.8);
    transition: bottom 0.4s ease-out, opacity 0.4s ease-out;
    opacity: 0;
    pointer-events: none;
}

.player-bar.visible {
    bottom: 0 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.player-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 30%;
    min-width: 250px;
}

.player-thumb {
    width: 70px; 
    height: auto;
    object-fit: contain;
}

.player-info { overflow: hidden; white-space: nowrap; }
.player-title { font-weight: 800; font-size: 1.1rem; color: #fff; }
.player-artist { font-size: 0.85rem; color: var(--text-muted); }

.player-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 40%;
}

.btn-play {
    background: var(--accent);
    color: #fff;
    border: none;
    width: 45px; height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s;
}
.btn-play:hover { transform: scale(1.05); background: var(--accent-hover); }
.btn-play svg { width: 20px; height: 20px; fill: currentColor; margin-left: 3px; }
.btn-play.playing svg { margin-left: 0; } 

.player-right {
    width: 30%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.volume-control svg { width: 20px; height: 20px; fill: var(--text-muted); }

input[type=range] {
    -webkit-appearance: none;
    width: 100px;
    background: transparent;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 12px; width: 12px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    margin-top: -4px;
}
input[type=range]::-webkit-slider-runnable-track {
    width: 100%; height: 4px;
    cursor: pointer;
    background: var(--bg-surface-hover);
    border-radius: 2px;
}

@media (max-width: 900px) {
    .main-layout { grid-template-columns: 1fr; gap: 2rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; gap: 0; }
    .nav-links { display: none; }
    .player-bar { padding: 0 1rem; }
    .player-right { display: none; }
    .player-left { width: 60%; }
    .player-center { width: 40%; align-items: flex-end; }
    
    .hero-now-playing { 
        align-items: flex-start;
        gap: 1rem;
    }
    .hero-thumb {
        width: clamp(90px, 25vw, 130px);
    }
}
