﻿/* ============================================================
   Sitio público – diseño encajonado (boxed) y responsivo
   Los colores --primary y --secondary se definen desde el admin.
   ============================================================ */
*,
*::before,
*::after { box-sizing: border-box; }

:root {
    --primary: #e63946;
    --secondary: #1d3557;
    --text: #222;
    --muted: #6b7280;
    --bg-page: #e9edf2;
    --bg-box: #ffffff;
    --radius: 14px;
    --box-width: 1100px;
    --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    line-height: 1.6;
    background-color: var(--bg-page);
    background-attachment: fixed;
}
body.bg-cover { background-size: cover; background-position: center top; background-repeat: no-repeat; }
body.bg-repeat { background-size: auto; background-repeat: repeat; }
body.bg-pattern { background-image: radial-gradient(circle at 20% 0%, rgba(255,255,255,.7), transparent 50%), radial-gradient(circle at 100% 100%, rgba(29,53,87,.08), transparent 50%); }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--secondary); line-height: 1.25; margin: 0 0 .6em; }

/* --------- Contenedor encajonado --------- */
.site-wrapper {
    width: 100%;
    max-width: var(--box-width);
    margin: 0 auto;
    background: var(--bg-box);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 40px rgba(0, 0, 0, .12);
}
@media (min-width: 1140px) {
    .site-wrapper { margin: 24px auto; min-height: calc(100vh - 48px); border-radius: var(--radius); }
    .site-header { border-radius: var(--radius) var(--radius) 0 0; }
    .site-footer:last-child, .player-bar:last-child { border-radius: 0 0 var(--radius) var(--radius); }
}

.site-main { flex: 1; padding: 0 0 28px; }

/* --------- Header --------- */
.site-header {
    background: var(--secondary);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 24px;
    flex-wrap: wrap;
}
.brand img { max-height: 64px; width: auto; }
.brand-text { font-size: 1.5rem; font-weight: 800; color: #fff; letter-spacing: .5px; }
.brand:hover { text-decoration: none; }

.main-nav { display: flex; align-items: center; gap: 20px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    display: block;
    transition: background .2s;
}
.main-nav a:hover, .main-nav a.active { background: var(--primary); text-decoration: none; }

.nav-social { display: flex; gap: 6px; }
.nav-social a, .footer-social a {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    padding: 0;
    transition: background .2s, transform .2s;
}
.nav-social a:hover, .footer-social a:hover { background: var(--primary); transform: translateY(-2px); }
.nav-social svg, .footer-social svg { width: 18px; height: 18px; fill: #fff; }

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 44px; height: 44px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 8px;
}
.nav-toggle span { display: block; height: 3px; background: #fff; border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .main-nav {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
    }
    .main-nav.open { max-height: 600px; padding-bottom: 12px; }
    .main-nav ul { flex-direction: column; }
    .main-nav a { padding: 12px 14px; }
    .nav-social { justify-content: center; }
}

/* --------- Slider --------- */
.slider {
    position: relative;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16 / 6;
    max-height: 480px;
}
.slider-track { position: absolute; inset: 0; }
.slide {
    position: absolute; inset: 0;
    opacity: 0;
    transition: opacity .9s ease;
}
.slide.active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide a { display: block; height: 100%; }
.slide-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 40px 32px 24px;
    background: linear-gradient(transparent, rgba(0,0,0,.75));
    color: #fff;
}
.slide-caption h2 { color: #fff; margin: 0 0 4px; font-size: clamp(1.2rem, 3vw, 2rem); text-shadow: 0 2px 6px rgba(0,0,0,.5); }
.slide-caption p { margin: 0; font-size: clamp(.9rem, 2vw, 1.1rem); opacity: .95; }

.slider-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 2;
    background: rgba(0,0,0,.4);
    color: #fff;
    border: 0;
    width: 42px; height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: background .2s;
}
.slider-btn:hover { background: var(--primary); }
.slider-btn.prev { left: 14px; }
.slider-btn.next { right: 14px; }

.slider-dots {
    position: absolute; bottom: 10px; left: 0; right: 0;
    display: flex; justify-content: center; gap: 8px;
    z-index: 2;
}
.slider-dots .dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,.5);
    cursor: pointer;
    padding: 0;
    transition: .2s;
}
.slider-dots .dot.active { background: var(--primary); transform: scale(1.3); }

@media (max-width: 600px) {
    .slider { aspect-ratio: 4 / 3; }
    .slider-btn { width: 36px; height: 36px; font-size: 14px; }
    .slide-caption { padding: 30px 16px 20px; }
}

/* --------- Reproductor de radio: barra fina y larga fija al pie --------- */
.player-bar {
    position: sticky;
    bottom: 0;
    z-index: 100;
    overflow: hidden;
}
.radio-player {
    height: 64px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 16px;
    background: linear-gradient(90deg, var(--secondary), color-mix(in srgb, var(--secondary) 75%, #000));
    color: #fff;
    box-shadow: 0 -6px 24px rgba(0,0,0,.25);
    border-top: 2px solid var(--primary);
}
.rp-play {
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 0;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0,0,0,.35);
    transition: transform .15s, filter .15s;
    position: relative;
}
.rp-play:hover { transform: scale(1.06); filter: brightness(1.1); }
.rp-play svg { width: 22px; height: 22px; fill: #fff; }
.rp-play .icon-pause, .rp-play .rp-spinner { display: none; }
.radio-player.playing .rp-play .icon-play { display: none; }
.radio-player.playing .rp-play .icon-pause { display: block; }
.radio-player.loading .rp-play svg { display: none; }
.radio-player.loading .rp-play .rp-spinner {
    display: block;
    width: 20px; height: 20px;
    border: 3px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg) } }

.rp-cover {
    width: 46px; height: 46px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255,255,255,.1);
}
.rp-cover img { width: 100%; height: 100%; object-fit: cover; }
.rp-cover-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; opacity: .6; }
.rp-cover-placeholder .ico { width: 24px; height: 24px; }

.rp-body { flex: 1; min-width: 0; line-height: 1.25; }
.rp-title { font-weight: 800; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 8px; }
.rp-live {
    background: var(--primary);
    font-size: 9px; font-weight: 800;
    padding: 2px 6px;
    border-radius: 5px;
    letter-spacing: .5px;
    animation: pulse 1.6s infinite;
    flex-shrink: 0;
}
.rp-live i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #fff; margin-right: 4px; vertical-align: 1px; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .55 } }
.rp-subtitle { opacity: .85; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-status { font-size: .7rem; opacity: .65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.rp-body { flex: 0 1 260px; }
.rp-visualizer { flex: 1 1 auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 3px; height: 30px; min-width: 0; overflow: hidden; padding: 0 10px; }
.rp-visualizer span { flex: 1 1 0; max-width: 6px; height: 4px; background: linear-gradient(to top, var(--primary), #fff); border-radius: 2px; opacity: .55; }
.radio-player.playing .rp-visualizer span { animation-name: bars; animation-timing-function: ease-in-out; animation-iteration-count: infinite; opacity: 1; }
@keyframes bars { 0%,100% { height: 4px } 50% { height: 30px } }

.rp-volume { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.rp-mute { background: transparent; border: 0; cursor: pointer; padding: 4px; display: flex; }
.rp-mute svg { width: 20px; height: 20px; fill: #fff; }
.rp-volume-range { width: 100px; accent-color: var(--primary); cursor: pointer; }

@media (max-width: 600px) {
    .radio-player { height: 60px; gap: 10px; padding: 0 12px; }
    .rp-visualizer, .rp-volume-range { display: none; }
    .rp-status { display: none; }
}

/* --------- Portada --------- */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; padding: 20px 24px 24px; }
.home-grid.no-sidebar { grid-template-columns: 1fr; }
.home-main { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.home-text { padding: 0; }
.home-text h1 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 6px; }
.home-text h1::after { margin-top: 8px; }
.home-text p { margin: 0 0 8px; }
/* Noticias */
.news-section .section-head { margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid #e5e7eb; }
.news-section .section-head h2 { font-size: 1.35rem; }
.news-section .section-head h2::after { content: ""; display: block; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.news-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.news-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.news-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.news-card.featured { grid-column: span 3; flex-direction: row; }
.news-card.featured .news-img { width: 48%; flex-shrink: 0; aspect-ratio: auto; min-height: 260px; }
.news-card.featured h3 { font-size: 1.45rem; }
.news-card.featured p { font-size: 1rem; }
.news-list .news-card.featured { grid-column: auto; flex-direction: column; }
.news-list .news-card.featured .news-img { width: auto; aspect-ratio: 16 / 9; min-height: 0; }
.news-list .news-card.featured h3 { font-size: 1.05rem; }
.news-img { display: block; aspect-ratio: 16 / 9; background: var(--secondary); overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.news-card:hover .news-img img { transform: scale(1.04); }
.news-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.35); }
.news-noimg .ico { width: 42px; height: 42px; }
.news-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.news-date { font-size: .75rem; color: var(--muted); display: flex; align-items: center; gap: 4px; text-transform: uppercase; letter-spacing: .4px; }
.news-date .ico { width: 13px; height: 13px; }
.news-card h3 { margin: 6px 0 6px; font-size: 1.05rem; line-height: 1.3; }
.news-card h3 a { color: var(--secondary); }
.news-card h3 a:hover { color: var(--primary); text-decoration: none; }
.news-card p { margin: 0 0 10px; font-size: .9rem; color: #555; flex: 1; }
.news-more { font-weight: 700; font-size: .85rem; display: inline-flex; align-items: center; gap: 2px; margin-top: auto; }
.news-more .ico { width: 14px; height: 14px; }
.news-single h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 6px 0 14px; }
.news-single .news-date { font-size: .8rem; }
.news-single-img { width: 100%; border-radius: 12px; margin-bottom: 18px; }
.news-single .page-content { font-size: 1.02rem; }
.news-share { display: flex; align-items: center; gap: 8px; margin: 22px 0; padding-top: 16px; border-top: 1px solid #e5e7eb; font-weight: 600; font-size: .9rem; color: var(--muted); }
.news-share a { width: 34px; height: 34px; border-radius: 50%; background: var(--secondary); display: inline-flex; align-items: center; justify-content: center; }
.news-share a:hover { background: var(--primary); }
.news-share svg { width: 16px; height: 16px; fill: #fff; }
.news-mini { list-style: none; margin: 0; padding: 0; }
.news-mini li { border-bottom: 1px solid #e5e7eb; }
.news-mini li:last-child { border-bottom: 0; }
.news-mini a { display: flex; gap: 10px; padding: 8px 0; color: var(--text); align-items: center; }
.news-mini a:hover { color: var(--primary); text-decoration: none; }
.news-mini img { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.news-mini span { font-size: .85rem; font-weight: 600; line-height: 1.25; }
.news-mini small { display: block; font-weight: 400; color: var(--muted); font-size: .72rem; margin-top: 2px; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 22px; }
.pagination a { min-width: 36px; height: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: #f1f5f9; color: var(--secondary); font-weight: 700; }
.pagination a.active, .pagination a:hover { background: var(--primary); color: #fff; text-decoration: none; }
@media (max-width: 760px) { .news-grid { grid-template-columns: 1fr 1fr; } .news-card.featured { grid-column: span 2; flex-direction: column; } .news-card.featured .news-img { width: auto; aspect-ratio: 16 / 9; min-height: 0; } }
@media (max-width: 480px) { .news-grid { grid-template-columns: 1fr; } .news-card.featured { grid-column: auto; } }
/* Slider de videos */
.video-count { font-size: .75rem; color: rgba(255,255,255,.8); font-weight: 600; }
.video-slider { position: relative; background: #000; }
.video-track { position: relative; aspect-ratio: 16 / 9; }
.video-slide { position: absolute; inset: 0; display: none; }
.video-slide.active { display: block; }
.video-poster { position: relative; width: 100%; height: 100%; border: 0; padding: 0; background: #000; cursor: pointer; display: block; overflow: hidden; }
.video-poster img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .3s, opacity .3s; }
.video-poster:hover img { transform: scale(1.04); opacity: 1; }
.video-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.35); }
.video-noimg .ico { width: 40px; height: 40px; }
.video-playbtn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.4); transition: transform .15s; }
.video-playbtn .ico { width: 24px; height: 24px; fill: #fff; margin-left: 3px; }
.video-poster:hover .video-playbtn { transform: translate(-50%, -50%) scale(1.1); }
.video-player { position: absolute; inset: 0; }
.video-player iframe, .video-player video { width: 100%; height: 100%; display: block; background: #000; }
.video-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 12px 8px; background: linear-gradient(transparent, rgba(0,0,0,.8)); color: #fff; font-size: .85rem; font-weight: 600; pointer-events: none; }
.video-slide .video-player ~ .video-title { display: none; }
.video-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.video-nav:hover { background: var(--primary); }
.video-nav.prev { left: 8px; } .video-nav.next { right: 8px; }
.video-nav .ico { width: 18px; height: 18px; }

/* Mosaico de noticias (1 grande + pequeñas) */
.news-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 175px; gap: 8px; }
.news-mosaic .news-tile:first-child { grid-column: span 2; grid-row: span 2; }
.news-tile { position: relative; border-radius: 6px; overflow: hidden; background: var(--secondary); }
.news-tile a { position: absolute; inset: 0; display: block; color: #fff; }
.news-tile a:hover { text-decoration: none; }
.news-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-tile a:hover img { transform: scale(1.05); }
.tile-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.3); }
.tile-noimg .ico { width: 40px; height: 40px; }
.tile-cat { position: absolute; top: 10px; left: 10px; background: var(--primary); color: #fff; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; padding: 4px 8px; border-radius: 3px; z-index: 2; }
.tile-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 12px 10px; background: linear-gradient(transparent, rgba(0,0,0,.55) 40%, rgba(0,0,0,.88)); z-index: 1; }
.tile-body h3 { color: #fff; margin: 0; font-size: .92rem; line-height: 1.25; font-weight: 800; text-shadow: 0 1px 3px rgba(0,0,0,.6); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tile-meta { display: flex; align-items: center; gap: 4px; font-size: .7rem; color: rgba(255,255,255,.75); margin-top: 6px; }
.tile-meta .ico { width: 12px; height: 12px; }
.news-mosaic .news-tile:first-child .tile-body { padding: 80px 18px 14px; }
.news-mosaic .news-tile:first-child h3 { font-size: 1.45rem; -webkit-line-clamp: 3; }
.news-mosaic .news-tile:first-child .tile-cat { font-size: .75rem; padding: 5px 10px; }
.news-mosaic .news-tile:first-child .tile-meta { font-size: .78rem; margin-top: 8px; }
@media (max-width: 760px) {
    .news-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
    .news-mosaic .news-tile:first-child { grid-column: span 2; grid-row: span 1; }
    .news-mosaic .news-tile:first-child h3 { font-size: 1.15rem; }
}

/* Noticias recientes (tarjetas bajo el mosaico) */
.recent-head { margin: 22px 0 14px; background: var(--secondary); border-radius: 4px; height: 40px; display: flex; align-items: center; overflow: hidden; }
.recent-head span { background: var(--primary); color: #fff; font-weight: 800; font-size: 1.05rem; padding: 0 28px 0 14px; height: 100%; display: flex; align-items: center; clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%); }
.recent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.recent-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.05); transition: box-shadow .2s, transform .2s; }
.recent-card:hover { box-shadow: 0 8px 22px rgba(0,0,0,.1); transform: translateY(-2px); }
.recent-img { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--secondary); overflow: hidden; }
.recent-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.recent-card:hover .recent-img img { transform: scale(1.05); }
.recent-body { padding: 12px 14px 14px; }
.recent-body h3 { margin: 0 0 6px; font-size: .98rem; line-height: 1.3; font-weight: 800; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.recent-body h3 a { color: var(--secondary); }
.recent-body h3 a:hover { color: var(--primary); text-decoration: none; }
.recent-body .tile-meta { color: var(--muted); }
@media (max-width: 600px) { .recent-grid { grid-template-columns: 1fr; } }

/* Módulos en la columna derecha */
.home-side .home-module .section-head { padding: 10px 14px; }
.home-side .home-module .section-head h2 { font-size: .9rem; }
.home-side .home-module-body { padding: 10px 14px; }
.home-side .prog-mini li { gap: 8px; padding: 6px 0; }
.home-side .prog-mini .time { min-width: 0; font-size: .78rem; }
.home-side .prog-mini .name { font-size: .88rem; }
.home-side .host-mini { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.home-side .host-mini .img { width: 60px; height: 60px; }
.home-side .host-mini .name { font-size: .78rem; }
.home-side .host-mini .role { display: none; }
.home-module {
    padding: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.home-module .section-head {
    margin: 0;
    padding: 12px 16px;
    background: var(--secondary);
    color: #fff;
}
.home-module .section-head h2 { font-size: 1rem; color: #fff; }
.home-module .section-head h2 .ico { color: #fff; width: 18px; height: 18px; }
.home-module .section-head h2 small { color: rgba(255,255,255,.75); }
.home-module .section-head .btn-outline { border-color: rgba(255,255,255,.6); color: #fff; padding: 4px 10px; font-size: .8rem; }
.home-module .section-head .btn-outline:hover { background: #fff; color: var(--secondary); }
.home-module-body { padding: 14px 16px; flex: 1; }
.empty-note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; margin: 0; padding: 6px 0; }
.empty-note .ico { color: var(--primary); }
/* Listas compactas dentro de las tarjetas de portada */
.prog-mini { list-style: none; margin: 0; padding: 0; }
.prog-mini li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
.prog-mini li:last-child { border-bottom: 0; }
.prog-mini .time { font-weight: 800; color: var(--primary); font-size: .85rem; white-space: nowrap; min-width: 92px; }
.prog-mini .img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: #f1f5f9; }
.prog-mini .name { font-weight: 700; font-size: .95rem; line-height: 1.2; }
.prog-mini .host { font-size: .8rem; color: var(--muted); }
.prog-mini li.live .time { background: var(--primary); color: #fff; padding: 3px 8px; border-radius: 6px; }
.host-mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; }
.host-mini a, .host-mini div { text-align: center; color: var(--text); }
.host-mini a:hover { text-decoration: none; color: var(--primary); }
.host-mini .img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin: 0 auto 6px; border: 3px solid color-mix(in srgb, var(--primary) 20%, #fff); background: #f1f5f9; display: flex; align-items: center; justify-content: center; color: #94a3b8; overflow: hidden; }
.host-mini .img img { width: 100%; height: 100%; object-fit: cover; }
.host-mini .name { font-weight: 700; font-size: .85rem; line-height: 1.2; }
.host-mini .role { font-size: .72rem; color: var(--muted); }
.home-side { display: flex; flex-direction: column; gap: 18px; }
.side-box { background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; }
.side-box h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 0 0 12px; display: flex; align-items: center; gap: 6px; }
.side-box h3 .ico { width: 16px; height: 16px; color: var(--primary); }
.side-box .ads { padding: 0; flex-direction: column; gap: 12px; }
.side-box .ad { flex: none; }
.ad-placeholder {
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    background: #fff;
    min-height: 250px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    text-align: center; color: var(--muted); padding: 20px;
}
.ad-placeholder .ico { width: 36px; height: 36px; color: #cbd5e1; margin-bottom: 6px; }
.ad-placeholder strong { color: var(--secondary); }
.ad-placeholder span { font-size: .85rem; }
.ad-placeholder a { margin-top: 10px; background: var(--primary); color: #fff; padding: 7px 16px; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.ad-placeholder a:hover { text-decoration: none; filter: brightness(1.08); }
.side-social { display: flex; flex-direction: column; gap: 6px; }
.side-social a { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 8px 10px; color: var(--text); font-weight: 600; font-size: .9rem; transition: .15s; }
.side-social a:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.side-social svg { width: 18px; height: 18px; fill: var(--secondary); }
.side-social a:hover svg { fill: var(--primary); }
.side-app { background: var(--secondary); color: #fff; border: 0; }
.side-app h3 { color: #fff; } .side-app h3 .ico { color: #fff; }
.side-app p { margin: 0 0 12px; font-size: .9rem; opacity: .9; }
@media (max-width: 1000px) { .home-modules { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .home-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .home-grid { padding: 16px; } }
.on-air { margin: 20px 24px 0; }

/* --------- Al aire ahora --------- */
.on-air {
    margin: 20px 24px 0;
    border-radius: var(--radius);
    background: #fff5f5;
    border: 1px solid color-mix(in srgb, var(--primary) 35%, #fff);
    padding: 14px 18px;
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.on-air-label { font-weight: 800; color: var(--primary); text-transform: uppercase; font-size: .8rem; letter-spacing: .5px; display: flex; align-items: center; gap: 6px; }
.on-air-label .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); animation: pulse 1.4s infinite; }
.on-air-body { display: flex; align-items: center; gap: 14px; }
.on-air-body img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.on-air-body h2 { margin: 0; font-size: 1.15rem; }
.on-air-body p { margin: 0; color: var(--muted); font-size: .9rem; }

/* --------- Secciones --------- */
.section-alt { background: #f8fafc; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head h2 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 1.4rem; }
.section-head h2 .ico { color: var(--primary); width: 22px; height: 22px; }
.section-head h2 small { font-weight: 500; color: var(--muted); font-size: .85rem; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); padding: 8px 16px; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.muted { color: var(--muted); }

/* --------- Programación --------- */
.prog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.prog-list { display: grid; gap: 14px; }
.prog {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s;
}
.prog:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.prog.live { border-color: var(--primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 25%, transparent); }
.prog-img { position: relative; aspect-ratio: 3 / 2; background: var(--secondary); }
.prog-img img { width: 100%; height: 100%; object-fit: cover; }
.prog-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.4); }
.prog-noimg .ico { width: 40px; height: 40px; }
.prog-live { position: absolute; top: 8px; left: 8px; background: var(--primary); color: #fff; font-size: 10px; font-weight: 800; padding: 3px 7px; border-radius: 5px; animation: pulse 1.6s infinite; }
.prog-body { padding: 12px 14px 14px; }
.prog-time { font-weight: 700; color: var(--primary); font-size: .85rem; display: flex; align-items: center; gap: 4px; }
.prog-time .ico { width: 14px; height: 14px; }
.prog-body h3 { margin: 4px 0 2px; font-size: 1.05rem; }
.prog-host { font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.prog-host .ico { width: 14px; height: 14px; }
.prog-body p { margin: 8px 0 0; font-size: .9rem; color: #444; }
.prog-days { margin-top: 8px; font-size: .75rem; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.prog-list .prog { flex-direction: row; }
.prog-list .prog-img { width: 180px; flex-shrink: 0; aspect-ratio: auto; }
@media (max-width: 600px) { .prog-list .prog { flex-direction: column; } .prog-list .prog-img { width: 100%; aspect-ratio: 3 / 2; } }

.day-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 20px; border-bottom: 2px solid #e5e7eb; padding-bottom: 10px; }
.day-tab {
    border: 0; background: #f1f5f9; color: var(--secondary);
    padding: 9px 14px; border-radius: 999px; font-weight: 700; cursor: pointer; font: inherit; font-weight: 700;
    transition: .15s;
}
.day-tab .full { display: none; }
@media (min-width: 760px) { .day-tab .short { display: none; } .day-tab .full { display: inline; } .day-tab { padding: 9px 16px; } }
.day-tab:hover { background: #e2e8f0; }
.day-tab.active { background: var(--primary); color: #fff; }
.day-panel { display: none; }
.day-panel.active { display: block; }

/* --------- Locutores --------- */
.host-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.host { text-align: center; background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 20px 14px; transition: box-shadow .2s, transform .2s; }
.host:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.host-img { width: 120px; height: 120px; margin: 0 auto 12px; border-radius: 50%; overflow: hidden; background: #f1f5f9; border: 4px solid color-mix(in srgb, var(--primary) 20%, #fff); }
.host-img img { width: 100%; height: 100%; object-fit: cover; }
.host-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #94a3b8; }
.host-noimg .ico { width: 48px; height: 48px; }
.host h3 { margin: 0 0 2px; font-size: 1.05rem; }
.host-role { color: var(--primary); font-weight: 600; font-size: .85rem; }
.host p { font-size: .88rem; color: #555; margin: 8px 0 0; }
.host-social { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.host-social a { width: 32px; height: 32px; border-radius: 50%; background: var(--secondary); display: inline-flex; align-items: center; justify-content: center; transition: background .2s; }
.host-social a:hover { background: var(--primary); }
.host-social svg { width: 15px; height: 15px; fill: #fff; }

/* --------- Publicidad --------- */
.ads { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding: 18px 24px; }
.ad { flex: 1 1 280px; max-width: 100%; display: flex; justify-content: center; }
.ad img { max-width: 100%; height: auto; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.ads-all_pages { background: #f8fafc; border-top: 1px solid #e5e7eb; }
.ads-home_top { padding-top: 20px; }
.with-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 0; }
.sidebar .ads { flex-direction: column; padding: 24px 24px 24px 0; }
.sidebar .ad { flex: none; }
@media (max-width: 860px) { .with-sidebar { grid-template-columns: 1fr; } .sidebar .ads { padding: 0 24px 24px; flex-direction: row; } }

/* --------- Contacto: redes sociales --------- */
.contact-social { margin-top: 18px; }
.contact-social h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.contact-social h3 .ico { width: 16px; height: 16px; color: var(--primary); }
.contact-social-links { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-social-links a { display: inline-flex; align-items: center; gap: 8px; background: var(--secondary); color: #fff; padding: 8px 14px 8px 10px; border-radius: 999px; font-weight: 600; font-size: .88rem; transition: background .2s, transform .15s; }
.contact-social-links a:hover { background: var(--primary); text-decoration: none; transform: translateY(-2px); }
.contact-social-links svg { width: 18px; height: 18px; fill: #fff; }

/* --------- Contacto: imagen --------- */
.contact-image { margin-bottom: 18px; background: var(--secondary); border-radius: 12px; padding: 24px; display: flex; justify-content: center; }
.contact-image img { max-height: 160px; width: auto; }
/* --------- Contenido --------- */
.content-block { padding: 24px; }
.content-block h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); position: relative; padding-bottom: 10px; }
.content-block h1::after {
    content: "";
    display: block;
    width: 60px; height: 4px;
    background: var(--primary);
    border-radius: 2px;
    margin-top: 10px;
}
.page-content img { border-radius: 10px; }
.page-content iframe { max-width: 100%; }
.home-text { font-size: 1.05rem; }

/* --------- CTA App --------- */
.app-cta {
    margin: 0 24px 24px;
    padding: 28px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 70%, #000));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.app-cta h2 { color: #fff; margin: 0 0 4px; }
.app-cta p { margin: 0; opacity: .9; }
.app-badges { display: flex; gap: 12px; flex-wrap: wrap; }

.badge-gplay {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #000;
    color: #fff;
    border: 1px solid #555;
    border-radius: 10px;
    padding: 8px 16px 8px 12px;
    text-decoration: none;
    line-height: 1.1;
    transition: transform .15s;
}
.badge-gplay:hover { transform: translateY(-2px); text-decoration: none; }
.badge-gplay svg { width: 30px; height: 30px; }
.badge-gplay span { display: flex; flex-direction: column; font-size: 1.1rem; font-weight: 600; }
.badge-gplay small { font-size: .6rem; font-weight: 400; letter-spacing: .5px; }
.badge-gplay.small { margin-top: 12px; padding: 6px 12px 6px 10px; }
.badge-gplay.small span { font-size: .95rem; }
.badge-gplay.small svg { width: 24px; height: 24px; }

/* --------- Contacto --------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; margin-top: 20px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info p { margin: 0 0 10px; }
.map iframe { width: 100%; height: 260px; border: 0; border-radius: 10px; margin-top: 12px; }

.contact-form label { display: block; font-weight: 600; margin-bottom: 14px; font-size: .95rem; }
.contact-form input, .contact-form textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 11px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font: inherit;
    font-weight: 400;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--primary); border-color: transparent; }
.hp { position: absolute; left: -9999px; opacity: 0; }

.btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 8px;
    font-weight: 600;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    transition: filter .15s, transform .15s;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-whatsapp { background: #25d366; color: #fff; }

.alert { padding: 12px 16px; border-radius: 8px; margin: 16px 24px; font-size: .95rem; }
.content-block .alert, .contact-form .alert { margin: 0 0 16px; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-danger { background: #fee2e2; color: #991b1b; }

/* --------- Footer --------- */
.site-footer { background: var(--secondary); color: #e5e7eb; margin-top: auto; }
.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 28px;
    padding: 36px 24px 24px;
}
.footer-col h4 { color: #fff; margin-bottom: 12px; font-size: 1rem; text-transform: uppercase; letter-spacing: .5px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 6px; }
.footer-col a { color: #e5e7eb; }
.footer-col a:hover { color: #fff; }
.footer-col p { margin: 0 0 6px; font-size: .95rem; }
.footer-brand img { max-height: 70px; width: auto; margin-bottom: 10px; }
.footer-brand .brand-text { display: block; margin-bottom: 8px; }
.footer-social { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    text-align: center;
    padding: 14px 24px;
    font-size: .85rem;
    opacity: .85;
}
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-inner { grid-template-columns: 1fr; text-align: center; } .footer-social { justify-content: center; } }

/* Iconos SVG */
.ico { width: 18px; height: 18px; flex-shrink: 0; vertical-align: -3px; }
.slider-btn { display: flex; align-items: center; justify-content: center; }
.slider-btn .ico { width: 22px; height: 22px; }
.contact-info p { display: flex; align-items: flex-start; gap: 8px; }
.contact-info .ico { color: var(--primary); margin-top: 4px; }
.footer-col p.with-ico { display: flex; align-items: flex-start; gap: 8px; }
.footer-col .ico { width: 16px; height: 16px; margin-top: 4px; opacity: .8; }
.btn .ico { width: 16px; height: 16px; margin-right: 4px; }

/* Respaldo para navegadores sin color-mix */
@supports not (background: color-mix(in srgb, red, blue)) {
    .radio-player { background: var(--secondary); }
    .app-cta { background: var(--primary); }
}
