/* ==========================================================
   Radio Estec Valledupar - Hoja de estilos principal
   Mobile-first, sin dependencias externas de CSS.
   ========================================================== */

:root {
    --navy-950: #070d18;
    --navy-900: #0b1524;
    --navy-800: #0f1d33;
    --navy-700: #16294a;
    --navy-600: #1c3459;
    --gold-500: #f5a623;
    --gold-400: #ffc555;
    --gold-050: #fff4e0;
    --red-600: #c81e2e;
    --red-700: #a5182a;
    --white: #ffffff;
    --gray-200: #e7ebf3;
    --gray-400: #a9b4c9;
    --gray-500: #7c8aa5;

    --font-display: 'Poppins', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.45);

    --header-h: 76px;
    --mini-player-h: 68px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--navy-900);
    color: var(--white);
    font-family: var(--font-body);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    padding-bottom: var(--mini-player-h);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); margin: 0 0 .5em; line-height: 1.2; }
p { margin: 0 0 1em; color: var(--gray-400); }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

.skip-link {
    position: absolute; left: -999px; top: 0; background: var(--gold-500); color: var(--navy-900);
    padding: .75rem 1rem; z-index: 1000; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

section { padding: 3.5rem 0; }
.section-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.75rem; flex-wrap: wrap; gap: .75rem;
}
.section-head h2 {
    font-size: 1.5rem; font-weight: 800; text-transform: uppercase; letter-spacing: .02em;
    position: relative; padding-bottom: .5rem;
}
.section-head h2::after {
    content: ''; position: absolute; left: 0; bottom: 0; width: 46px; height: 4px;
    background: var(--gold-500); border-radius: var(--radius-pill);
}
.section-head .see-all { color: var(--gold-500); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .4rem; color: var(--gold-500);
    font-weight: 700; text-transform: uppercase; font-size: .78rem; letter-spacing: .12em; margin-bottom: .75rem;
}

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .9rem 1.6rem; border-radius: var(--radius-pill); border: none;
    font-weight: 700; font-size: .95rem; text-transform: uppercase; letter-spacing: .03em;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); color: var(--navy-950); box-shadow: 0 8px 24px rgba(245, 166, 35, .35); }
.btn-gold:hover { box-shadow: 0 12px 30px rgba(245, 166, 35, .45); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.25); }
.btn-outline:hover { border-color: var(--gold-500); color: var(--gold-500); }
.btn-red { background: linear-gradient(135deg, var(--red-600), var(--red-700)); color: var(--white); }
.btn-sm { padding: .65rem 1.2rem; font-size: .8rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 500;
    background: rgba(7, 13, 24, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,.06);
    height: var(--header-h);
    display: flex; align-items: center;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand-logo { width: 46px; height: 46px; object-fit: contain; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-size: .95rem; letter-spacing: .04em; }
.brand-name strong { color: var(--gold-500); }
.brand-city { font-size: .7rem; color: var(--gray-400); }

.main-nav ul { display: flex; gap: 1.75rem; }
.main-nav a {
    font-weight: 600; font-size: .88rem; text-transform: uppercase; letter-spacing: .03em;
    color: var(--gray-200); padding: .4rem 0; position: relative;
}
.main-nav a::after {
    content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px;
    background: var(--gold-500); transition: width .2s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold-500); }
.main-nav a.active::after, .main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.social-icons { display: flex; gap: .6rem; }
.social-icons a {
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(255,255,255,.06); color: var(--gray-200);
    transition: background .2s ease, color .2s ease;
}
.social-icons a:hover { background: var(--gold-500); color: var(--navy-950); }
.social-icons--header { display: none; }

.nav-toggle {
    background: none; border: none; width: 40px; height: 40px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 5px; z-index: 510;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 899px) {
    .main-nav {
        position: fixed; inset: var(--header-h) 0 0 0; background: var(--navy-950);
        transform: translateY(-110%); transition: transform .3s ease; overflow-y: auto;
        padding: 1.5rem 0; z-index: 499;
    }
    .main-nav.open { transform: translateY(0); }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav a { display: block; padding: 1rem 1.25rem; font-size: 1.05rem; }
    .main-nav .social-icons { display: flex; gap: .75rem; padding: 1.25rem; }
}
@media (min-width: 900px) {
    .nav-toggle { display: none; }
    .social-icons--header { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    padding: 3rem 0 4rem;
    background:
        radial-gradient(ellipse at top right, rgba(245,166,35,.12), transparent 55%),
        linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 60%, var(--navy-800) 100%);
}
.hero-inner { display: grid; gap: 2.5rem; align-items: center; min-width: 0; }
.hero-copy, .hero-media { min-width: 0; }
.hero-title {
    font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 900; text-transform: uppercase;
    letter-spacing: .01em; margin-bottom: .75rem;
}
.hero-title .accent { color: var(--gold-500); }
.hero-location {
    display: inline-flex; align-items: center; gap: .5rem; color: var(--gray-200);
    font-weight: 600; margin-bottom: 1.75rem;
}
.hero-location svg { color: var(--gold-500); }
.hero-media { display: flex; justify-content: center; }
.hero-media img {
    width: min(420px, 85vw); filter: drop-shadow(0 20px 40px rgba(0,0,0,.5));
    animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

@media (min-width: 900px) {
    .hero-inner { grid-template-columns: 1.1fr .9fr; }
    .hero-media { justify-content: flex-end; }
}

/* ---------- Live player bar ---------- */
.live-bar {
    background: linear-gradient(135deg, var(--navy-700), var(--navy-800));
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.25rem;
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
    box-shadow: var(--shadow-md);
}
.live-bar-art { position: relative; width: 56px; height: 56px; flex-shrink: 0; }
.live-bar-art img { width: 100%; height: 100%; border-radius: var(--radius-sm); object-fit: cover; }
.live-dot {
    position: absolute; top: -4px; left: -4px; background: var(--red-600); color: var(--white);
    font-size: .55rem; font-weight: 800; padding: .15rem .4rem; border-radius: var(--radius-pill);
    display: flex; align-items: center; gap: .25rem; text-transform: uppercase;
}
.live-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--white); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.live-bar-info { min-width: 140px; }
.live-bar-info strong { display: block; font-size: 1rem; }
.live-bar-info span { color: var(--gray-400); font-size: .82rem; }

.btn-play {
    width: 52px; height: 52px; border-radius: 50%; border: none; flex-shrink: 0;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); color: var(--navy-950);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 20px rgba(245, 166, 35, .4);
    transition: transform .15s ease;
}
.btn-play:hover { transform: scale(1.06); }
.btn-play .icon-play, .btn-play .icon-pause { pointer-events: none; }

.waveform {
    flex: 1; min-width: 120px; height: 34px; display: flex; align-items: flex-end; gap: 3px;
}
.waveform span {
    flex: 1; max-width: 4px; background: var(--gold-500); border-radius: 2px; opacity: .5;
    height: 20%; transition: height .15s ease, opacity .2s ease;
}
.waveform.is-playing span { animation: wave 1s ease-in-out infinite; opacity: 1; }
.waveform span:nth-child(odd) { animation-delay: .15s; }
.waveform span:nth-child(3n) { animation-delay: .3s; }
.waveform span:nth-child(4n) { animation-delay: .45s; }
@keyframes wave { 0%, 100% { height: 20%; } 50% { height: 90%; } }

.live-badge {
    margin-left: auto; display: flex; align-items: center; gap: .4rem; color: var(--gold-500);
    font-size: .78rem; font-weight: 700; text-transform: uppercase;
}
.volume-control { display: none; align-items: center; gap: .5rem; }
.volume-control input[type="range"] { accent-color: var(--gold-500); width: 90px; }

@media (min-width: 700px) {
    .volume-control { display: flex; }
}

/* ---------- Quick links ---------- */
.quick-links { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: -1.5rem; position: relative; z-index: 2; }
.quick-card {
    background: var(--navy-800); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius-md);
    padding: 1.5rem; display: flex; gap: 1rem; align-items: flex-start;
    transition: transform .2s ease, border-color .2s ease;
}
.quick-card:hover { transform: translateY(-4px); border-color: var(--gold-500); }
.quick-card .icon-wrap {
    width: 48px; height: 48px; border-radius: var(--radius-sm); flex-shrink: 0;
    background: rgba(245, 166, 35, .12); color: var(--gold-500);
    display: flex; align-items: center; justify-content: center;
}
.quick-card h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.quick-card p { font-size: .88rem; margin-bottom: .5rem; }
.quick-card a { color: var(--gold-500); font-weight: 700; font-size: .85rem; }

@media (min-width: 700px) { .quick-links { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Programas ---------- */
.programs-scroll {
    display: flex; gap: 1.25rem; overflow-x: auto; padding-bottom: .5rem; scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}
.programs-scroll::-webkit-scrollbar { height: 6px; }
.programs-scroll::-webkit-scrollbar-thumb { background: var(--navy-600); border-radius: var(--radius-pill); }

.program-card {
    scroll-snap-align: start; flex: 0 0 220px; border-radius: var(--radius-md); overflow: hidden;
    background: var(--navy-800); border: 1px solid rgba(255,255,255,.06); position: relative;
}
.program-card .thumb { position: relative; height: 150px; overflow: hidden; }
.program-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.program-card:hover .thumb img { transform: scale(1.08); }
.program-card .time-badge {
    position: absolute; top: .6rem; left: .6rem; background: var(--gold-500); color: var(--navy-950);
    font-size: .7rem; font-weight: 800; padding: .3rem .55rem; border-radius: var(--radius-pill);
}
.program-card .body { padding: 1rem; }
.program-card h3 { font-size: 1rem; margin-bottom: .3rem; }
.program-card p { font-size: .82rem; margin-bottom: .4rem; }
.program-card .host { font-size: .78rem; color: var(--gold-500); font-weight: 600; }

/* Grid variant used on programas.php */
.programs-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* ---------- Cards genericas (noticias, eventos, galeria) ---------- */
.content-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .content-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .content-grid { grid-template-columns: repeat(3, 1fr); } }

.content-card {
    background: var(--navy-800); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius-md);
    overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, border-color .2s ease;
}
.content-card:hover { transform: translateY(-4px); border-color: var(--gold-500); }
.content-card .thumb { height: 180px; overflow: hidden; background: var(--navy-700); }
.content-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.content-card .body { padding: 1.1rem 1.25rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.content-card .meta { font-size: .78rem; color: var(--gold-500); font-weight: 700; text-transform: uppercase; margin-bottom: .4rem; }
.content-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.content-card p { font-size: .9rem; flex: 1; }
.content-card .read-more { color: var(--gold-500); font-weight: 700; font-size: .85rem; margin-top: auto; }

.empty-state {
    text-align: center; padding: 3rem 1rem; color: var(--gray-400); background: var(--navy-800);
    border-radius: var(--radius-md); border: 1px dashed rgba(255,255,255,.15);
}

/* ---------- Galeria ---------- */
.gallery-grid { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-item { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 1/1; background: var(--navy-800); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-item:hover img { transform: scale(1.1); }

/* ---------- Paginas internas (hero simple) ---------- */
.page-hero {
    padding: 3rem 0 2.5rem; text-align: center;
    background: radial-gradient(ellipse at top, rgba(245,166,35,.1), transparent 60%), var(--navy-950);
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.page-hero h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); text-transform: uppercase; }
.page-hero p { max-width: 640px; margin: 0 auto; }
.breadcrumb { color: var(--gold-500); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .75rem; display: inline-block; }

/* ---------- Nosotros ---------- */
.about-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-grid img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.stat { text-align: center; background: var(--navy-800); border-radius: var(--radius-md); padding: 1.25rem .5rem; border: 1px solid rgba(255,255,255,.06); }
.stat strong { display: block; font-size: 1.6rem; color: var(--gold-500); font-family: var(--font-display); }
.stat span { font-size: .78rem; color: var(--gray-400); }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .9fr 1.1fr; } }
.contact-info-card {
    background: var(--navy-800); border-radius: var(--radius-lg); padding: 2rem; border: 1px solid rgba(255,255,255,.06);
}
.contact-info-card ul { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1.5rem; }
.contact-info-card li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-info-card .icon-wrap {
    width: 42px; height: 42px; border-radius: 50%; background: rgba(245,166,35,.12); color: var(--gold-500);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.form-card {
    background: var(--navy-800); border-radius: var(--radius-lg); padding: 2rem; border: 1px solid rgba(255,255,255,.06);
}
.form-row { display: grid; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 600px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .4rem; color: var(--gray-200); }
.field input, .field textarea, .field select {
    width: 100%; padding: .8rem 1rem; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,.12);
    background: var(--navy-900); color: var(--white); font-size: .92rem; transition: border-color .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold-500); }
.field textarea { resize: vertical; min-height: 120px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }

.alert { padding: 1rem 1.25rem; border-radius: var(--radius-sm); margin-bottom: 1.25rem; font-size: .9rem; font-weight: 600; }
.alert-success { background: rgba(46, 160, 90, .15); color: #6be08a; border: 1px solid rgba(46,160,90,.3); }
.alert-error { background: rgba(200, 30, 46, .15); color: #ff8b93; border: 1px solid rgba(200,30,46,.3); }

.map-embed { border-radius: var(--radius-lg); overflow: hidden; margin-top: 2rem; border: 1px solid rgba(255,255,255,.08); }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------- Mini player flotante (movil) ---------- */
.mini-player {
    position: fixed; left: .75rem; right: .75rem; bottom: .75rem; z-index: 600;
    background: rgba(15, 29, 51, .96); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-pill);
    display: flex; align-items: center; gap: .75rem; padding: .5rem .6rem .5rem 1rem;
    box-shadow: var(--shadow-lg);
}
.mini-player-art { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.mini-player-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mini-player-info strong { font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-player-info span { font-size: .7rem; color: var(--gold-500); font-weight: 700; }
.btn-play--mini { width: 44px; height: 44px; }

@media (min-width: 900px) { .mini-player { display: none; } }
@media (max-width: 899px) { body { padding-bottom: calc(var(--mini-player-h) + 1rem); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); border-top: 1px solid rgba(255,255,255,.06); padding-top: 3rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; padding-bottom: 2.5rem; }
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.brand--footer { margin-bottom: 1rem; }
.footer-col h4 { font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 1.1rem; color: var(--gold-500); }
.footer-links li, .footer-contact li { margin-bottom: .85rem; }
.footer-links a:hover { color: var(--gold-500); }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; color: var(--gray-400); font-size: .9rem; }
.footer-contact svg { color: var(--gold-500); flex-shrink: 0; margin-top: .15rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding: 1.25rem 0; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
.footer-bottom p { margin: 0; font-size: .8rem; color: var(--gray-500); }

/* ---------- Prevencion de overflow horizontal en grid/flex con imagenes o texto largo ---------- */
.header-inner > *,
.about-grid > *,
.contact-grid > *,
.footer-grid > *,
.quick-card > *,
.live-bar-info {
    min-width: 0;
}

/* ---------- Utilidades ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
