/* =====================================================================
   RADIO ORFEO — estilos del sitio público
   Mobile-first: todo lo de arriba es para celular. Los ajustes de
   escritorio están juntos en un solo bloque al final (min-width: 900px).
   El panel /admin tiene su propio archivo: admin/admin.css
   ===================================================================== */

:root {
    --bg-dark: #261510;
    --bg-card: #2f1c15;
    --border-subtle: #3d2a20;
    --coral: #d8533d;
    --pink: #ff88ad;
    --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;
}

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;
}

/* Etiqueta chica de sección ("NOTICIAS", "CONTACTO", "PROGRAMACIÓN") */
.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;
}

/* Cartel "Versión de prueba" — solo aparece en dev.radiorfeo.com y en local */
.dev-badge {
    position: fixed;
    bottom: 12px;
    left: 12px;
    z-index: 9999;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--coral);
    color: var(--cream);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: .03em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
    pointer-events: none;
}

/* ============================
   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);
}

.logo-link {
    display: flex;
}

.site-header .logo {
    display: block;
    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;
}

.mobile-menu-link:hover {
    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 0 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(216, 83, 61, 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;
}

.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 DEL REPRODUCTOR (fija abajo, en todas las páginas)
   reproductor.js le agrega .visible (y al body .con-barra) cuando tiene que verse
   ============================ */

.barra-radio {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 150; /* debajo del menú (250/300), así no lo tapa */
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px 8px 8px;
    background: rgba(47, 28, 21, 0.94);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-top-color: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    transform: translateY(calc(100% + 24px)); /* escondida abajo */
    transition: transform 0.3s ease;
}

.barra-radio.visible {
    transform: none;
}

.play-btn.chico {
    width: 42px;
    height: 42px;
    font-size: 16px;
}

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

.barra-vivo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--coral);
}

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

.barra-tema {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.equalizer.chico {
    width: 36px;
    height: 36px;
    min-width: 36px;
    margin-left: 0;
}

/* Espacio abajo para que la barra no tape el final de la página */
body.con-barra {
    padding-bottom: 76px;
}

body.con-barra .dev-badge {
    bottom: 80px;
}

/* Mientras se trae otra página sin recargar (radio sonando) */
body.cargando-pagina main {
    opacity: 0.5;
    transition: opacity 0.2s;
}

/* ============================
   NOTICIAS — sección de la home y listado
   ============================ */

.noticias-section {
    padding: 40px 0 10px;
    text-align: center;
    scroll-margin-top: 70px;
}

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

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

.noticias-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-align: left;
}

.noticia-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
    color: var(--text-main);
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.noticia-card:hover {
    transform: translateY(-3px);
    border-color: var(--coral);
}

.noticia-card-foto {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--coral), var(--sage));
    overflow: hidden;
}

.noticia-card-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.noticia-card:hover .noticia-card-foto img {
    transform: scale(1.04);
}

.noticia-card-texto {
    padding: 16px 18px 20px;
}

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

.noticia-card h3 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 8px;
}

.noticia-card p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.noticias-mas {
    margin-top: 24px;
}

.noticias-vacio {
    color: var(--text-muted);
    padding: 30px 0;
}

.noticias-paginado {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 30px 0 20px;
    color: var(--text-muted);
    font-size: 13px;
}

.noticias-otras {
    padding-bottom: 40px;
}

/* ============================
   NOTICIAS — nota individual
   ============================ */

.noticia-detalle {
    padding: 24px 0 10px;
}

.noticia-aviso-previa {
    background: rgba(255, 136, 173, 0.12);
    border: 1px solid var(--pink);
    color: var(--cream);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 20px;
}

.noticia-volver {
    display: inline-block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
}

.noticia-volver:hover {
    color: var(--coral);
}

.noticia-detalle h1 {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.3px;
    margin: 0 0 14px;
}

.noticia-bajada {
    font-size: 17px;
    line-height: 1.5;
    color: var(--cream);
    margin: 0 0 22px;
}

.noticia-foto {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    margin-bottom: 26px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.noticia-cuerpo {
    font-size: 16px;
    line-height: 1.7;
    overflow-wrap: break-word;
}

.noticia-cuerpo p {
    margin: 0 0 18px;
}

.noticia-cuerpo a {
    color: var(--pink);
}

.noticia-cuerpo strong {
    color: var(--cream);
    font-weight: 700;
}

/* Fotos dentro del texto ([foto 1] / [foto 2]) */
.noticia-figura {
    margin: 30px 0;
}

.noticia-figura img {
    display: block;
    max-width: 100%;
    max-height: 85vh; /* las fotos verticales no ocupan más que la pantalla */
    width: auto;
    height: auto;
    margin: 0 auto;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.noticia-figura figcaption {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
    text-align: center;
}

.noticia-compartir {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 30px 0 24px;
    padding-top: 22px;
    border-top: 1px solid var(--border-subtle);
}

.noticia-compartir span {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--sage);
    margin-right: 4px;
}

.noticia-escuchar {
    display: block;
    width: 100%;
    border: none;
    cursor: pointer;
    font: inherit;
    font-size: 16px;
    text-align: center;
    background: linear-gradient(90deg, var(--coral), var(--pink));
    color: white;
    font-weight: 700;
    text-decoration: none;
    padding: 14px;
    border-radius: 12px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.noticia-404 {
    text-align: center;
    padding: 50px 0 0;
}

.noticia-404 p {
    color: var(--text-muted);
}

/* ============================
   BANNERS PUBLICITARIOS
   Mobile 300x250 / escritorio 728x90 (el <picture> elige cuál según el ancho)
   ============================ */

.banner-espacio {
    position: relative;
    z-index: 1;
    margin: 30px auto 10px;
    text-align: center;
}

/* Dentro de una nota (en medio del texto y al final) */
.noticia-detalle .banner-espacio {
    margin: 30px auto;
}

.banner-etiqueta {
    display: block;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.7;
    margin-bottom: 6px;
}

.banner {
    display: inline-block;
    max-width: 100%;
    line-height: 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.banner[hidden] {
    display: none;
}

.banner img {
    max-width: 100%;
    height: auto;
}

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

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

.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;
}

.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;
}

/* Si hay un banner justo antes, ese ya separa: menos margen arriba */
.banner-espacio + .contacto-section {
    margin-top: 20px;
}

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

/* Íconos redondos de redes (contacto y "Compartir" de las notas) */
.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;
}

.contact-link:hover {
    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;
}

.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) y botón secundario
   ============================ */

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

/* También se usa en "Ver todas las noticias" y en el paginado */
.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 50px;
    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;
}

/* =====================================================================
   SOLO CELULAR (menos de 900px) — ajustes puntuales
   ===================================================================== */

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

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

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

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

/* =====================================================================
   ESCRITORIO (900px o más) — todo junto, en el mismo orden que arriba
   ===================================================================== */

@media (min-width: 900px) {

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

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

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

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

    /* Foto de fondo: ocupa todo el ancho y se extiende más abajo que el bloque del hero */
    .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;
    }

    /* --- Barra del reproductor: centrada y angosta --- */
    .barra-radio {
        left: 50%;
        right: auto;
        width: 460px;
        transform: translate(-50%, calc(100% + 24px));
    }

    .barra-radio.visible {
        transform: translateX(-50%);
    }

    /* Lo que venga justo después del hero necesita aire, por la foto de fondo */
    .hero + .banner-espacio,
    .hero + .noticias-section {
        margin-top: 120px;
    }

    /* --- Noticias --- */
    .noticias-section {
        position: relative;
        z-index: 1; /* por encima de la foto de fondo del hero */
        padding: 60px 0 20px;
    }

    .banner-espacio + .noticias-section {
        padding-top: 50px;
    }

    .noticias-section h1,
    .noticias-section h2 {
        font-size: 36px;
    }

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

    .noticia-detalle {
        max-width: 760px;
        margin: 0 auto;
        padding-top: 40px;
    }

    .noticia-detalle h1 {
        font-size: 44px;
    }

    .noticia-bajada {
        font-size: 19px;
    }

    .noticia-escuchar {
        display: inline-block;
        width: auto;
        padding: 14px 28px;
    }

    /* --- Programación: sin tabs, Lun-Vie a la izquierda y fin de semana a la derecha --- */
    .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;
    }

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

    .program-blocks-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        align-items: start;
    }

    .program-weekend-group {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

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

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

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

    /* --- Descargas: en escritorio va pegada al contacto, sin espacio extra --- */
    .downloads-row {
        padding: 0;
    }

    /* --- Footer --- */
    .site-footer {
        padding: 50px 0 60px;
    }

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