:root {
    --bg-dark: #261510;
    --bg-card: #2f1c15;
    --border-subtle: #3d2a20;
    --coral: #d8533d;
    --pink: #ff88ad;
    --purple: #9e6bab;
    --sage: #99b5b2;
    --cream: #eedbc5;
    --text-main: #f5f5f5;
    --text-muted: #b8a8a3;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 15% -10%, rgba(216, 83, 61, 0.35), transparent 45%),
        radial-gradient(circle at 90% 5%, rgba(153, 181, 178, 0.22), transparent 40%),
        radial-gradient(circle at 50% 100%, rgba(158, 107, 171, 0.12), transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Poppins', Arial, sans-serif;
    margin: 0;
    padding-bottom: 80px; /* espacio para la barra sticky */
}

.logo {
    max-width: 200px;
    margin: 20px auto;
    display: block;
}

audio {
    display: none; /* usamos nuestros propios controles */
}

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

.highlight {
    background: linear-gradient(90deg, var(--coral), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================
   HEADER / MENÚ
   ============================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(38, 21, 16, 0.85);
    backdrop-filter: blur(10px);
}

.site-header .logo {
    height: 30px;
    margin: 0;
}

.menu-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 260px;
    height: 100vh;
    background: var(--bg-card);
    border-left: 1px solid var(--border-subtle);
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.4);
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 90px 20px 20px;
    transition: right 0.25s ease;
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    padding: 14px 12px;
    border-radius: 10px;
    cursor: pointer;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
    background: rgba(216, 83, 61, 0.15);
    color: var(--coral);
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 250;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* ============================
   HERO
   ============================ */

.hero {
    text-align: center;
    padding: 30px 0px 10px;
    scroll-margin-top: 70px;
}

.hero-logo {
    max-width: 220px;
    width: 70%;
    height: auto;
    margin: 0 auto 24px;
    display: block;
}

.badge-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 107, 74, 0.15);
    border: 1px solid var(--coral);
    color: var(--coral);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.badge-live .dot {
    width: 6px;
    height: 6px;
    background: var(--coral);
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(216, 83, 61, 0.6); }
    50% { box-shadow: 0 0 0 6px rgba(216, 83, 61, 0); }
}

.hero h1 {
    font-size: 40px;
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.5px;
    margin: 0 0 16px;
    color: var(--text-main);
}

.hero p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 24px;
}

/* ============================
   PLAYER
   ============================ */

.player-card {
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 30px;
    text-align: left;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.player-card::before {
    content: "";
    position: absolute;
    top: -60px;
    left: -20%;
    right: -20%;
    height: 160px;
    background: radial-gradient(circle, rgba(216, 83, 61, 0.18), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.player-card > * {
    position: relative;
    z-index: 1;
}

.now-playing-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.now-playing-info {
    min-width: 0;
    flex: 1;
}

.now-playing-info .label {
    font-size: 11px;
    color: var(--coral);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.now-playing-info .track {
    font-size: 15px;
    font-weight: 700;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.now-playing-info .track.marquee span {
    display: inline-block;
    padding-left: 100%;
    animation: marquee-scroll 15s linear infinite;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.now-playing-info .artist {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.equalizer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--coral), var(--sage));
    flex-shrink: 0;
    margin-left: auto;
}

.equalizer span {
    width: 3px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 3px;
    height: 6px;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.equalizer.playing span {
    opacity: 1;
    animation: eq-bounce 0.9s ease-in-out infinite;
}

.equalizer.playing span:nth-child(1) { animation-delay: 0s; }
.equalizer.playing span:nth-child(2) { animation-delay: 0.15s; }
.equalizer.playing span:nth-child(3) { animation-delay: 0.3s; }
.equalizer.playing span:nth-child(4) { animation-delay: 0.1s; }
.equalizer.playing span:nth-child(5) { animation-delay: 0.25s; }

@keyframes eq-bounce {
    0%, 100% { height: 6px; }
    50% { height: 22px; }
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

.play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--coral), #e0503a);
    border: none;
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(216, 83, 61, 0.4);
}

.volume-row {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-row input[type="range"] {
    flex: 1;
    accent-color: var(--coral);
}

/* ============================
   BARRA STICKY
   ============================ */

.sticky-player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 100;
}

.sticky-player-bar .mini-play-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--coral);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
}

.sticky-player-bar .label-main {
    font-size: 13px;
    font-weight: 700;
    color: var(--coral);
}

.sticky-player-bar .label-sub {
    font-size: 11px;
    color: var(--text-muted);
}

.sticky-player-bar .freq {
    margin-left: auto;
    font-weight: 700;
    color: var(--sage);
}

/* ============================
   PROGRAMACIÓN
   ============================ */

.programacion-section {
    padding: 40px 20px;
    scroll-margin-top: 70px;
}

.section-eyebrow {
    display: inline-block;
    background: rgba(216, 83, 61, 0.15);
    border: 1px solid var(--coral);
    color: var(--coral);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 2px;
}

.programacion-section h2 {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 10px;
}

.programacion-section > p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.day-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.day-tab {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 10px 8px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.day-tab:hover {
    border-color: var(--coral);
    color: var(--text-main);
}

.day-tab.active {
    background: var(--coral);
    border-color: var(--coral);
    color: white;
}

.program-block {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.program-block.active {
    display: flex;
}

.program-block-title {
    display: none; /* oculto en mobile, las tabs ya indican el día */
    font-size: 14px;
    font-weight: 700;
    color: var(--coral);
    margin: 0 0 14px;
}

.program-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--coral);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.program-item .horario {
    font-size: 12px;
    color: var(--sage);
    font-weight: 700;
    white-space: nowrap;
    margin-left: 10px;
}

.program-item .nombre {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.program-item .conductor {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================
   CONTACTO
   ============================ */

.contacto-section {
    margin-top: 50px;
    padding: 30px 0 40px;
    text-align: center;
    scroll-margin-top: 70px;
}

.social-row {
    display: flex;
    gap: 18px;
    margin: 20px auto 30px;
    align-items: center;
    justify-content: center;
    max-width: 340px;
}

.social-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    border-radius: 50%;
    background: rgba(238, 219, 197, 0.08);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cream);
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.15s ease, background 0.15s ease;
}

.social-icon:hover {
    background: rgba(238, 219, 197, 0.18);
    transform: translateY(-3px);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.contact-info-block {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 30px;
}

.contact-info-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.contact-info-item h4 {
    margin: 0 0 4px;
    font-size: 13px;
    color: var(--pink);
}

.contact-info-item p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.contact-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.contact-link:hover {
    color: var(--coral);
    border-color: var(--coral);
}

.contact-form-card {
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 24px 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.contact-form-card::before {
    content: "";
    position: absolute;
    top: -60px;
    left: -20%;
    right: -20%;
    height: 160px;
    background: radial-gradient(circle, rgba(216, 83, 61, 0.18), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.contact-form-card > * {
    position: relative;
    z-index: 1;
}

.form-title {
    margin: 0 0 18px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--sage);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--text-main);
    font-size: 14px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 90px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--coral);
}

.btn-enviar {
    width: 100%;
    background: linear-gradient(90deg, var(--coral), var(--pink));
    border: none;
    color: white;
    font-weight: 700;
    font-size: 15px;
    padding: 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-enviar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(216, 83, 61, 0.4);
}

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

.form-status {
    margin-top: 12px;
    font-size: 13px;
    text-align: center;
}

.form-status.ok { color: var(--sage); }
.form-status.error { color: var(--coral); }

/* ============================
   DESCARGAS (Media Kit / Tarifario)
   ============================ */

.downloads-row {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px 20px 40px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 22px;
    border-radius: 12px;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.btn-download:hover {
    border-color: var(--coral);
    color: var(--coral);
    transform: translateY(-2px);
}

/* ============================
   FOOTER
   ============================ */

.site-footer {
    padding: 40px 20px 100px; /* espacio de abajo para la barra sticky */
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.frequencies-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

.freq-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.freq-num {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--coral), var(--sage));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.freq-city {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.footer-logo {
    max-width: 160px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
    opacity: 0.85;
}

.footer-copy {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

/* ============================
   RESPONSIVE MOBILE (ajustes puntuales)
   ============================ */

@media (max-width: 899px) {
    .contacto-section .section-eyebrow {
        margin-bottom: 0;
    }

    .contacto-section h2 {
        margin: 0 0 2px;
    }

    .contacto-section > p {
        margin: 0 0 10px;
    }

    .programacion-section > .section-eyebrow {
        display: table;
        margin-left: auto;
        margin-right: auto;
    }

    .programacion-section h2,
    .programacion-section > p {
        text-align: center;
    }
}

/* ============================
   RESPONSIVE ESCRITORIO
   ============================ */

@media (min-width: 900px) {

    .container {
        max-width: 1100px;
        padding: 0 40px;
    }

    .site-header {
        padding: 20px 40px;
    }

    .site-header .logo {
        height: 46px;
    }

    /* --- Hero --- */
    .hero {
        position: relative;
        padding-top: 20px;
        padding-bottom: 30px;
    }

    .hero::before {
        content: "";
        position: absolute;
        top: 0;
        height: 420px;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        width: 100vw;
        background-image:
            linear-gradient(90deg, var(--bg-dark) 0%, rgba(38, 21, 16, 0.75) 35%, rgba(38, 21, 16, 0.15) 70%),
            linear-gradient(to bottom, transparent 60%, var(--bg-dark) 100%),
            url('assets/hero-bg.jpg');
        background-size: cover;
        background-position: left center;
        z-index: 0;
    }

    .hero-inner {
        position: relative;
        z-index: 1;
        display: grid;
        grid-template-columns: 1.1fr 1fr;
        gap: 60px;
        align-items: center;
        text-align: left;
        padding-top: 40px;
    }

    .hero-text {
        display: flex;
        flex-direction: column;
        gap: 25px;
        align-items: flex-start;
        text-align: left;
    }

    .hero-logo {
        max-width: 200px;
        margin: 0;
    }

    .badge-live {
        margin-bottom: 0;
    }

    .hero h1 {
        font-size: 48px;
        line-height: 0.75;
        margin: 0;
    }

    .hero p {
        margin: 0;
        max-width: 420px;
    }

    .hero-player-wrap .player-card {
        margin-bottom: 0;
    }

    /* --- Programación --- */
    .day-tabs {
        display: none;
    }

    .programacion-section {
        padding: 60px 0 20px;
        text-align: center;
    }

    .programacion-section h2 {
        font-size: 36px;
    }

    .programacion-section > p {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .program-block {
        display: flex !important;
    }

    .program-block-title {
        display: block;
    }

    .program-blocks-wrapper {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    /* --- Contacto --- */
    .contacto-section {
        padding: 60px 0 40px;
        text-align: center;
    }

    .contacto-section h2 {
        font-size: 36px;
        margin: 0 0 4px;
    }

    .contacto-section > p {
        margin: 0 auto 5px;
    }

    .contacto-inner-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        align-items: start;
    }

    /* --- Barra sticky --- */
    .sticky-player-bar {
        max-width: 500px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 16px 16px 0 0;
        bottom: 0;
    }

    .site-footer {
        padding: 50px 0 120px;
    }

    .frequencies-row {
        gap: 40px;
    }
}