/* 
   THE NEXUS - FULL RESTORATION & REFINEMENT
   Midnight Radical Design System (Verified Version)
*/

:root {
    --bg-primary: #040406;
    --bg-secondary: #08080C;
    --accent: #FF1E4D;
    --accent-glow: rgba(255, 30, 77, 0.4);
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.6);
    
    /* Glass blur reducido a 20px — 80px era muy pesado para GPU */
    --glass-blur: 20px;
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-highlight: rgba(255, 255, 255, 0.08);
}

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

/* Desplazamiento suave entre secciones */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    /* Gradiente de fondo permanente: asegura colores visibles en todos los dispositivos */
    background: var(--bg-primary) !important;
    background-image: radial-gradient(ellipse 80% 60% at 10% 10%, rgba(2, 132, 199, 0.18) 0%, transparent 60%),
                      radial-gradient(ellipse 70% 50% at 90% 90%, rgba(67, 56, 202, 0.18) 0%, transparent 60%) !important;
    background-attachment: fixed !important;
    color: var(--text-primary);
    overflow-x: clip;
    line-height: 1.6;
    padding-top: 85px;
}

/* Margen de scroll para que ninguna sección quede tapada por el nav */
section[id] {
    scroll-margin-top: 110px;
}
#programas {
    scroll-margin-top: 55px;
}
#nosotros {
    scroll-margin-top: 320px;
}
@media (max-width: 1024px) {
    section[id] {
        scroll-margin-top: 140px;
    }
}

@media (max-width: 1024px) { 
    body {
        padding-left: 0;
        /* Header fijo: 79px; 140px total para dejar 61px de aire */
        padding-top: 140px;
    }
    /* Prevent scroll when menu is open */
    body.menu-open { overflow: hidden; }
}
html, body {
    max-width: 100%;
    overflow-x: clip;
}

/* UTILS */
.max-w-nexus { max-width: 1200px; margin: 0 auto; width: 100%; }

/* En móvil y tableta: margen horizontal seguro para que nada toque el borde */
@media (max-width: 1024px) {
    .max-w-nexus { padding-inline: 20px; }
}
@media (max-width: 480px) {
    .max-w-nexus { padding-inline: 16px; }
}
.text-accent { color: var(--accent) !important; }
.text-white { color: #fff !important; }
strong { font-weight: 800; color: #fff; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Fuerza minúsculas en el correo electrónico del contacto */
.contact-email { text-transform: lowercase !important; word-break: break-all; }

/* DECORATIVE BLOBS - blur reducido para mejor rendimiento */
.glass-blob {
    position: fixed;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    filter: blur(80px);   /* 180px era extremadamente pesado */
    z-index: -1;
    opacity: 0.12;
    pointer-events: none;
    will-change: transform;
    animation: floatBlob 60s infinite alternate ease-in-out; /* más lento = menos CPU */
}
.blob-1 { top: -10%; left: -10%; background: #0284c7; }
.blob-2 { bottom: -10%; right: -10%; background: #4338ca; animation-delay: -8s; }

/* En tabletas: reducir tamaño y opacidad de blobs para mejor rendimiento */
@media (max-width: 1024px) {
    .glass-blob { width: 500px; height: 500px; opacity: 0.1; filter: blur(60px); }
}
/* En móvil pequeño: reducir aún más pero NO ocultar — el gradiente del body sirve de respaldo */
@media (max-width: 640px) {
    .glass-blob { width: 320px; height: 320px; opacity: 0.09; filter: blur(50px); }
}

@keyframes floatBlob {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, 30px) scale(1.08); }
}

/* NAVIGATION (Top Dock - Redesign) */
.nav-dock {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    width: fit-content; background: rgba(15, 15, 20, 0.75); 
    backdrop-filter: blur(var(--glass-blur)); 
    border: 1px solid var(--glass-border); 
    border-radius: 100px;
    box-shadow: inset 0 1px 1px var(--glass-highlight), 0 20px 40px rgba(0,0,0,0.5);
    display: flex; flex-direction: row; align-items: center; gap: 32px; padding: 12px 36px; z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-dock:hover {
    background: rgba(20, 20, 25, 0.85);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 1px var(--glass-highlight), 0 30px 60px rgba(0,0,0,0.6);
}

/* Turbo Progress Bar */
.turbo-progress-bar {
    height: 3px;
    background-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}
@media (max-width: 1024px) {
    .nav-dock { display: none !important; }
}
.nav-link {
    color: var(--text-secondary); font-size: 11px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.15em;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); text-decoration: none;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
    background: var(--accent); transition: 0.3s;
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}
.nav-link:hover, .nav-link.active { color: var(--accent); }

/* HAMBURGER TOGGLE */
.nav-toggle {
    width: 44px; height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    z-index: 1100;
    cursor: pointer;
    display: none; align-items: center; justify-content: center;
    flex-direction: column; gap: 5px;
}

/* MOBILE HEADER BAR (Floating Glass style) */
.mobile-header {
    display: none;
    position: fixed; top: 15px; left: 50%; transform: translateX(-50%);
    width: calc(100% - 30px); height: 64px;
    background: rgba(20, 20, 25, 0.7);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 0 25px;
    align-items: center; justify-content: space-between;
    z-index: 1100;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body.menu-open .mobile-header {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

@media (max-width: 1024px) {
    .mobile-header { display: flex; }
    .nav-toggle { display: flex !important; }
    .nav-dock { display: none !important; }
}

.nav-toggle span {
    display: block;
    width: 22px; height: 2px; background: #fff; transition: 0.3s;
}
/* Hamburger active state animation */
.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0; transform: scaleX(0);
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* MOBILE NAV OVERLAY (Apple Glass Floating Card) */
.nav-overlay {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1050;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-overlay-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 60px 40px;
    width: 85%; max-width: 320px;
    display: flex; flex-direction: column; align-items: center; gap: 40px;
    transform: translateY(20px); transition: 0.5s;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5), inset 0 1px 1px var(--glass-highlight);
}

.nav-overlay.active { opacity: 1; pointer-events: all; }
.nav-overlay.active .nav-overlay-content { transform: translateY(0); }

.nav-overlay .nav-link {
    writing-mode: horizontal-tb; transform: none;
    font-size: 22px; color: rgba(255, 255, 255, 0.6); font-weight: 800;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-overlay .nav-link:hover, .nav-overlay .nav-link.active {
    color: #fff; transform: scale(1.1);
}

/* HERO NEXUS */
.hero-nexus {
    min-height: 90vh; display: flex; flex-direction: column; align-items: center;
    justify-content: center; text-align: center; padding-top: 35px;
    /* Margen horizontal de seguridad en el hero (no usa px-6 de Tailwind) */
    padding-inline: 28px;
}
/* En desktop usa el padding-left del side nav */
@media (min-width: 1025px) {
    .hero-nexus { padding-inline: 40px; }
}
/* Móvil / tableta: el body ya maneja el header, el hero solo necesita aire mínimo */
@media (max-width: 1024px) {
    .hero-nexus {
        min-height: auto;        /* Sin altura forzada — el contenido dicta el tamaño */
        padding-top: 20px;       /* Ajustado para total de 160px desde el viewport top (140+20) */
        padding-bottom: 48px;
        scroll-margin-top: 140px; /* Asegura que el hero baje al dar clic en 'Inicio' */
    }
}
/* Evitar overflow del texto del hero en pantallas muy estrechas */
.hero-nexus * { max-width: 100%; }
.hero-content h1 {
    font-size: clamp(3rem, 10vw, 8rem); font-weight: 900; line-height: 0.85; 
    text-transform: uppercase; color: var(--accent); margin-bottom: 30px; 
    letter-spacing: -0.05em;
    word-break: break-word; /* Prevents overflow if a word is still too long */
}
@media (max-width: 768px) { 
    .hero-content h1 { font-size: clamp(2.4rem, 11vw, 4rem); margin-bottom: 20px; } 
    .hero-content p { font-size: 1.1rem !important; margin-bottom: 40px !important; }
    /* Button Stacking - Centered & Limited Width */
    .hero-content .flex { flex-direction: column; width: 100%; align-items: center; gap: 16px; }
    .btn-nexus { width: 85%; max-width: 280px; }
}

/* REVEAL ON SCROLL (Robust progressive enhancement) */
.reveal { 
    opacity: 1; 
    transform: none; 
    transition: 1s cubic-bezier(0.2, 1, 0.3, 1); 
}

/* Solo se oculta si JS está activo y la clase 'js-ready' está en el body (opcional) 
   o simplemente confiamos en que initScrollReveal aplicará las animaciones.
   Para evitar el 'blank page' si el JS falla, mantendremos opacidad 1 por defecto 
   y dejaremos que el JS maneje la animación de entrada si llega a cargar.
*/
.js-enabled .reveal { 
    opacity: 0; 
    transform: translateY(30px); 
}
.reveal.active { 
    opacity: 1 !important; 
    transform: none !important; 
}

/* BUTTONS */
.btn-nexus {
    background: transparent;
    padding: 16px 36px;
    border-radius: 100px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    font-size: 13px;
    border-width: 2px;
}

.btn-nexus.social-circle:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
}
.btn-nexus-accent {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}
.btn-nexus-accent:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: transparent;
    box-shadow: 0 0 20px var(--accent-glow);
}
.btn-nexus-accent img { 
    filter: brightness(0) invert(1); 
    transition: 0.4s; 
}
.btn-nexus-accent:hover img { 
    filter: invert(19%) sepia(91%) saturate(5796%) hue-rotate(340deg) brightness(96%) contrast(106%); 
}

.btn-nexus-white {
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}
.btn-nexus-white:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

/* PROGRAMMING SECTION */
.program-card-nx {
    background: rgba(255, 255, 255, 0.04); 
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    box-shadow: inset 0 1px 1px var(--glass-highlight), 0 8px 20px rgba(0,0,0,0.2);
    border-radius: 24px; padding: 24px;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    display: flex; flex-direction: column; justify-content: space-between;
    min-height: 180px; width: 100%;
    contain: layout style; /* evita reflows al hacer hover */
}
.program-card-nx:hover { 
    background: rgba(255, 255, 255, 0.08); 
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px); 
    box-shadow: 0 16px 40px rgba(0,0,0,0.35), inset 0 1px 1px var(--glass-highlight);
}

.filter-btn {
    font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.2em;
    color: #fff; transition: 0.3s; opacity: 0.4; background: none; border: none; cursor: pointer;
}
.filter-btn:hover, .filter-btn.active { color: var(--accent); opacity: 1; }

.filter-container-scroll {
    overflow-x: auto;
    display: flex;
    gap: 1.5rem;
    padding-bottom: 10px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.filter-container-scroll::-webkit-scrollbar { display: none; }

.btn-status {
    background: var(--accent); color: #fff; padding: 4px 14px; border-radius: 6px;
    font-size: 10px; font-weight: 900; letter-spacing: 0.1em;
    box-shadow: 0 0 15px var(--accent-glow); animation: cabin-pulse 2s infinite;
}
@keyframes cabin-pulse {
    0%, 100% { box-shadow: 0 0 15px var(--accent-glow); opacity: 1; }
    50% { box-shadow: 0 0 30px var(--accent); opacity: 0.8; }
}

/* SPECTRUM ANIMATION - always moving */
#spectrum-bars {
    display: flex; align-items: flex-end; gap: 4px; height: 24px;
}
.spectrum-bar {
    width: 3px; background: var(--accent); border-radius: 3px 3px 0 0;
    animation: spectrumIdle 3s infinite ease-in-out;
    will-change: height;
    opacity: 0.3;
    transition: opacity 0.5s ease;
}
.spectrum-bar:nth-child(1) { animation-delay: 0s; }
.spectrum-bar:nth-child(2) { animation-delay: 0.4s; }
.spectrum-bar:nth-child(3) { animation-delay: 0.2s; }
.spectrum-bar:nth-child(4) { animation-delay: 0.6s; }
.spectrum-bar:nth-child(5) { animation-delay: 0.1s; }

@keyframes spectrumIdle {
    0%, 100% { height: 6px; }
    50% { height: 10px; }
}

.player-nexus.playing .spectrum-bar {
    opacity: 1;
    animation: spectrumDance 0.45s infinite alternate cubic-bezier(0.2,0,0.8,1);
    box-shadow: 0 0 10px var(--accent-glow);
}
.player-nexus.playing .spectrum-bar:nth-child(1) { animation-delay: 0s;    animation-duration: 0.40s; }
.player-nexus.playing .spectrum-bar:nth-child(2) { animation-delay: 0.08s; animation-duration: 0.55s; }
.player-nexus.playing .spectrum-bar:nth-child(3) { animation-delay: 0.03s; animation-duration: 0.35s; }
.player-nexus.playing .spectrum-bar:nth-child(4) { animation-delay: 0.13s; animation-duration: 0.50s; }
.player-nexus.playing .spectrum-bar:nth-child(5) { animation-delay: 0.06s; animation-duration: 0.45s; }

@keyframes spectrumDance {
    0%   { height: 4px;  }
    100% { height: 24px; }
}

/* LIVE CTA CENTERING (Refined) */
.live-cta-container {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: 30px; max-width: 600px; margin: 0 auto;
}

/* QUIÉNES SOMOS - Tarjeta sticky: queda visible mientras la columna derecha desplaza */
.sticky-glass {
    position: sticky;
    top: 100px;             /* Se queda pegada a 100px del tope del viewport */
    align-self: start;      /* Sin esto la tarjeta se estira al alto de la columna */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(var(--glass-blur)); 
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: inset 0 1px 1px var(--glass-highlight), 0 20px 60px rgba(0,0,0,0.3);
    border-radius: 40px;
    padding: 60px;
    height: fit-content;
}
/* Solo en móvil (pantalla única columna) la tarjeta no es sticky */
@media (max-width: 767px) {
    .sticky-glass {
        position: relative;
        top: auto;
        width: 100%;
        padding: 40px;
        margin-bottom: 30px;
    }
}

.nexus-card-style {
    background: rgba(255, 255, 255, 0.04); 
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    box-shadow: inset 0 1px 1px var(--glass-highlight), 0 30px 60px rgba(0,0,0,0.4);
    border-radius: 48px; padding: 60px; overflow: hidden;
}

/* NUESTRAS VOCES (Overlay Refined) */
.host-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px;
}
.host-card {
    aspect-ratio: 1/1; position: relative; border-radius: 24px; overflow: hidden; background: #000;
}
.host-card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: 0.6s cubic-bezier(0.2, 1, 0.3, 1); }
.host-card:hover img { filter: grayscale(0); transform: scale(1.08); }

.host-info {
    position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 40%, transparent 100%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 25px;
    opacity: 0.8; transition: 0.3s;
}
.host-card:hover .host-info { opacity: 1; }
.host-info h4 { font-weight: 900; font-size: 1.1rem; text-transform: uppercase; color: #fff; margin-bottom: 2px; }
.host-info p { font-size: 0.75rem; color: var(--accent); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }

/* TESTIMONIALS SECTION */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 1024px) {
    .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .testimonial-grid { grid-template-columns: 1fr; }
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: 32px;
    padding: 40px;
    position: relative;
    transition: 0.4s cubic-bezier(0.2, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}
.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-8px);
    border-color: rgba(255, 30, 77, 0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(255, 30, 77, 0.1);
}
.testimonial-card::after {
    content: '"';
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 10rem;
    font-weight: 900;
    color: var(--accent);
    opacity: 0.04;
    font-family: Georgia, serif;
    pointer-events: none;
}
.testimonial-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}
.testimonial-author {
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    display: flex;
    align-items: center;
    gap: 10px;
}
.testimonial-author::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--accent);
    opacity: 0.5;
}

/* CONTACT FORM RESTORED */
.input-nexus {
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff; padding: 20px; border-radius: 15px; width: 100%; outline: none; transition: 0.3s;
}
.social-circle img {
    width: 20px;
    filter: brightness(0) invert(1); /* Default: White */
    transition: 0.4s;
}
.social-circle:hover img {
    /* Hover: Brand Red #FF1E4D */
    filter: invert(19%) sepia(91%) saturate(5796%) hue-rotate(340deg) brightness(96%) contrast(106%);
}
.input-nexus:focus { border-color: var(--accent); background: rgba(255, 255, 255, 0.06); }

/* FLOATING ELEMENTS RESTORED */
.floating-ws {
    position: fixed !important; bottom: 120px !important; right: 40px !important;
    width: 48px !important; height: 48px !important; background: #25D366 !important;
    border-radius: 50% !important; display: flex !important; align-items: center !important;
    justify-content: center !important; z-index: 2000 !important;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4) !important; transition: 0.3s;
}
.floating-ws:hover { transform: scale(1.1); }

/* CENTERED PLAYER (Robust Layout) */
.player-nexus {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    background: rgba(10, 10, 14, 0.88); 
    backdrop-filter: blur(40px); 
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--glass-border); 
    box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.04) inset;
    border-radius: 100px;
    padding: 10px 20px 10px 24px; 
    display: grid; 
    grid-template-columns: 1fr auto 44px;
    align-items: center; 
    gap: 16px; z-index: 1000;
    width: min(560px, calc(100% - 20px));
    min-width: 0;
}
.player-info {
    text-align: left;
    min-width: 0;
    overflow: hidden;
}
.player-info .station-name {
    font-weight: 900;
    font-size: 13px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.player-info .now-playing {
    font-size: 10px;
    color: rgba(255,255,255,0.45);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
    letter-spacing: 0.02em;
    display: none; /* shown via JS only when stream title is available */
}
.player-info .en-vivo-badge {
    font-size: 9px;
    font-weight: 900;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.4em;
    display: block;
    margin-bottom: 2px;
}
.player-btn-container { display: flex; justify-content: flex-end; align-items: center; }

@media (max-width: 480px) {
    .player-nexus { 
        padding: 8px 14px 8px 18px;
        gap: 12px;
        border-radius: 80px;
    }
    .player-info .station-name { font-size: 12px; }
    .player-info .now-playing { font-size: 9px; }
}
.play-btn-nexus {
    width: 44px; height: 44px; min-width: 44px; background: var(--accent); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; transition: 0.3s;
    border: none; cursor: pointer; color: #fff; padding: 0; outline: none;
    appearance: none; -webkit-appearance: none;
}
.play-btn-nexus:hover { transform: scale(1.1); box-shadow: 0 0 20px var(--accent-glow); }

/* MOBILE RESPONSIVE FIXES */
@media (max-width: 1024px) {
    #contacto h2.text-8xl { font-size: 4rem !important; opacity: 0.1 !important; position: relative !important; top: 0 !important; margin-bottom: 2rem; }
    #contacto .grid { gap: 40px !important; }
}
@media (max-width: 768px) {
    #contacto h2.text-8xl { font-size: 3rem !important; margin-bottom: 1.5rem; text-align: center; width: 100%; }
}

/* NOSOTROS scroll-margin fix */
#nosotros {
    scroll-margin-top: 80px;
}

/* ================================================================
   RADIO SECTION - card layout with natural height (no clip)
   ================================================================ */
.radio-card-wrap {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 40px;
    padding: 48px 48px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}
@media (min-width: 1024px) {
    .radio-card-wrap { flex-direction: row; gap: 60px; padding: 80px; border-radius: 60px; }
}
@media (max-width: 640px) {
    .radio-card-wrap { padding: 32px 28px; border-radius: 28px; }
}

/* Centrado de la sección de radio en móvil */
@media (max-width: 1023px) {
    .radio-left-col { text-align: center; }
    .radio-left-col .flex { justify-content: center; }
    .radio-left-col h2 { text-align: center; }
    .radio-left-col > div:nth-child(2) { justify-content: center; }
    .filter-container-scroll { justify-content: center; }
    #program-cards { justify-items: center; }
}

.radio-left-col {
    flex: 1;
    min-width: 0;
}
@media (min-width: 1024px) {
    .radio-left-col {
        position: sticky;
        top: 100px;
        align-self: start;
    }
}
.radio-left-col h2 {
    font-size: clamp(2.8rem, 6vw, 4rem);
}

/* ================================================================
   NOSOTROS SECTION - tarjeta izquierda sticky, texto derecho desplaza
   ================================================================ */
.nosotros-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
@media (min-width: 768px) {
    .nosotros-grid {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        /* Sin align-items → stretch: la col izquierda adopta el alto de la derecha,
           dando margen real para que position:sticky funcione */
        /* IMPORTANTE: no poner overflow en este grid — rompería position:sticky */
    }
}
.nosotros-left { min-width: 0; }
.nosotros-right { min-width: 0; }

/* Imagen dentro de la tarjeta sticky */
.nosotros-img-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
}
.nosotros-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8) saturate(0.85);
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}
.nosotros-img-wrap:hover img { transform: scale(1.04); }

.nosotros-img-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
}

/* Bloques de contenido en columna derecha */
.nosotros-divider-block {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 32px;
    margin-top: 32px;
}
.nosotros-label {
    display: block;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--accent);
    margin-bottom: 16px;
}
.nosotros-tag {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.04);
}

/* Cita bíblica */
.nosotros-quote {
    margin-top: 48px;
    padding: 32px;
    border-left: 3px solid var(--accent);
    background: rgba(255,30,77,0.04);
    border-radius: 0 16px 16px 0;
    font-size: 1.25rem;
    font-style: italic;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
}
.nosotros-quote cite {
    display: block;
    margin-top: 12px;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
}

/* ================================================================
   TEN TU PROGRAMA - card with cabin image
   ================================================================ */
.programa-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: left;
}
/* Centrar botón "Solicitar Información" en móvil */
@media (max-width: 767px) {
    .programa-card { text-align: center; }
    .programa-btn-area { display: flex; justify-content: center; }
    .programa-btn-area .btn-nexus { width: 100%; max-width: 320px; }
    /* Proverbia: centrar botones WhatsApp y Telegram */
    #proverbia .flex { align-items: center; }
    #proverbia .btn-nexus { width: 100%; max-width: 320px; min-width: unset; justify-content: center; }
}
@media (min-width: 768px) {
    .programa-card {
        grid-template-columns: 0.8fr 1.2fr;
        grid-template-rows: auto auto;
        gap: 60px;
        align-items: center;
    }
    .programa-cabin-img {
        grid-row: 1 / 3;
        grid-column: 2;
    }
    .programa-btn-area {
        grid-column: 1;
    }
}
.programa-text h2 { font-size: clamp(2.2rem, 5vw, 3.5rem); }

.programa-cabin-img {
    border-radius: 32px;
    overflow: hidden;
    aspect-ratio: 1/1;
    max-height: 520px;
}
.programa-cabin-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.85) saturate(0.9);
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}
.programa-cabin-img:hover .programa-cabin-photo {
    transform: scale(1.04);
}

/* ================================================================
   FOOTER REDESIGN - tall, multi-column
   ================================================================ */
.footer-nexus {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 80px 6% 40px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}
@media (min-width: 768px) {
    .footer-nexus {
        grid-template-columns: 1fr 2fr;
        gap: 80px;
    }
    .footer-bottom {
        grid-column: 1 / -1;
    }
}
/* En móvil: centrar todo el footer */
@media (max-width: 767px) {
    .footer-nexus { text-align: center; padding: 60px 6% 40px; }
    /* Columnas del footer apiladas y centradas */
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .footer-bottom { text-align: center; }
    /* Botones "Únete" centrados y a ancho completo */
    .btn-footer-red,
    .btn-footer-ghost {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    text-align: left;
}
@media (max-width: 767px) {
    .footer-brand { align-items: center; text-align: center; }
}
.footer-app-badges {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}
@media (max-width: 767px) {
    .footer-app-badges { justify-content: center; }
}
.app-badge {
    height: 32px;
    transition: transform 0.3s, opacity 0.3s;
}
.app-badge:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}
.footer-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 40px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.footer-col-title {
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--accent);
    margin-bottom: 4px;
}
.footer-link {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-link:hover { color: #fff; }

.btn-footer-red {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent) 0%, #c4003b 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 6px 24px rgba(255, 30, 77, 0.35), inset 0 1px 0 rgba(255,255,255,0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.btn-footer-red::before {
    content: '🎤';
    font-size: 14px;
}
.btn-footer-red:hover {
    box-shadow: 0 10px 36px rgba(255, 30, 77, 0.55), inset 0 1px 0 rgba(255,255,255,0.2);
    transform: translateY(-2px) scale(1.02);
    background: linear-gradient(135deg, #ff3360 0%, var(--accent) 100%);
}

.btn-footer-ghost {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-footer-ghost::before {
    content: '✨';
    font-size: 14px;
}
.btn-footer-ghost:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.12);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 24px;
    text-align: center;
}

/* ================================================================
   PROGRAM PAGES & HOST PROFILE PAGES
   ================================================================ */

/* Breadcrumb pill — "← Regresar" */
.breadcrumb-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 20px;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 100px; color: rgba(255,255,255,0.6);
    font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.15em;
    text-decoration: none; transition: 0.3s; margin-bottom: 40px; display: inline-flex;
}
.breadcrumb-pill:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.25); }

/* Program Hero — Centered text, no image */
.program-hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 64px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
@media (min-width: 768px) {
    .program-hero { margin-bottom: 80px; }
}

/* Program hero image */
.program-hero-img-wrap {
    position: relative; border-radius: 32px; overflow: hidden; aspect-ratio: 4/3;
    order: -1; /* image first on mobile */
}
@media (min-width: 768px) { .program-hero-img-wrap { order: 0; } }
.program-hero-img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.75) saturate(0.9); }
.program-hero-img-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,30,77,0.25) 0%, transparent 70%);
}

/* Schedule chips */
.schedule-chip {
    display: inline-flex; align-items: center; padding: 8px 20px;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
    border-radius: 100px; font-size: 14px; font-weight: 800; color: #fff; letter-spacing: 0.05em;
}

/* Program stats */
.stat-block { display: flex; flex-direction: column; gap: 2px; }
.stat-num { font-size: 2rem; font-weight: 900; color: var(--accent); line-height: 1; }
.stat-desc { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.2em; color: rgba(255,255,255,0.35); }

/* Host detail card (horizontal, inside program page) */
.host-detail-card { display: flex; gap: 20px; align-items: flex-start; }
.host-detail-photo { width: 80px; height: 80px; min-width: 80px; border-radius: 20px; object-fit: cover; filter: grayscale(0.5); }

/* Quote card */
.quote-card {
    background: rgba(255,30,77,0.04); border: 1px solid rgba(255,30,77,0.1);
    border-radius: 32px; padding: 48px; position: relative; overflow: hidden;
}

/* Spotify Player Section */
.spotify-player-wrap {
    margin: 40px 0 64px 0;
    width: 100%;
}
.spotify-player-label {
    font-size: 10px; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.3em; color: rgba(255,255,255,0.3);
    margin-bottom: 24px; display: block;
}

.quote-card::before {
    content: '"'; position: absolute; top: -20px; left: 20px;
    font-size: 12rem; font-weight: 900; color: var(--accent); opacity: 0.08;
    line-height: 1; font-family: Georgia, serif;
}
.quote-text { font-size: 1.2rem; font-style: italic; color: rgba(255,255,255,0.75); line-height: 1.7; margin-bottom: 20px; position: relative; z-index: 1; }
.quote-author { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.3em; color: var(--accent); }

/* Host profile hero */
.host-profile-hero {
    display: grid; grid-template-columns: 1fr; gap: 40px;
    margin-bottom: 64px; align-items: start;
}
@media (min-width: 768px) {
    .host-profile-hero { grid-template-columns: 320px 1fr; gap: 60px; margin-bottom: 80px; }
}
.host-profile-photo-wrap { position: relative; border-radius: 32px; overflow: hidden; aspect-ratio: 1/1; }
@media (min-width: 768px) {
    .host-profile-photo-wrap {
        position: sticky;
        top: 100px;
        align-self: start;
    }
}
.host-profile-photo { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.3) brightness(0.9); transition: 0.6s cubic-bezier(0.2,1,0.3,1); }
.host-profile-photo-wrap:hover .host-profile-photo { filter: grayscale(0) brightness(1); transform: scale(1.03); }
.host-profile-photo-wrap::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 3px; background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* Program list card (horizontal, inside host profile) */
.program-list-card {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px; padding: 20px 28px; text-decoration: none; transition: 0.25s;
}
.program-list-card:hover {
    background: rgba(255,255,255,0.08); border-color: var(--accent); transform: translateX(4px);
}

/* Make program-card-nx and host-card work as <a> elements */
a.program-card-nx { text-decoration: none; display: flex; }
a.host-card { text-decoration: none; display: block; }
a.program-card-nx:hover { cursor: pointer; }

/* ================================================================
   LIVE INDICATOR (AL AIRE)
   ================================================================ */
.live-badge-wrapper {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.live-badge {
    display: none; /* Hidden by default, shown via JS */
    align-items: center;
    gap: 8px;
    background: rgba(255, 30, 77, 0.15);
    border: 1px solid var(--accent);
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: 0.1em;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 15px var(--accent-glow);
}

.program-card-nx.is-live .live-badge {
    display: flex;
}

.live-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
    animation: live-dot-blink 1.2s infinite;
}

@keyframes live-dot-blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
}

/* Ensure the card has position relative for the absolute badge */
.program-card-nx {
    position: relative;
}
