@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Permanent+Marker&family=Lora:ital,wght@0,500;0,600;0,700;1,400;1,600&family=Outfit:wght@500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* PERIODISTIC LIGHT ELEGANT PALETTE (100% Emerald Green Tones - Zero Blue) */
    --bg-main: #f8fafc;          /* Fondo slate claro periodístico */
    --bg-main-alt: #ffffff;      /* Tarjetas y secciones en blanco puro */
    --bg-card: #ffffff;          /* Tarjeta blanca limpia */
    --bg-card-hover: #ffffff;
    --bg-header: rgba(255, 255, 255, 0.38);
    --bg-player: rgba(6, 44, 40, 0.96); /* Reproductor inferior verdoso oscuro */
    
    /* Typography & Legibility */
    --text-title: #042f2c;       /* Titulares en verde oscuro periodístico */
    --text-body: #334155;        /* Texto de lectura legible */
    --text-muted: #64748b;
    --border-color: rgba(6, 78, 59, 0.14);
    --border-hover: rgba(5, 150, 105, 0.35);
    
    /* Logo 100% Green Palette */
    --logo-navy: #064e3b;        /* Verde bosque profundo oficial */
    --logo-blue: #047857;        /* Verde esmeralda intenso */
    --logo-green: #059669;       /* Verde vibrante */
    --logo-green-bright: #10b981;/* Verde neón en emisión */
    --logo-gold: #f59e0b;        /* Oro acento */
    
    --grad-logo: linear-gradient(135deg, #064e3b 0%, #059669 100%);
    --grad-green: linear-gradient(135deg, #047857 0%, #10b981 100%);
    --grad-header: linear-gradient(135deg, #064e3b 0%, #042f2c 100%);
    
    /* Shadows & Curves */
    --shadow-card: 0 4px 20px rgba(6, 44, 40, 0.08);
    --shadow-hover: 0 12px 36px rgba(5, 150, 105, 0.18);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-card: 20px;
    --radius-pill: 9999px;

    /* Chrome heights — used for ticker position and body padding */
    --header-h: 63px;
    --ticker-h: 42px;
    --chrome-h: calc(var(--header-h) + var(--ticker-h));
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-body);
    line-height: 1.7;
    overflow-x: hidden;
    padding-top: var(--chrome-h);
    padding-bottom: 120px;
    -webkit-font-smoothing: antialiased;
}

/* Home page: no body padding-top because hero handles spacing */
body:has(.home-main) {
    padding-top: 0;
}

/* Comercio detail: sin cabecera ni ticker */
body.no-chrome {
    padding-top: 0;
}
body.no-chrome header,
body.no-chrome .news-ticker {
    display: none !important;
}

/* Editorial Headings - Identical typography to Corral FM logo */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 800;
    color: #22252a;
    letter-spacing: -0.025em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.25s ease;
}

/* ========================================================
   TOP TICKER (Teletipo Periodístico)
   ======================================================== */
.news-ticker {
    width: 100%;
    background: #042f2c;
    color: #ffffff;
    height: 42px;
    display: flex;
    align-items: center;
    position: fixed;
    top: var(--header-h);
    left: 0;
    z-index: 1002;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ticker-label {
    background: var(--grad-green);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    margin-left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4);
    flex-shrink: 0;
    z-index: 3;
}

.ticker-label .live-dot {
    width: 7px;
    height: 7px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 8px #ffffff;
    animation: pulseDot 1.4s infinite;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.5; }
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding-left: 20px;
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,1) 30px, rgba(0,0,0,1) calc(100% - 30px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,1) 30px, rgba(0,0,0,1) calc(100% - 30px), transparent 100%);
}

.ticker-move {
    display: inline-flex;
    align-items: center;
    animation: tickerLoop 65s linear infinite;
    gap: 15px;
}

.news-ticker:hover .ticker-move {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: #e2e8f0;
    padding: 0 25px;
    white-space: nowrap;
}

.ticker-item span {
    color: var(--logo-green-bright);
    margin-right: 10px;
    font-size: 0.75rem;
}

@keyframes tickerLoop {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* ========================================================
   HEADER & NAVBAR (Desktop, Mac, PC, Tablet & Mobile)
   ======================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1003;
    background: 
        linear-gradient(rgba(255,255,255,0.96), rgba(255,255,255,0.96)),
        url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ4exU6ckDciDJU3A5-r6pePfRyA3HTyh-I6RueeC7LQnDULwAsqH5XtpCn&s=10') center/cover fixed no-repeat;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(16, 185, 129, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    padding: 0;
    margin: 0;
}

/* Home page: header is transparent at top and acquires frosted glass backdrop when scrolling */
body:has(.home-main) header {
    position: fixed;
    top: 0;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid transparent !important;
    box-shadow: none !important;
    transition: background 0.35s ease, backdrop-filter 0.35s ease, -webkit-backdrop-filter 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

body:has(.home-main) header.header-scrolled {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border-bottom: 1px solid rgba(16, 185, 129, 0.18) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

.header-main-row {
    width: 100%;
    max-width: 1320px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 4% 4px 4%;
}

.logo img {
    height: 46px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.04);
}

nav {
    display: flex;
    align-items: center;
}

.header-nav-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

nav ul,
nav ul.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav ul li a,
nav ul.nav-menu li a {
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    color: var(--text-body);
    position: relative;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-block;
}

nav ul li a:hover,
nav ul.nav-menu li a:hover {
    color: var(--logo-navy);
    background: rgba(5, 150, 105, 0.08);
}

nav ul li a.active,
nav ul.nav-menu li a.active {
    color: #ffffff;
    background: var(--grad-logo);
    box-shadow: 0 4px 14px rgba(6, 78, 59, 0.3);
}

.mobile-menu-btn {
    display: none;
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-title);
    font-size: 1.4rem;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

/* ========================================================
   MAIN CONTENT & PAGE HEADERS
   ======================================================== */
main {
    min-height: calc(100vh - 250px);
}

main:has(.hero),
main.home-main {
    padding-top: 0 !important;
}

.page-header {
    text-align: center;
    padding: 70px 5% 24px 5%;
    max-width: 1200px;
    margin: 20px auto 0 auto;
}

.page-header h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    color: var(--text-title);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.page-header h1 span {
    color: var(--logo-green);
}

.page-header p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
}

.detail-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 35px 5% 60px 5%;
}


/* ========================================================
   HERO SECTION
   ======================================================== */
/* ========================================================
   HERO SECTION (DYNAMIC YOUTH MESH GRADIENT & LIVE AURA)
   ======================================================== */
.hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 65px 5% 24px 5%;
    position: relative;
    border-bottom: none;
    overflow: hidden;
    z-index: 1;
    background: #041613;
}

/* Fondo abstracto enérgico mesh festivalero sin foto estática */
.hero::before {
    content: '';
    position: absolute;
    top: -25%; left: -25%; right: -25%; bottom: -25%;
    background: 
        radial-gradient(circle at 18% 30%, rgba(16, 185, 129, 0.40) 0%, transparent 45%),
        radial-gradient(circle at 82% 25%, rgba(6, 214, 160, 0.35) 0%, transparent 45%),
        radial-gradient(circle at 50% 80%, rgba(139, 92, 246, 0.30) 0%, transparent 50%),
        linear-gradient(135deg, #031411 0%, #05241e 50%, #031411 100%);
    background-size: 140% 140%;
    z-index: -3;
    filter: blur(35px);
    animation: mesh-dance 14s ease-in-out infinite alternate;
}

/* Cover como fondo difuminado de la portada en emisión */
.hero-cover-backdrop {
    position: absolute;
    inset: -30px;
    background-size: cover;
    background-position: center;
    filter: blur(40px) saturate(1.7) brightness(0.70);
    -webkit-filter: blur(40px) saturate(1.7) brightness(0.70);
    opacity: 0;
    transition: opacity 2s ease-in-out, background-image 2s ease-in-out;
    z-index: -2;
    pointer-events: none;
}

@keyframes mesh-dance {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.08) rotate(2deg); }
    100% { transform: scale(1.04) rotate(-2deg); }
}

/* Fondo dinámico de tatuajes flash & micro-doodles animados (Sin fondo fijo, ráfagas rollo flaix) */
.hero-soundwaves-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
    transition: opacity 0.3s ease;
}

/* Efecto Flash Wipe: desaparecen los tattoos con un destello para dejar ver el fondo 1 segundo */
.hero-soundwaves-bg.hero-flash-wipe {
    animation: heroFlashPulse 1.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroFlashPulse {
    0% {
        opacity: 1;
        filter: brightness(1);
    }
    15% {
        opacity: 0.15;
        filter: brightness(2.4);
    }
    25% {
        opacity: 0;
    }
    85% {
        opacity: 0;
    }
    100% {
        opacity: 1;
        filter: brightness(1);
    }
}

/* Tatuajes individuales flotantes translúcidos que aparecen y desaparecen a gran velocidad */
.dynamic-tattoo-item {
    position: absolute;
    pointer-events: none;
    user-select: none;
    transform: translate(-50%, -50%);
    will-change: transform, opacity, filter;
    animation: dynamicTattooFade var(--anim-duration, 1.8s) cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dynamic-tattoo-item svg {
    display: block;
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 1.5px; /* Trazo más suave y menos intenso */
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/* Variaciones de tamaño equilibradas y diversas */
.dynamic-tattoo-item.size-xs {
    width: 60px;
    height: 60px;
}
.dynamic-tattoo-item.size-sm {
    width: 90px;
    height: 90px;
}
.dynamic-tattoo-item.size-md {
    width: 130px;
    height: 130px;
}
.dynamic-tattoo-item.size-lg {
    width: 180px;
    height: 180px;
}
.dynamic-tattoo-item.size-xl {
    width: 235px;
    height: 235px;
}

/* Variaciones de colores neón sutiles y translúcidos con intensidad suave */
.dynamic-tattoo-item.color-emerald {
    color: #34d399;
    filter: drop-shadow(0 0 6px rgba(52, 211, 153, 0.35));
}
.dynamic-tattoo-item.color-cyan {
    color: #38bdf8;
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.35));
}
.dynamic-tattoo-item.color-pink {
    color: #f43f5e;
    filter: drop-shadow(0 0 6px rgba(244, 63, 94, 0.35));
}
.dynamic-tattoo-item.color-gold {
    color: #fbbf24;
    filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.35));
}
.dynamic-tattoo-item.color-white {
    color: #ffffff;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.35));
}

/* Variación especial sutil para doodle sorpresa */
.dynamic-tattoo-item.is-special {
    filter: drop-shadow(0 0 8px rgba(52, 211, 153, 0.45)) !important;
}

@keyframes dynamicTattooFade {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    20% {
        opacity: 0.22; /* Reducción notable de intensidad (mucho más tenue y discreto) */
        transform: translate(-50%, -50%) scale(1.0);
    }
    80% {
        opacity: 0.16;
        transform: translate(calc(-50% + var(--drift-x, 4px)), calc(-50% + var(--drift-y, -6px))) scale(1.0);
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--drift-x, 8px)), calc(-50% + var(--drift-y, -12px))) scale(0.95);
    }
}

/* Pulso vivo para el botón principal de play */
#radioListenBtn {
    position: relative;
    filter: drop-shadow(0 0 25px rgba(16, 185, 129, 0.65));
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease !important;
}

#radioListenBtn:hover {
    transform: scale(1.1) !important;
    filter: drop-shadow(0 0 35px rgba(52, 211, 153, 0.95)) !important;
}

/* Estilo festivalero luminoso para el lema LIVE in La Rioja */
.live-rioja-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 22px;
    margin-top: 6px;
    margin-bottom: 8px;
    border-radius: 9999px;
    background: rgba(4, 22, 19, 0.45);
    border: 1px solid rgba(52, 211, 153, 0.5);
    backdrop-filter: blur(14px);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25);
    font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
    font-weight: 700;
    font-size: clamp(1.05rem, 2.6vw, 1.35rem);
    letter-spacing: 0.05em;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transform: none;
    transition: all 0.3s ease;
    animation: live-pill-glow 3s ease-in-out infinite alternate;
}

.live-rioja-badge:hover {
    transform: scale(1.03);
    border-color: rgba(52, 211, 153, 0.85);
}

.live-rioja-badge .live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981, 0 0 18px #34d399;
    animation: live-dot-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes live-pill-glow {
    0% { border-color: rgba(52, 211, 153, 0.35); box-shadow: 0 4px 20px rgba(16, 185, 129, 0.2); }
    100% { border-color: rgba(52, 211, 153, 0.75); box-shadow: 0 6px 28px rgba(16, 185, 129, 0.45); }
}

@keyframes live-dot-ping {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(248, 250, 252, 0) 0%, var(--bg-main) 85%, var(--bg-main) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

/* ---- Hero TV Box (Reproductor / Slideshow Publicitario) ---- */
.hero-tv-box {
    position: relative;
    z-index: 3;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    border: 1.5px solid rgba(16, 185, 129, 0.45);
    overflow: hidden;
    background: rgba(3, 20, 16, 0.95) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px rgba(6, 78, 59, 0.2);
    transition: aspect-ratio 0.4s ease, max-width 0.4s ease;
    will-change: transform, filter;
}

/* Cover e Imágenes SIN TRANSPARENCIA (100% nítido y sólido) */
.hero-tv-slideshow,
.cover-crossfade-container {
    background: #031410 !important;
}

.cover-crossfade-container img,
.cover-layer-front,
.cover-layer-back {
    opacity: 1 !important;
    filter: none !important;
}

/* Efecto de interferencia CRT / Scanlines durante el glitch */
.hero-tv-box::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.3) 0px,
        rgba(0, 0, 0, 0.3) 2px,
        transparent 2px,
        transparent 4px
    );
    opacity: 0;
    z-index: 5;
    animation: tvScanlineFlicker 4.5s infinite;
}

@keyframes tvScanlineFlicker {
    0%, 68% { opacity: 0; }
    70%, 86% { opacity: 0.65; }
    88%, 100% { opacity: 0; }
}

/* ========================================================
   DYNAMIC UNPREDICTABLE MOTION ENGINE FOR TV / COVER / SLIDES
   ======================================================== */
.hero-tv-box.tv-motion-calm-float {
    animation: tvAnimCalmFloat 6s ease-in-out infinite !important;
}
@keyframes tvAnimCalmFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        filter: drop-shadow(0 6px 20px rgba(6, 78, 59, 0.2));
    }
    35% {
        transform: translateY(-4px) rotate(0.6deg) scale(1.005);
        filter: drop-shadow(0 8px 24px rgba(6, 78, 59, 0.28));
    }
    70% {
        transform: translateY(2px) rotate(-0.5deg) scale(0.995);
        filter: drop-shadow(0 5px 16px rgba(6, 78, 59, 0.18));
    }
}

/* 2. Stretch X (Alargar horizontalmente / retro CRT stretch) */
.hero-tv-box.tv-motion-stretch-x {
    animation: tvAnimStretchX 4s ease-in-out infinite !important;
}
@keyframes tvAnimStretchX {
    0%, 100% {
        transform: scale(1, 1) rotate(0deg);
        filter: drop-shadow(0 6px 20px rgba(6, 78, 59, 0.2));
    }
    30% {
        transform: scale(1.14, 0.92) rotate(0.4deg);
        filter: drop-shadow(0 10px 28px rgba(16, 185, 129, 0.35));
    }
    65% {
        transform: scale(0.94, 1.06) rotate(-0.4deg);
        filter: drop-shadow(0 5px 16px rgba(6, 78, 59, 0.2));
    }
    85% {
        transform: scale(1.04, 0.98) rotate(0deg);
    }
}

/* 3. Stretch Y (Alargar verticalmente) */
.hero-tv-box.tv-motion-stretch-y {
    animation: tvAnimStretchY 3.8s ease-in-out infinite !important;
}
@keyframes tvAnimStretchY {
    0%, 100% {
        transform: scale(1, 1) translateY(0);
        filter: drop-shadow(0 6px 20px rgba(6, 78, 59, 0.2));
    }
    35% {
        transform: scale(0.92, 1.14) translateY(-5px);
        filter: drop-shadow(0 12px 30px rgba(52, 211, 153, 0.3));
    }
    70% {
        transform: scale(1.05, 0.96) translateY(2px);
    }
}

/* 4. EXAGERADO: Interferencia de TV / Glitch cromático & static shudder */
.hero-tv-box.tv-motion-interference {
    animation: tvAnimInterference 0.32s steps(2) infinite !important;
}
.hero-tv-box.tv-motion-interference::after {
    opacity: 0.85 !important;
    animation: tvScanlineFastFlicker 0.12s steps(2) infinite !important;
}
@keyframes tvAnimInterference {
    0% {
        transform: translate(0, 0) skewX(0deg) scale(1);
        filter: drop-shadow(0 8px 25px rgba(6, 78, 59, 0.3));
    }
    20% {
        transform: translate(-7px, 3px) skewX(-4deg) scale(1.05);
        filter: drop-shadow(8px 0 0 rgba(244, 63, 94, 0.85)) drop-shadow(-8px 0 0 rgba(56, 189, 248, 0.85)) brightness(1.25);
    }
    40% {
        transform: translate(8px, -3px) skewX(5deg) scale(0.96);
        filter: drop-shadow(-9px 0 0 rgba(244, 63, 94, 0.9)) drop-shadow(9px 0 0 rgba(52, 211, 153, 0.9)) contrast(1.4);
    }
    60% {
        transform: translate(-5px, -2px) skewY(2deg) scale(1.06);
        filter: drop-shadow(7px 4px 0 rgba(251, 191, 36, 0.85)) brightness(1.3);
    }
    80% {
        transform: translate(6px, 2px) skewX(-3deg) scale(0.98);
        filter: drop-shadow(-7px 0 0 rgba(56, 189, 248, 0.8));
    }
    100% {
        transform: translate(0, 0) skewX(0deg) scale(1);
        filter: drop-shadow(0 8px 25px rgba(6, 78, 59, 0.3));
    }
}
@keyframes tvScanlineFastFlicker {
    0% { opacity: 0.4; }
    50% { opacity: 0.95; }
    100% { opacity: 0.3; }
}

/* 5. Wobble Jelly (Gelatina oscilante) */
.hero-tv-box.tv-motion-wobble-jelly {
    animation: tvAnimWobble 4.5s ease-in-out infinite !important;
}
@keyframes tvAnimWobble {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(-1.5deg) scale(1.03, 0.97) translateY(-2px);
    }
    50% {
        transform: rotate(1.2deg) scale(0.97, 1.03) translateY(2px);
    }
    75% {
        transform: rotate(-0.8deg) scale(1.01, 0.99) translateY(-1px);
    }
}

/* 6. EXAGERADO: CRT Warp & Tracking Roll */
.hero-tv-box.tv-motion-crt-warp {
    animation: tvAnimCrtWarp 2.4s cubic-bezier(0.25, 1, 0.5, 1) infinite !important;
}
.hero-tv-box.tv-motion-crt-warp::after {
    opacity: 0.65 !important;
}
@keyframes tvAnimCrtWarp {
    0% {
        transform: scale(1) translateY(0);
        filter: brightness(1);
    }
    30% {
        transform: scale(1.10, 0.90) translateY(-14px) skewX(6deg);
        filter: drop-shadow(0 15px 35px rgba(52, 211, 153, 0.4)) brightness(1.3);
    }
    50% {
        transform: scale(0.93, 1.10) translateY(8px) skewX(-4deg);
        filter: contrast(1.3) brightness(1.15);
    }
    75% {
        transform: scale(1.02, 0.99) translateY(-3px) skewX(1deg);
    }
    100% {
        transform: scale(1) translateY(0);
        filter: brightness(1);
    }
}

/* 7. Drift Tilt (Deriva lateral lenta) */
.hero-tv-box.tv-motion-drift-tilt {
    animation: tvAnimDriftTilt 6s ease-in-out infinite !important;
}
@keyframes tvAnimDriftTilt {
    0%, 100% {
        transform: translateX(0px) rotate(0deg);
    }
    30% {
        transform: translateX(6px) rotate(0.8deg);
    }
    70% {
        transform: translateX(-6px) rotate(-0.8deg);
    }
}

/* Fallback animaciones previas */
@keyframes tvCoverGlitch {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-3px) rotate(-0.5deg); }
}
@keyframes coverSoftSway {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-3px) rotate(0.6deg); }
}

/* Modo Vertical (Reels / Vídeo o Slide vertical 9:16) - Tamaño proporcional */
.hero-tv-box.is-vertical {
    aspect-ratio: 9 / 16;
    max-width: 270px !important;
    margin: 0 auto;
}

/* Modo Horizontal (Vídeo estándar 16:9 o slide horizontal) - Más amplio y despejado */
.hero-tv-box.is-horizontal {
    aspect-ratio: 16 / 9;
    max-width: 460px !important;
    margin: 0 auto;
}

/* Modo Cuadrado (EXCLUSIVO para Cover de Música) - Un poco más grande, 100% sólido */
.hero-tv-box.is-square {
    aspect-ratio: 1 / 1 !important;
    max-width: 280px !important;
    margin: 0 auto !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55), 0 0 20px rgba(16, 185, 129, 0.2) !important;
    border: 1.5px solid rgba(16, 185, 129, 0.35) !important;
    background: #031410 !important;
}

.hero-tv-box.is-square img {
    padding: 0 !important;
    object-fit: cover !important;
}

.hero-tv-box iframe,
.hero-tv-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    display: block;
}

.hero-tv-box.is-vertical video {
    object-fit: contain;
    background: #000;
}

/* Slideshow de imágenes publicitarias */
.hero-tv-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-tv-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-tv-box.is-vertical .hero-tv-slide {
    background-size: contain;
    background-color: transparent;
}

.hero-tv-slide.active {
    opacity: 1;
}

.hero-tv-box.hidden {
    display: none;
}

/* Cuando no hay TV, el hero vuelve a centrado 1 columna */
.hero-grid:has(.hero-tv-box.hidden) {
    grid-template-columns: 1fr;
    max-width: 880px;
}

.hero-grid:has(.hero-tv-box.hidden) .hero-content {
    text-align: center;
    align-items: center;
}

.hero-pill-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 14px;
}

.hero-pill {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--logo-navy);
}

.hero-pill .town-first-letter {
    font-family: 'Caveat', cursive !important;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 0.9;
    color: var(--logo-green);
    margin-right: 1px;
    display: inline-block;
    vertical-align: baseline;
    text-transform: uppercase;
}

.hero-pill .pulse-dot {
    display: none !important;
}

/* Titular Corral fm idéntico al logo con movimiento cinético */
.hero-logo-title {
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    font-size: clamp(2.9rem, 6.2vw, 5.0rem);
    font-weight: 800;
    line-height: 1;
    margin-top: 0;
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 10px;
    letter-spacing: -0.02em;
    width: 100%;
    text-align: center;
    perspective: 800px;
}

.corral-word {
    font-weight: 900;
    display: inline-block;
    will-change: transform, color, text-shadow;
    /* Cambio progresivo de color en ciclo continuo + movimiento suave sin sacudidas */
    animation: corralColorShift 12s ease-in-out infinite, corralSubtleFloat 5s ease-in-out infinite alternate;
}

@keyframes corralColorShift {
    0%, 100% {
        color: #ffffff;
        text-shadow: 0 0 16px rgba(255, 255, 255, 0.6), 0 0 32px rgba(52, 211, 153, 0.4);
    }
    20% {
        color: #34d399; /* Esmeralda neón */
        text-shadow: 0 0 20px rgba(52, 211, 153, 0.85), 0 0 40px rgba(16, 185, 129, 0.6);
    }
    40% {
        color: #38bdf8; /* Cyan eléctrico */
        text-shadow: 0 0 20px rgba(56, 189, 248, 0.85), 0 0 40px rgba(14, 165, 233, 0.6);
    }
    60% {
        color: #f472b6; /* Rosa neón */
        text-shadow: 0 0 20px rgba(244, 114, 182, 0.85), 0 0 40px rgba(236, 72, 153, 0.6);
    }
    80% {
        color: #fbbf24; /* Dorado cálido */
        text-shadow: 0 0 20px rgba(251, 191, 36, 0.85), 0 0 40px rgba(245, 158, 11, 0.6);
    }
}

@keyframes corralSubtleFloat {
    0% {
        transform: translateY(0) scale(1);
    }
    100% {
        transform: translateY(-3px) scale(1.015);
    }
}

.fm-word {
    color: #10b981;
    font-weight: 800;
    font-size: 0.95em;
    background: none;
    box-shadow: none;
    padding: 0;
    text-transform: lowercase;
    display: inline-block;
    will-change: transform, filter;
    animation: groove-fm 2.4s ease-in-out infinite alternate;
}

@keyframes groove-fm {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.4));
    }
    100% {
        transform: scale(1.06);
        filter: drop-shadow(0 0 20px rgba(52, 211, 153, 0.9)) drop-shadow(0 0 35px rgba(16, 185, 129, 0.6));
    }
}

.hours-word {
    font-size: 0.5em;
    font-weight: 700;
    margin-left: 8px;
    letter-spacing: -0.01em;
    background: linear-gradient(90deg, #64748b, #10b981, #f59e0b, #64748b);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
    will-change: transform;
    animation: pop-hours 1.1s ease-in-out infinite;
}

@keyframes pop-hours {
    0%, 100% {
        transform: translateY(0) scale(1);
        background-position: 0% 50%;
    }
    50% {
        transform: translateY(-2px) scale(1.02);
        background-position: 100% 50%;
    }
}

/* Sublema Dinámico con movimiento ondulante suave sin cabeceo de puntas */
.hero-sublema {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-family: 'Outfit', sans-serif !important;
    font-size: clamp(1rem, 1.8vw, 1.25rem) !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    letter-spacing: 0.08em !important;
    margin-top: 4px !important;
    margin-bottom: 14px !important;
    opacity: 0.98 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85) !important;
    animation: sublema-dance 2.2s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes sublema-dance {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}

.sublema-part {
    display: inline-block;
}

.sublema-lead, .sublema-region {
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.sublema-connector {
    text-transform: lowercase;
    font-style: italic;
    opacity: 0.85;
    padding: 0 2px;
}

/* Palabra rotativa con efecto ('musical', 'joven', 'crazy', 'top') */
.sublema-musical {
    font-family: 'Caveat', cursive, sans-serif !important;
    font-size: 1.65em !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: 0.02em !important;
    vertical-align: -2px;
    display: inline-block;
    padding: 0 6px;
    min-width: 80px;
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease, filter 0.3s ease, color 0.3s ease;
    will-change: transform, opacity, filter;
}

/* Efecto de salida */
.sublema-musical.word-changing-out {
    opacity: 0;
    transform: translateY(-14px) rotateX(75deg) scale(0.7);
    filter: blur(4px);
}

/* Efecto de entrada con rebote dinámico */
.sublema-musical.word-changing-in {
    animation: wordPopIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes wordPopIn {
    0% {
        opacity: 0;
        transform: translateY(14px) rotateX(-75deg) scale(0.65);
        filter: blur(4px);
    }
    60% {
        opacity: 1;
        transform: translateY(-3px) rotateX(0deg) scale(1.22);
        filter: blur(0px) drop-shadow(0 0 18px currentColor);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg) scale(1);
        filter: drop-shadow(0 0 12px currentColor);
    }
}

/* Colores y brillos distintivos de cada palabra */
.sublema-musical.word-musical {
    color: #34d399 !important; /* Esmeralda radio */
    text-shadow: 0 0 16px rgba(52, 211, 153, 0.75) !important;
}
.sublema-musical.word-joven {
    color: #38bdf8 !important; /* Azul eléctrico juvenil */
    text-shadow: 0 0 16px rgba(56, 189, 248, 0.8) !important;
}
.sublema-musical.word-crazy {
    color: #f43f5e !important; /* Fucsia / Rosa rebelde crazy */
    text-shadow: 0 0 20px rgba(244, 63, 94, 0.85) !important;
}
.sublema-musical.word-top {
    color: #fbbf24 !important; /* Dorado / Amarillo TOP */
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.9) !important;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    justify-content: center;
}

/* Hero Town Search Center - Central Selector */
.hero-town-search-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px auto 4px auto;
    width: 100%;
    max-width: 580px;
    flex-wrap: wrap;
}

.hero-town-search-center .zone-select-pill.hero-center-pill {
    flex: 1;
    min-width: 250px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 8px 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.hero-town-search-center .zone-select-pill.hero-center-pill:hover,
.hero-town-search-center .zone-select-pill.hero-center-pill:focus-within {
    border-color: rgba(230, 160, 40, 0.8);
    transform: translateY(-2px);
}

.hero-town-search-center .zone-select-pill.hero-center-pill .zone-select-input {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-main);
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    cursor: pointer;
}

/* Botón Escuchar en Directo más pequeño */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 24px;
    background: var(--grad-logo);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(6, 78, 59, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(6, 78, 59, 0.4);
    background: var(--grad-green);
}

.btn-icon-circle {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

/* ====== TELEVISION & STUDIO TV BROADCAST MONITOR ====== */
.tv-studio-frame,
#tvStudioFrame,
.tv-screen-viewport,
#tvScreenViewport,
.tv-radio-screen,
#tvRadioScreen,
.tv-info-slide-card,
#tvInfoSlideCard,
.tv-weather-badge,
#tvWeatherBadge {
    display: none !important;
}

.tv-studio-frame:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.55), 0 0 45px rgba(16, 185, 129, 0.4);
}

.tv-screen-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 6px;
}

.tv-brand-badge {
    display: none;
}

.tv-dot {
    width: 8px;
    height: 8px;
    background: #38bdf8;
    border-radius: 50%;
    box-shadow: 0 0 8px #38bdf8;
}

.tv-signal-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 9999px;
}

.pulse-dot-red {
    width: 7px;
    height: 7px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulseRed 1.4s infinite;
}

@keyframes pulseRed {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.tv-screen-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tv-video-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.tv-video-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Radio Screen Mode */
.tv-radio-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(6, 78, 59, 0.75) 0%, rgba(2, 44, 34, 0.92) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}

.tv-radio-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ4exU6ckDciDJU3A5-r6pePfRyA3HTyh-I6RueeC7LQnDULwAsqH5XtpCn&s=10') center/cover no-repeat;
    opacity: 0.50;
    filter: blur(1px);
}


/* ====== TELEVISION BROADCAST SPLIT LAYOUT (PARA BARES Y PANTALLA COMPLETA) ====== */
.tv-split-container {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Left Brand Box - Logo exact same width as FUENMAYOR text */
.tv-left-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
}

.tv-brand-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    max-width: 260px;
}

.tv-big-logo {
    display: none; /* Oculto en portada, solo visible en Fullscreen */
    width: 100%;
    max-width: 220px;
    height: auto;
    max-height: 85px;
    object-fit: contain;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.85));
    transition: transform 0.3s ease;
}

.tv-radio-screen:hover .tv-big-logo {
    transform: scale(1.04);
}

.tv-fuenmayor-label {
    width: 100%;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.95);
    text-transform: uppercase;
    text-align: center;
    margin-top: 2px;
}

.tv-tag-247 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.22);
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #34d399;
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 9999px;
    margin-top: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.pulse-dot-green {
    width: 7px;
    height: 7px;
    background: #34d399;
    border-radius: 50%;
    box-shadow: 0 0 8px #34d399;
    animation: pulseGreen 1.4s infinite;
}

@keyframes pulseGreen {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.25); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* Right Column: Rotating Slideshow (Hidden in small mode, visible in fullscreen) */
.tv-right-slideshow {
    display: none;
    height: 100%;
    align-items: center;
    justify-content: center;
    transition: opacity 0.25s ease;
    overflow: hidden;
}

.tv-slide-card {
    width: 100%;
    height: 100%;
    max-height: 250px;
    background: rgba(8, 12, 20, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.9);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.tv-slide-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.5);
}

.tv-slide-img {
    width: 42%;
    min-width: 42%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.tv-slide-content {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.tv-slide-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.tv-slide-badge {
    background: #ffffff;
    color: #090d16;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 900;
    padding: 4px 12px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.tv-slide-badge-town {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.45) !important;
    letter-spacing: 1px !important;
}

.tv-slide-title {
    font-family: 'Lora', 'Merriweather', Georgia, serif;
    font-size: 1.48rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    margin: 8px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tv-slide-desc {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.02rem;
    color: #e2e8f0;
    line-height: 1.35;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tv-slide-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.tv-slide-date {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.82rem;
    color: #facc15;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.tv-slide-author {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 600;
}

/* TV Weather Badge - TIEMPO A LA IZQUIERDA SUPERIOR */
.tv-weather-badge {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 10px;
    left: 12px;
    right: auto;
    transform: none;
    z-index: 5;
    background: transparent;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 16px;
    padding: 5px 14px;
    align-items: flex-start;
    gap: 2px;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.85);
    white-space: nowrap;
}

.tv-weather-town-tag {
    font-family: 'Outfit', sans-serif;
    font-size: 0.70rem;
    font-weight: 900;
    color: #34d399;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    background: rgba(6, 78, 59, 0.40);
    border: 1px solid rgba(52, 211, 153, 0.45);
    padding: 2px 10px;
    border-radius: 9999px;
    margin-bottom: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.tv-weather-top-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.weather-icon {
    font-size: 1.2rem;
}

.weather-temp-info {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.weather-current {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 900;
    color: #ffffff;
}

.weather-range {
    font-size: 0.65rem;
    color: #cbd5e1;
    font-weight: 700;
}

/* TV Clock Badge - HORA A LA DERECHA SUPERIOR */
.tv-clock-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 10px;
    right: 12px;
    left: auto;
    transform: none;
    z-index: 5;
    background: transparent;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 16px;
    padding: 6px 14px;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.85);
    white-space: nowrap;
}

.tv-clock {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
    text-align: center;
}

.weather-sky {
    font-size: 0.68rem;
    font-weight: 800;
    color: #cbd5e1;
    border-left: 1px solid rgba(255,255,255,0.2);
    padding-left: 8px;
    text-transform: uppercase;
}

/* Tarjeta Transparente Info Slide (SOLO visible en pantalla completa / oculto en miniatura portada) */
.tv-info-slide-card {
    display: flex;
    align-items: center;
    gap: 14px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10;
    background: rgba(4, 15, 24, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-left: none;
    border-right: none;
    border-bottom: none;
    border-radius: 0;
    padding: 8px 18px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
    box-sizing: border-box;
}

.tv-info-badge {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.tv-info-content {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.tv-info-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    color: #ffffff;
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: tvTickerScroll 75s linear infinite;
}

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

.tv-ticker-item span {
    color: #34d399;
    font-size: 0.9rem;
}

@keyframes tvTickerMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Fullscreen Mode Scaling & Display for Bar & Venue TV Monitors */
:fullscreen .tv-studio-frame,
.tv-studio-frame:fullscreen,
:-webkit-full-screen .tv-studio-frame,
.tv-studio-frame.is-fullscreen {
    max-width: 100vw !important;
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: #020617 !important;
}

:fullscreen .tv-screen-header,
.tv-studio-frame:fullscreen .tv-screen-header,
:-webkit-full-screen .tv-screen-header,
.tv-studio-frame.is-fullscreen .tv-screen-header {
    display: none !important;
}

:fullscreen .tv-screen-footer,
.tv-studio-frame:fullscreen .tv-screen-footer,
:-webkit-full-screen .tv-screen-footer,
.tv-studio-frame.is-fullscreen .tv-screen-footer {
    display: none !important;
}

:fullscreen .tv-screen-viewport,
.tv-studio-frame:fullscreen .tv-screen-viewport,
:-webkit-full-screen .tv-screen-viewport,
.tv-studio-frame.is-fullscreen .tv-screen-viewport {
    height: 100vh !important;
    width: 100vw !important;
    aspect-ratio: auto !important;
    border-radius: 0 !important;
    border: none !important;
}

/* Reveal Weather & Clock Badge in Fullscreen Mode: Tiempo Izquierda Superior, Hora Derecha Superior */
:fullscreen .tv-weather-badge,
.tv-studio-frame:fullscreen .tv-weather-badge,
:-webkit-full-screen .tv-weather-badge,
.tv-studio-frame.is-fullscreen .tv-weather-badge {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    top: 24px !important;
    left: 28px !important;
    right: auto !important;
    transform: none !important;
    padding: 10px 22px !important;
    border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 20px !important;
    background: transparent !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.85) !important;
    gap: 4px !important;
}

:fullscreen .tv-clock-badge,
.tv-studio-frame:fullscreen .tv-clock-badge,
:-webkit-full-screen .tv-clock-badge,
.tv-studio-frame.is-fullscreen .tv-clock-badge {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: 24px !important;
    right: 28px !important;
    left: auto !important;
    transform: none !important;
    padding: 10px 24px !important;
    border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 20px !important;
    background: transparent !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.85) !important;
    z-index: 5 !important;
}

:fullscreen .tv-clock,
.tv-studio-frame:fullscreen .tv-clock,
:-webkit-full-screen .tv-clock,
.tv-studio-frame.is-fullscreen .tv-clock {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 2.0rem !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    letter-spacing: 2px !important;
    border-top: none !important;
    padding-top: 0 !important;
    width: auto !important;
    text-align: center !important;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3) !important;
}

:fullscreen .weather-icon,
.tv-studio-frame:fullscreen .weather-icon,
:-webkit-full-screen .weather-icon,
.tv-studio-frame.is-fullscreen .weather-icon {
    font-size: 2.2rem !important;
}

:fullscreen .weather-current,
.tv-studio-frame:fullscreen .weather-current,
:-webkit-full-screen .weather-current,
.tv-studio-frame.is-fullscreen .weather-current {
    font-size: 2.1rem !important;
    color: #38bdf8 !important;
    font-weight: 900 !important;
    text-shadow: 0 2px 12px rgba(56, 189, 248, 0.5) !important;
}

:fullscreen .weather-range,
.tv-studio-frame:fullscreen .weather-range,
:-webkit-full-screen .weather-range,
.tv-studio-frame.is-fullscreen .weather-range {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: #cbd5e1 !important;
}

:fullscreen .weather-sky,
.tv-studio-frame:fullscreen .weather-sky,
:-webkit-full-screen .weather-sky,
.tv-studio-frame.is-fullscreen .weather-sky {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: #94a3b8 !important;
    border-left: 2px solid rgba(255, 255, 255, 0.2) !important;
    padding-left: 14px !important;
}

/* Reveal Ticker in Fullscreen Mode */
:fullscreen .tv-embedded-ticker,
.tv-studio-frame:fullscreen .tv-embedded-ticker,
:-webkit-full-screen .tv-embedded-ticker,
.tv-studio-frame.is-fullscreen .tv-embedded-ticker {
    display: flex !important;
    height: 64px !important;
    bottom: 14px !important;
    left: 14px !important;
    right: 14px !important;
}

/* Reveal Slideshow & Split Container in Fullscreen Mode */
:fullscreen .tv-split-container,
.tv-studio-frame:fullscreen .tv-split-container,
:-webkit-full-screen .tv-split-container,
.tv-studio-frame.is-fullscreen .tv-split-container {
    display: grid !important;
    grid-template-columns: 0.9fr 1.1fr !important;
    padding: 50px 24px 85px 24px !important;
    gap: 24px !important;
    align-items: center !important;
}

:fullscreen .tv-right-slideshow,
.tv-studio-frame:fullscreen .tv-right-slideshow,
:-webkit-full-screen .tv-right-slideshow,
.tv-studio-frame.is-fullscreen .tv-right-slideshow {
    display: flex !important;
}

:fullscreen .tv-brand-box,
.tv-studio-frame:fullscreen .tv-brand-box,
:-webkit-full-screen .tv-brand-box,
.tv-studio-frame.is-fullscreen .tv-brand-box {
    max-width: 320px !important;
}

:fullscreen .tv-big-logo,
.tv-studio-frame:fullscreen .tv-big-logo,
:-webkit-full-screen .tv-big-logo,
.tv-studio-frame.is-fullscreen .tv-big-logo {
    max-width: 280px !important;
    max-height: 110px !important;
}

:fullscreen .tv-fuenmayor-label,
.tv-studio-frame:fullscreen .tv-fuenmayor-label,
:-webkit-full-screen .tv-fuenmayor-label,
.tv-studio-frame.is-fullscreen .tv-fuenmayor-label {
    font-size: 1.6rem !important;
    letter-spacing: 5px !important;
}

:fullscreen .tv-tag-247,
.tv-studio-frame:fullscreen .tv-tag-247,
:-webkit-full-screen .tv-tag-247,
.tv-studio-frame.is-fullscreen .tv-tag-247 {
    font-size: 1.1rem !important;
    padding: 6px 18px !important;
}

:fullscreen .tv-slide-card,
.tv-studio-frame:fullscreen .tv-slide-card,
:-webkit-full-screen .tv-slide-card,
.tv-studio-frame.is-fullscreen .tv-slide-card {
    max-height: 380px !important;
    padding: 22px 28px !important;
    border-radius: 20px !important;
}

:fullscreen .tv-slide-badge,
.tv-studio-frame:fullscreen .tv-slide-badge,
:-webkit-full-screen .tv-slide-badge,
.tv-studio-frame.is-fullscreen .tv-slide-badge {
    font-size: 0.85rem !important;
    letter-spacing: 2.5px !important;
    padding: 5px 14px !important;
    margin-bottom: 12px !important;
    display: inline-block !important;
}

:fullscreen .tv-slide-title,
.tv-studio-frame:fullscreen .tv-slide-title,
:-webkit-full-screen .tv-slide-title,
.tv-studio-frame.is-fullscreen .tv-slide-title {
    font-family: 'Lora', 'Merriweather', Georgia, serif !important;
    font-size: 2.35rem !important;
    font-weight: 700 !important;
    line-height: 1.22 !important;
    margin: 12px 0 !important;
    -webkit-line-clamp: 3 !important;
}

:fullscreen .tv-slide-desc,
.tv-studio-frame:fullscreen .tv-slide-desc,
:-webkit-full-screen .tv-slide-desc,
.tv-studio-frame.is-fullscreen .tv-slide-desc {
    font-size: 1.45rem !important;
    line-height: 1.42 !important;
    color: #f1f5f9 !important;
    -webkit-line-clamp: 3 !important;
}

:fullscreen .tv-slide-date,
.tv-studio-frame:fullscreen .tv-slide-date,
:-webkit-full-screen .tv-slide-date,
.tv-studio-frame.is-fullscreen .tv-slide-date {
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    border-left: 4px solid #ffffff !important;
    padding-left: 12px !important;
}

:fullscreen .tv-info-slide-card,
.tv-studio-frame:fullscreen .tv-info-slide-card,
:-webkit-full-screen .tv-info-slide-card,
.tv-studio-frame.is-fullscreen .tv-info-slide-card {
    display: flex !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    padding: 12px 24px !important;
    border-radius: 0 !important;
}

:fullscreen .tv-info-badge,
.tv-studio-frame:fullscreen .tv-info-badge,
:-webkit-full-screen .tv-info-badge,
.tv-studio-frame.is-fullscreen .tv-info-badge {
    font-size: 0.85rem !important;
    padding: 6px 14px !important;
}

:fullscreen .tv-info-text,
.tv-studio-frame:fullscreen .tv-info-text,
:-webkit-full-screen .tv-info-text,
.tv-studio-frame.is-fullscreen .tv-info-text {
    font-size: 1.25rem !important;
}
.tv-studio-frame:fullscreen .tv-ticker-item,
:-webkit-full-screen .tv-ticker-item,
.tv-studio-frame.is-fullscreen .tv-ticker-item {
    font-size: 1.45rem !important;
}

/* Mobile Vertical & Small Screens Fullscreen TV Adjustments */
@media (max-width: 640px) {
    :fullscreen .tv-split-container,
    .tv-studio-frame:fullscreen .tv-split-container,
    :-webkit-full-screen .tv-split-container,
    .tv-studio-frame.is-fullscreen .tv-split-container {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 45px 12px 60px 12px !important;
        gap: 16px !important;
    }

    :fullscreen .tv-left-brand,
    .tv-studio-frame:fullscreen .tv-left-brand,
    :-webkit-full-screen .tv-left-brand,
    .tv-studio-frame.is-fullscreen .tv-left-brand {
        margin-top: 10px !important;
    }

    :fullscreen .tv-brand-box,
    .tv-studio-frame:fullscreen .tv-brand-box,
    :-webkit-full-screen .tv-brand-box,
    .tv-studio-frame.is-fullscreen .tv-brand-box {
        max-width: 220px !important;
    }

    :fullscreen .tv-big-logo,
    .tv-studio-frame:fullscreen .tv-big-logo,
    :-webkit-full-screen .tv-big-logo,
    .tv-studio-frame.is-fullscreen .tv-big-logo {
        max-width: 200px !important;
        max-height: 70px !important;
    }

    :fullscreen .tv-fuenmayor-label,
    .tv-studio-frame:fullscreen .tv-fuenmayor-label,
    :-webkit-full-screen .tv-fuenmayor-label,
    .tv-studio-frame.is-fullscreen .tv-fuenmayor-label {
        font-size: 1.35rem !important;
        letter-spacing: 4px !important;
    }

    :fullscreen .tv-tag-247,
    .tv-studio-frame:fullscreen .tv-tag-247,
    :-webkit-full-screen .tv-tag-247,
    .tv-studio-frame.is-fullscreen .tv-tag-247 {
        font-size: 0.72rem !important;
        padding: 3px 10px !important;
    }

    :fullscreen .tv-right-slideshow,
    .tv-studio-frame:fullscreen .tv-right-slideshow,
    :-webkit-full-screen .tv-right-slideshow,
    .tv-studio-frame.is-fullscreen .tv-right-slideshow {
        width: 100% !important;
        max-width: none !important;
        margin: 0 auto !important;
    }

    :fullscreen .tv-slide-card,
    .tv-studio-frame:fullscreen .tv-slide-card,
    :-webkit-full-screen .tv-slide-card,
    .tv-studio-frame.is-fullscreen .tv-slide-card {
        width: 96% !important;
        max-width: none !important;
        margin: 0 auto !important;
        max-height: 440px !important;
        border-radius: 16px !important;
    }

    :fullscreen .tv-slide-badge,
    .tv-studio-frame:fullscreen .tv-slide-badge,
    :-webkit-full-screen .tv-slide-badge,
    .tv-studio-frame.is-fullscreen .tv-slide-badge {
        font-size: 0.55rem !important;
        padding: 2px 7px !important;
        margin-bottom: 4px !important;
    }

    :fullscreen .tv-slide-title,
    .tv-studio-frame:fullscreen .tv-slide-title,
    :-webkit-full-screen .tv-slide-title,
    .tv-studio-frame.is-fullscreen .tv-slide-title {
        font-size: 1.15rem !important;
        margin: 4px 0 !important;
        -webkit-line-clamp: 2 !important;
    }

    :fullscreen .tv-slide-desc,
    .tv-studio-frame:fullscreen .tv-slide-desc,
    :-webkit-full-screen .tv-slide-desc,
    .tv-studio-frame.is-fullscreen .tv-slide-desc {
        font-size: 0.88rem !important;
        -webkit-line-clamp: 2 !important;
    }

    :fullscreen .tv-slide-date,
    .tv-studio-frame:fullscreen .tv-slide-date,
    :-webkit-full-screen .tv-slide-date,
    .tv-studio-frame.is-fullscreen .tv-slide-date {
        font-size: 0.88rem !important;
    }

    :fullscreen .tv-weather-badge,
    .tv-studio-frame:fullscreen .tv-weather-badge,
    :-webkit-full-screen .tv-weather-badge,
    .tv-studio-frame.is-fullscreen .tv-weather-badge {
        top: 12px !important;
        left: 16px !important;
        right: auto !important;
        transform: none !important;
        padding: 6px 14px !important;
        gap: 4px !important;
    }

    :fullscreen .tv-clock-badge,
    .tv-studio-frame:fullscreen .tv-clock-badge,
    :-webkit-full-screen .tv-clock-badge,
    .tv-studio-frame.is-fullscreen .tv-clock-badge {
        top: 12px !important;
        right: 16px !important;
        left: auto !important;
        transform: none !important;
        padding: 6px 16px !important;
    }

    :fullscreen .tv-clock,
    .tv-studio-frame:fullscreen .tv-clock,
    :-webkit-full-screen .tv-clock,
    .tv-studio-frame.is-fullscreen .tv-clock {
        font-size: 1.5rem !important;
    }

    :fullscreen .weather-icon,
    .tv-studio-frame:fullscreen .weather-icon,
    :-webkit-full-screen .weather-icon,
    .tv-studio-frame.is-fullscreen .weather-icon {
        font-size: 1.3rem !important;
    }

    :fullscreen .weather-current,
    .tv-studio-frame:fullscreen .weather-current,
    :-webkit-full-screen .weather-current,
    .tv-studio-frame.is-fullscreen .weather-current {
        font-size: 1.15rem !important;
    }

    :fullscreen .weather-range,
    .tv-studio-frame:fullscreen .weather-range,
    :-webkit-full-screen .weather-range,
    .tv-studio-frame.is-fullscreen .weather-range {
        font-size: 0.72rem !important;
    }

    :fullscreen .weather-sky,
    .tv-studio-frame:fullscreen .weather-sky,
    :-webkit-full-screen .weather-sky,
    .tv-studio-frame.is-fullscreen .weather-sky {
        font-size: 0.72rem !important;
        padding-left: 8px !important;
    }

    :fullscreen .tv-embedded-ticker,
    .tv-studio-frame:fullscreen .tv-embedded-ticker,
    :-webkit-full-screen .tv-embedded-ticker,
    .tv-studio-frame.is-fullscreen .tv-embedded-ticker {
        height: 42px !important;
        bottom: 8px !important;
        left: 8px !important;
        right: 8px !important;
    }

    :fullscreen .tv-ticker-item,
    .tv-studio-frame:fullscreen .tv-ticker-item,
    :-webkit-full-screen .tv-ticker-item,
    .tv-studio-frame.is-fullscreen .tv-ticker-item {
        font-size: 1.05rem !important;
        padding: 0 16px !important;
    }
}

/* Mobile Landscape & Low Height Screen Fullscreen TV Adjustments */
@media (max-height: 500px) and (orientation: landscape), (max-width: 900px) and (orientation: landscape) {
    :fullscreen .tv-split-container,
    .tv-studio-frame:fullscreen .tv-split-container,
    :-webkit-full-screen .tv-split-container,
    .tv-studio-frame.is-fullscreen .tv-split-container {
        display: grid !important;
        grid-template-columns: 0.85fr 1.15fr !important;
        padding: 28px 16px 46px 16px !important;
        gap: 14px !important;
        align-items: center !important;
    }

    :fullscreen .tv-left-brand,
    .tv-studio-frame:fullscreen .tv-left-brand,
    :-webkit-full-screen .tv-left-brand,
    .tv-studio-frame.is-fullscreen .tv-left-brand {
        margin-top: 0 !important;
    }

    :fullscreen .tv-brand-box,
    .tv-studio-frame:fullscreen .tv-brand-box,
    :-webkit-full-screen .tv-brand-box,
    .tv-studio-frame.is-fullscreen .tv-brand-box {
        max-width: 210px !important;
    }

    :fullscreen .tv-big-logo,
    .tv-studio-frame:fullscreen .tv-big-logo,
    :-webkit-full-screen .tv-big-logo,
    .tv-studio-frame.is-fullscreen .tv-big-logo {
        max-width: 180px !important;
        max-height: 65px !important;
    }

    :fullscreen .tv-fuenmayor-label,
    .tv-studio-frame:fullscreen .tv-fuenmayor-label,
    :-webkit-full-screen .tv-fuenmayor-label,
    .tv-studio-frame.is-fullscreen .tv-fuenmayor-label {
        font-size: 1.25rem !important;
        letter-spacing: 4px !important;
    }

    :fullscreen .tv-tag-247,
    .tv-studio-frame:fullscreen .tv-tag-247,
    :-webkit-full-screen .tv-tag-247,
    .tv-studio-frame.is-fullscreen .tv-tag-247 {
        font-size: 0.7rem !important;
        padding: 2px 8px !important;
    }

    :fullscreen .tv-right-slideshow,
    .tv-studio-frame:fullscreen .tv-right-slideshow,
    :-webkit-full-screen .tv-right-slideshow,
    .tv-studio-frame.is-fullscreen .tv-right-slideshow {
        display: flex !important;
        height: 100% !important;
        align-items: center !important;
    }

    :fullscreen .tv-slide-card,
    .tv-studio-frame:fullscreen .tv-slide-card,
    :-webkit-full-screen .tv-slide-card,
    .tv-studio-frame.is-fullscreen .tv-slide-card {
        max-height: 165px !important;
        border-radius: 12px !important;
    }

    :fullscreen .tv-slide-img,
    .tv-studio-frame:fullscreen .tv-slide-img,
    :-webkit-full-screen .tv-slide-img,
    .tv-studio-frame.is-fullscreen .tv-slide-img {
        width: 36% !important;
        min-width: 36% !important;
    }

    :fullscreen .tv-slide-badge,
    .tv-studio-frame:fullscreen .tv-slide-badge,
    :-webkit-full-screen .tv-slide-badge,
    .tv-studio-frame.is-fullscreen .tv-slide-badge {
        font-size: 0.55rem !important;
        padding: 2px 6px !important;
        margin-bottom: 4px !important;
    }

    :fullscreen .tv-slide-title,
    .tv-studio-frame:fullscreen .tv-slide-title,
    :-webkit-full-screen .tv-slide-title,
    .tv-studio-frame.is-fullscreen .tv-slide-title {
        font-size: 1.05rem !important;
        margin: 3px 0 !important;
        -webkit-line-clamp: 2 !important;
    }

    :fullscreen .tv-slide-desc,
    .tv-studio-frame:fullscreen .tv-slide-desc,
    :-webkit-full-screen .tv-slide-desc,
    .tv-studio-frame.is-fullscreen .tv-slide-desc {
        font-size: 0.82rem !important;
        -webkit-line-clamp: 2 !important;
    }

    :fullscreen .tv-slide-date,
    .tv-studio-frame:fullscreen .tv-slide-date,
    :-webkit-full-screen .tv-slide-date,
    .tv-studio-frame.is-fullscreen .tv-slide-date {
        font-size: 0.82rem !important;
    }

    :fullscreen .tv-weather-badge,
    .tv-studio-frame:fullscreen .tv-weather-badge,
    :-webkit-full-screen .tv-weather-badge,
    .tv-studio-frame.is-fullscreen .tv-weather-badge {
        top: 8px !important;
        left: 12px !important;
        right: auto !important;
        transform: none !important;
        padding: 4px 10px !important;
        gap: 3px !important;
    }

    :fullscreen .tv-clock-badge,
    .tv-studio-frame:fullscreen .tv-clock-badge,
    :-webkit-full-screen .tv-clock-badge,
    .tv-studio-frame.is-fullscreen .tv-clock-badge {
        top: 8px !important;
        right: 12px !important;
        left: auto !important;
        transform: none !important;
        padding: 4px 12px !important;
    }

    :fullscreen .tv-clock,
    .tv-studio-frame:fullscreen .tv-clock,
    :-webkit-full-screen .tv-clock,
    .tv-studio-frame.is-fullscreen .tv-clock {
        font-size: 1.25rem !important;
    }

    :fullscreen .weather-icon,
    .tv-studio-frame:fullscreen .weather-icon,
    :-webkit-full-screen .weather-icon,
    .tv-studio-frame.is-fullscreen .weather-icon {
        font-size: 1.2rem !important;
    }

    :fullscreen .weather-current,
    .tv-studio-frame:fullscreen .weather-current,
    :-webkit-full-screen .weather-current,
    .tv-studio-frame.is-fullscreen .weather-current {
        font-size: 1.05rem !important;
    }

    :fullscreen .weather-range,
    .tv-studio-frame:fullscreen .weather-range,
    :-webkit-full-screen .weather-range,
    .tv-studio-frame.is-fullscreen .weather-range {
        font-size: 0.7rem !important;
    }

    :fullscreen .weather-sky,
    .tv-studio-frame:fullscreen .weather-sky,
    :-webkit-full-screen .weather-sky,
    .tv-studio-frame.is-fullscreen .weather-sky {
        font-size: 0.7rem !important;
        padding-left: 6px !important;
    }

    :fullscreen .tv-embedded-ticker,
    .tv-studio-frame:fullscreen .tv-embedded-ticker,
    :-webkit-full-screen .tv-embedded-ticker,
    .tv-studio-frame.is-fullscreen .tv-embedded-ticker {
        height: 36px !important;
        bottom: 5px !important;
        left: 6px !important;
        right: 6px !important;
    }

    :fullscreen .tv-ticker-item,
    .tv-studio-frame:fullscreen .tv-ticker-item,
    :-webkit-full-screen .tv-ticker-item,
    .tv-studio-frame.is-fullscreen .tv-ticker-item {
        font-size: 1.0rem !important;
        padding: 0 16px !important;
    }
}

.tv-overlay-play {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 30px;
    transition: all 0.25s ease;
}

.tv-radio-screen:hover .tv-overlay-play {
    background: rgba(5, 150, 105, 0.85);
    border-color: #10b981;
    transform: scale(1.05);
}

.tv-play-circle {
    width: 28px;
    height: 28px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 900;
}

.tv-play-hint {
    color: #f8fafc;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.3px;
}

.tv-screen-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 6px 0 6px;
    gap: 12px;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.tv-footer-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex-shrink: 1;
    overflow: hidden;
}

.tv-live-title {
    color: #f8fafc;
    font-weight: 800;
    font-size: 0.9rem;
    font-family: 'Outfit', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tv-live-sub {
    color: #94a3b8;
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}

.tv-fullscreen-btn {
    background: linear-gradient(135deg, #064e3b 0%, #059669 100%);
    color: #ffffff;
    border: 1px solid rgba(16, 185, 129, 0.4);
    padding: 6px 18px;
    border-radius: var(--radius-pill);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    transition: all 0.25s ease;
}

.tv-fullscreen-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.55);
    transform: translateY(-1px) scale(1.03);
}

.tv-listen-btn {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
    transition: all 0.25s ease;
}

.tv-listen-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.5);
    background: #10b981;
}

.vinyl-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vinyl-disc {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, #042f2c 40%, #0f4c47 85%, #064e3b 100%);
    border: 4px solid var(--logo-navy);
    box-shadow: 0 0 25px rgba(6, 78, 59, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.25s ease;
    cursor: pointer;
}

.vinyl-disc:hover {
    transform: scale(1.03);
    box-shadow: 0 0 35px rgba(16, 185, 129, 0.4);
}

.vinyl-disc.playing {
    box-shadow: 0 0 35px rgba(16, 185, 129, 0.45);
    border-color: var(--logo-green);
}

.spectrum-bars-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
}

.spectrum-ring-bar {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4px;
    height: 6px;
    margin-left: -2px;
    margin-top: -3px;
    background: #059669;
    border-radius: 2px;
    opacity: 0.5;
    transition: height 0.08s ease, background-color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
    transform-origin: center center;
}

.vinyl-disc.playing .spectrum-ring-bar {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.9);
}

.vinyl-center-btn {
    position: relative;
    z-index: 2;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, #059669 0%, #064e3b 100%);
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.vinyl-disc.playing .vinyl-center-btn {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.7), inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

.vinyl-center-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.85);
}

.vinyl-play-icon {
    font-size: 2.5rem;
    color: #ffffff;
    margin-left: 4px;
    line-height: 1;
    transition: transform 0.2s ease;
    user-select: none;
}

.hero-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--grad-green);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    margin-bottom: 14px;
}

.hero-station-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--logo-navy);
    margin-bottom: 4px;
}

.hero-station-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.comercio-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    color: var(--text-body);
}

.meta-icon {
    font-size: 1.2rem;
    width: 28px;
    text-align: center;
}

/* ========================================================
   SECTIONS & TARJETAS
   ======================================================== */
.content-section {
    padding: 25px 5% 55px 5%;
    position: relative;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 35px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.section-title {
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #22252a;
    text-transform: capitalize;
}

.section-title span {
    color: #16a34a;
    font-weight: 800;
    text-transform: lowercase;
}

.view-all-pill {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--logo-navy);
    padding: 8px 18px;
    background: rgba(5, 150, 105, 0.08);
    border: 1px solid rgba(5, 150, 105, 0.25);
    border-radius: var(--radius-pill);
    transition: all 0.25s ease;
}

.view-all-pill:hover {
    background: var(--logo-navy);
    color: #ffffff;
    transform: translateX(4px);
}

/* Grid & Periodistic Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.card-clickable {
    cursor: pointer;
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--logo-navy);
    box-shadow: var(--shadow-hover);
}

.card-img {
    height: 210px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.4s ease;
}

.card:hover .card-img {
    transform: scale(1.03);
}

.card-category-pill {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--logo-navy);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 10px rgba(6, 78, 59, 0.3);
}

.card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.35;
    margin-bottom: 12px;
    color: #22252a;
    transition: color 0.25s ease;
}

.card:hover .card-title {
    color: #16a34a;
}

.card-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-link-btn {
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--logo-navy);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card-link-btn span {
    transition: transform 0.25s ease;
}

.card:hover .card-link-btn span {
    transform: translateX(5px);
}

/* ========================================================
   STICKY PLAYER BAR (RADIO CHORD ENGINE)
   ======================================================== */
.sticky-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    z-index: 9999;
    background: rgba(3, 20, 17, 0.96);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-top: 2px solid rgba(52, 211, 153, 0.55);
    border-left: none;
    border-right: none;
    border-bottom: none;
    border-radius: 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.65), 0 -2px 14px rgba(16, 185, 129, 0.2);
    padding: 10px 24px;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
}

.sticky-player.visible,
.sticky-player.scrolled-active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.header-main-row.header-centered {
    justify-content: center !important;
}

/* Floating Bottom Ticker Bar: Totalmente oculto si no hay texto en base de datos */
.top-ticker-bar {
    display: none !important;
    position: fixed !important;
    bottom: 14px !important;
    top: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 32px) !important;
    max-width: 920px !important;
    height: 40px !important;
    z-index: 9998 !important;
    background: rgba(3, 20, 17, 0.85) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
    border-radius: 9999px !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 16px rgba(16, 185, 129, 0.22) !important;
    transition: bottom 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s ease !important;
}

.top-ticker-bar.is-visible {
    display: flex !important;
}

/* Cuando el reproductor faldón está visible, el ticker flota suavemente encima */
body:has(.sticky-player.visible) .top-ticker-bar,
body:has(.sticky-player.scrolled-active) .top-ticker-bar,
body.has-sticky-player-active .top-ticker-bar {
    bottom: 74px !important;
}

@media (max-width: 768px) {
    .top-ticker-bar {
        bottom: 8px !important;
        width: calc(100% - 16px) !important;
        height: 36px !important;
        padding: 0 10px !important;
    }
    body:has(.sticky-player.visible) .top-ticker-bar,
    body:has(.sticky-player.scrolled-active) .top-ticker-bar,
    body.has-sticky-player-active .top-ticker-bar {
        bottom: 68px !important;
    }
}

body.has-top-ticker header,
body:has(#top-ticker-bar:not([style*="display: none"])) header {
    top: 0 !important;
}

body.has-top-ticker .home-main,
body:has(#top-ticker-bar:not([style*="display: none"])) .home-main {
    padding-top: 0 !important;
}

.top-ticker-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    overflow: hidden;
    height: 100%;
}

.top-ticker-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(16, 185, 129, 0.25);
    border: 1px solid rgba(52, 211, 153, 0.6);
    padding: 3px 10px;
    border-radius: 12px;
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--logo-green-bright, #34d399);
    letter-spacing: 1px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.top-ticker-badge.badge-flaix {
    animation: none !important;
}

.top-ticker-badge .badge-dot {
    width: 6px;
    height: 6px;
    background: var(--logo-green-bright, #34d399);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--logo-green-bright, #34d399);
    animation: pulseDot 1.4s infinite;
}

.top-ticker-viewport,
.vertical-ticker-viewport {
    flex: 1;
    height: 38px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.static-ticker-text,
.vertical-ticker-text {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
}

.static-ticker-message,
.vertical-ticker-item {
    width: auto !important;
    max-width: 100% !important;
    text-align: center !important;
    font-family: 'Space Grotesk', 'Outfit', sans-serif !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.8px !important;
    color: #ffffff !important;
    text-shadow: 0 0 12px rgba(52, 211, 153, 0.45), 0 2px 4px rgba(0,0,0,0.8) !important;
    opacity: 1 !important;
    transform: none !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
    padding: 0 8px !important;
    display: inline-block !important;
}

/* Integrated Ticker Bar at the Top of Sticky Player Faldón */
.sticky-player-ticker {
    flex: 0 0 100%;
    width: 100%;
    margin: -10px -24px 8px -24px;
    background: rgba(1, 24, 20, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(16, 185, 129, 0.22);
    padding: 4px 24px;
    box-sizing: border-box;
    overflow: hidden;
    order: -1;
}

.sticky-ticker-content {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    overflow: hidden;
}

.sticky-ticker-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.4);
    padding: 2px 8px;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--logo-green-bright, #34d399);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.sticky-ticker-badge .badge-dot {
    width: 5px;
    height: 5px;
    background: var(--logo-green-bright, #34d399);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--logo-green-bright, #34d399);
    animation: pulseDot 1.4s infinite;
}

.sticky-ticker-viewport {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 1.5%, black 98.5%, transparent);
    mask-image: linear-gradient(to right, transparent, black 1.5%, black 98.5%, transparent);
}

.sticky-player-ticker .ticker-continuous-item {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #e2e8f0;
    padding-right: 48px;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 18px;
}

.now-playing-thumb {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: #ffffff url('../img/corralfm-png.png') center/contain no-repeat;
    border: 2px solid var(--logo-navy);
    box-shadow: 0 0 10px rgba(6, 78, 59, 0.3);
}

.now-playing-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--logo-green-bright);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.now-playing-badge .badge-dot {
    width: 6px;
    height: 6px;
    background: var(--logo-green-bright);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--logo-green-bright);
    animation: pulseDot 1.4s infinite;
}

.now-playing-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
}

.now-playing-song {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.now-playing-song span.np-label {
    font-weight: 800;
    color: var(--logo-green-bright);
    letter-spacing: 0.5px;
}

.tv-now-playing-ticker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(4, 47, 44, 0.85);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: var(--radius-pill);
    padding: 4px 14px;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.tv-now-playing-ticker .np-tag {
    color: #10b981;
    font-weight: 900;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.now-playing-agenda-box {
    margin: 28px auto 10px auto;
    width: 90%;
    max-width: 440px;
    background: rgba(15, 30, 26, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(16, 185, 129, 0.45);
    border-radius: 14px;
    padding: 12px 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    transition: all 0.3s ease;
    clear: both;
    position: relative;
    overflow: hidden;
    animation: nowPlayingDestello 7s ease-in-out infinite;
    will-change: box-shadow, border-color, transform;
}

/* Ráfaga de destello de luz láser que cruza la caja de vez en cuando */
.now-playing-agenda-box::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -140%;
    width: 70%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 30%,
        rgba(52, 211, 153, 0.8) 50%,
        rgba(255, 255, 255, 0.95) 55%,
        rgba(52, 211, 153, 0.8) 60%,
        transparent 100%
    );
    transform: rotate(25deg);
    pointer-events: none;
    animation: sweepLensShine 7s ease-in-out infinite;
}

@keyframes sweepLensShine {
    0%, 82% {
        left: -140%;
        opacity: 0;
    }
    84% {
        opacity: 1;
    }
    89% {
        left: 180%;
        opacity: 1;
    }
    91%, 100% {
        left: 180%;
        opacity: 0;
    }
}

@keyframes nowPlayingDestello {
    0%, 82% {
        border-color: rgba(16, 185, 129, 0.45);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
        transform: scale(1);
    }
    84.5% {
        border-color: #ffffff;
        box-shadow: 0 0 35px rgba(52, 211, 153, 0.95), 0 0 65px rgba(16, 185, 129, 0.75);
        transform: scale(1.03);
    }
    86.5% {
        border-color: #34d399;
        box-shadow: 0 0 45px rgba(52, 211, 153, 1), 0 0 80px rgba(52, 211, 153, 0.85);
        transform: scale(1.02);
    }
    90.5% {
        border-color: rgba(52, 211, 153, 0.6);
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
        transform: scale(1);
    }
    100% {
        border-color: rgba(16, 185, 129, 0.45);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
        transform: scale(1);
    }
}

.now-playing-agenda-box:hover {
    background: rgba(15, 30, 26, 0.70);
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
}

.now-playing-agenda-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--logo-green-bright);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.now-playing-agenda-header .live-dot-pulse {
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: pulseDot 1.4s infinite;
}

.now-playing-agenda-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    word-break: break-word;
    text-align: center;
}

/* Equalizer Visualizer Bars */
.visualizer {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 24px;
    margin-left: 15px;
}

.visualizer .bar {
    width: 4px;
    height: 20%;
    background: var(--logo-gold);
    border-radius: 2px;
    transition: height 0.15s ease;
}

.visualizer.playing .bar {
    animation: barBounce 0.8s ease-in-out infinite alternate;
}

.visualizer.playing .bar:nth-child(1) { animation-delay: 0.1s; }
.visualizer.playing .bar:nth-child(2) { animation-delay: 0.3s; }
.visualizer.playing .bar:nth-child(3) { animation-delay: 0.2s; }
.visualizer.playing .bar:nth-child(4) { animation-delay: 0.4s; }
.visualizer.playing .bar:nth-child(5) { animation-delay: 0.15s; }
.visualizer.playing .bar:nth-child(6) { animation-delay: 0.35s; }
.visualizer.playing .bar:nth-child(7) { animation-delay: 0.25s; }
.visualizer.playing .bar:nth-child(8) { animation-delay: 0.45s; }

@keyframes barBounce {
    0% { height: 15%; }
    100% { height: 100%; background: var(--logo-green-bright); }
}

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

.play-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--grad-logo);
    color: #ffffff;
    font-size: 1.3rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(6, 78, 59, 0.4);
    transition: all 0.25s ease;
}

.play-btn:hover {
    transform: scale(1.08);
    background: var(--grad-green);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.6);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-icon {
    font-size: 1.1rem;
}

#volumeSlider {
    accent-color: var(--logo-green-bright);
    cursor: pointer;
    width: 100px;
}

/* ========================================================
   FOOTER
   ======================================================== */
footer {
    background: #042f2c;
    border-top: 1px solid var(--border-color);
    padding: 60px 5% 40px 5%;
    text-align: center;
    color: #ffffff;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-bottom: 30px;
}

.footer-logo a {
    display: inline-block;
    transition: transform 0.25s ease;
}

.footer-logo a:hover {
    transform: scale(1.05);
}

.footer-logo img {
    height: 48px;
    background: #ffffff;
    padding: 6px 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.instagram-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 12px 24px 12px 14px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.instagram-icon-box {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.4);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.instagram-icon-box svg {
    stroke: #ffffff;
}

.instagram-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.instagram-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #cbd5e1;
}

.instagram-handle {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.instagram-arrow {
    font-size: 1.2rem;
    color: #ffffff;
    opacity: 0.7;
    margin-left: 6px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.instagram-card-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(230, 104, 60, 0.7);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 30px rgba(220, 39, 67, 0.35);
}

.instagram-card-btn:hover .instagram-icon-box {
    transform: rotate(8deg) scale(1.08);
    box-shadow: 0 6px 22px rgba(220, 39, 67, 0.65);
}

.instagram-card-btn:hover .instagram-arrow {
    opacity: 1;
    transform: translate(3px, -3px);
}

.youtube-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 12px 24px 12px 14px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.youtube-icon-box {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.45);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.youtube-icon-box svg {
    fill: #ffffff;
}

.youtube-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.youtube-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #cbd5e1;
}

.youtube-handle {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.youtube-arrow {
    font-size: 1.2rem;
    color: #ffffff;
    opacity: 0.7;
    margin-left: 6px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.youtube-card-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 0, 0, 0.7);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.35);
}

.youtube-card-btn:hover .youtube-icon-box {
    transform: rotate(8deg) scale(1.08);
    box-shadow: 0 6px 22px rgba(255, 0, 0, 0.65);
}

.youtube-card-btn:hover .youtube-arrow {
    opacity: 1;
    transform: translate(3px, -3px);
}

.footer-bottom-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 22px auto 14px auto;
    font-size: 0.85rem;
    color: #64748b;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.footer-bottom-menu a {
    color: #94a3b8;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: inherit;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-bottom-menu a:hover {
    color: #34d399;
    text-decoration: underline;
}

.footer-legal-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 0.82rem;
    color: #64748b;
}

.footer-legal-links a,
.footer-legal-links button {
    color: #94a3b8;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.82rem;
    font-family: inherit;
    transition: color 0.2s ease;
}

.footer-legal-links a:hover,
.footer-legal-links button:hover {
    color: #34d399;
    text-decoration: underline;
}

.footer-legal-divider {
    color: #475569;
    font-size: 0.7rem;
}

.copyright {
    font-size: 0.9rem;
    color: #94a3b8;
}

/* ========================================================
   NEWS & AGENDA GRID SECTION
   ======================================================== */
.news-agenda-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: start;
}

.agenda-column {
    padding-left: 28px;
    border-left: 2px dashed rgba(6, 78, 59, 0.14);
}

.agenda-card-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.agenda-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    transition: transform 0.2s ease;
}

.agenda-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.agenda-item:hover {
    transform: translateX(4px);
}

.agenda-date-badge {
    min-width: 58px;
    height: 60px;
    border-radius: 12px;
    background: #ffffff;
    border: 1.5px solid rgba(22, 163, 74, 0.28);
    color: #22252a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    text-align: center;
}

.agenda-day {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
    line-height: 1;
    color: #042f2c;
    text-align: center;
    width: 100%;
}

.agenda-month {
    font-family: 'Outfit', sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 2px;
    color: #16a34a;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.agenda-content {
    flex: 1;
}

.agenda-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text-title);
    margin-bottom: 6px;
    line-height: 1.3;
}

.agenda-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 600;
}

.agenda-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.agenda-desc {
    font-size: 0.85rem;
    color: var(--text-body);
    line-height: 1.45;
}

/* Standalone Agenda Page Styles */
.agenda-full-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.agenda-full-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 24px;
    background: var(--bg-card);
    border-radius: var(--radius-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.agenda-full-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.agenda-date-badge-lg {
    min-width: 72px;
    height: 74px;
    border-radius: 14px;
}

.agenda-date-badge-lg .agenda-day {
    font-size: 1.55rem;
}

.agenda-date-badge-lg .agenda-month {
    font-size: 0.75rem;
}

.agenda-title-lg {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

/* ========================================================
   COMMERCE CAROUSEL & INTERACTIVE FUENMAYOR MAP STYLES
   ======================================================== */
.comercio-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
}

.comercio-carousel-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.comercio-carousel-track::-webkit-scrollbar {
    display: none;
}

.comercio-carousel-track .card {
    flex: 0 0 calc(33.333% - 16px);
    min-width: 280px;
}

@media (max-width: 992px) {
    .comercio-carousel-track .card {
        flex: 0 0 calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    .comercio-carousel-track .card {
        flex: 0 0 100%;
        min-width: 100%;
    }
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    color: var(--logo-navy);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s ease;
}

.carousel-nav-btn:hover {
    background: var(--logo-navy);
    color: #ffffff;
    border-color: var(--logo-navy);
    transform: translateY(-50%) scale(1.08);
}

.carousel-nav-btn.prev { left: 4px; }
.carousel-nav-btn.next { right: 4px; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.carousel-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(15, 76, 71, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    width: 24px;
    border-radius: 10px;
    background: var(--logo-green);
}

/* Fuenmayor Map Section */
/* Fuenmayor Map Section */
.fuenmayor-map-section {
    background: transparent;
    border: none;
    padding: 0;
    margin-top: 30px;
    box-shadow: none;
}

.fuenmayor-map-box {
    position: relative;
    width: 100%;
    height: 440px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #090d16;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.map-svg-bg {
    width: 100%;
    height: 100%;
    display: block;
}

.map-pins-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
}

.map-pin {
    position: absolute;
    cursor: pointer;
    pointer-events: auto;
    z-index: 20;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.map-pin:hover, .map-pin.active {
    transform: scale(1.25) translateY(-4px);
    z-index: 30;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.6));
}

@keyframes pinPulseGold {
    0% { r: 12px; opacity: 0.8; stroke-width: 1px; }
    50% { r: 24px; opacity: 0.3; stroke-width: 2px; }
    100% { r: 32px; opacity: 0; stroke-width: 0.5px; }
}

.map-pin.vip .pin-pulse {
    animation: pinPulseGold 2.2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* Glassmorphism Dark Map Popup */
.map-popup {
    position: absolute;
    pointer-events: auto;
    z-index: 100;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.map-popup-card {
    width: 240px;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 14px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(59, 130, 246, 0.15);
    color: #ffffff;
}

.map-popup-img {
    width: 100%;
    height: 90px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-popup-info h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.92rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.map-popup-cat {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.map-popup-info p {
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.35;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.map-popup-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.76rem;
    font-weight: 800;
    color: #38bdf8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.map-popup-link:hover {
    color: #60a5fa;
    text-decoration: underline;
}

/* Leaflet Custom Satellite Marker & Popup */
.custom-leaflet-marker {
    background: none;
    border: none;
}

.custom-sat-pin {
    width: 36px;
    height: 36px;
    background: rgba(239, 68, 68, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18), inset 0 1px 1px rgba(255, 255, 255, 0.4);
    font-size: 1.05rem;
    position: relative;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.custom-sat-pin:hover {
    transform: scale(1.22);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

.custom-sat-pin.vip {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.55) 0%, rgba(217, 119, 6, 0.5) 100%);
    border-color: rgba(253, 230, 138, 0.95);
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.5);
}

.custom-sat-pin.pin-cat-restaurante { 
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.5) 0%, rgba(225, 29, 72, 0.45) 100%); 
    border-color: rgba(254, 205, 211, 0.9);
}
.custom-sat-pin.pin-cat-bar { 
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.5) 0%, rgba(234, 88, 12, 0.45) 100%); 
    border-color: rgba(254, 215, 170, 0.9);
}
.custom-sat-pin.pin-cat-bodega { 
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.5) 0%, rgba(139, 92, 246, 0.45) 100%); 
    border-color: rgba(233, 213, 255, 0.9);
}
.custom-sat-pin.pin-cat-pan { 
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.5) 0%, rgba(217, 119, 6, 0.45) 100%); 
    border-color: rgba(254, 243, 199, 0.9);
}
.custom-sat-pin.pin-cat-super { 
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.5) 0%, rgba(14, 165, 233, 0.45) 100%); 
    border-color: rgba(186, 230, 253, 0.9);
}
.custom-sat-pin.pin-cat-salud { 
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.5) 0%, rgba(16, 185, 129, 0.45) 100%); 
    border-color: rgba(209, 250, 229, 0.9);
}
.custom-sat-pin.pin-cat-belleza { 
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.5) 0%, rgba(236, 72, 153, 0.45) 100%); 
    border-color: rgba(252, 231, 243, 0.9);
}
.custom-sat-pin.pin-cat-taller { 
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.5) 0%, rgba(100, 116, 139, 0.45) 100%); 
    border-color: rgba(241, 245, 249, 0.9);
}
.custom-sat-pin.pin-cat-gas { 
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.5) 0%, rgba(220, 38, 38, 0.45) 100%); 
    border-color: rgba(254, 202, 202, 0.9);
}
.custom-sat-pin.pin-cat-banco { 
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.5) 0%, rgba(37, 99, 235, 0.45) 100%); 
    border-color: rgba(191, 219, 254, 0.9);
}
.custom-sat-pin.pin-cat-hotel { 
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.5) 0%, rgba(13, 148, 136, 0.45) 100%); 
    border-color: rgba(204, 251, 241, 0.9);
}
.custom-sat-pin.pin-cat-servicio { 
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.5) 0%, rgba(79, 70, 229, 0.45) 100%); 
    border-color: rgba(224, 231, 255, 0.9);
}

.pin-pulse-sat {
    position: absolute;
    top: -6px; left: -6px; right: -6px; bottom: -6px;
    border-radius: 50%;
    border: 2px solid #f59e0b;
    animation: pinPulseSat 2s infinite;
    pointer-events: none;
}

@keyframes pinPulseSat {
    0% { transform: scale(0.8); opacity: 0.9; }
    100% { transform: scale(1.8); opacity: 0; }
}

.custom-leaflet-popup .leaflet-popup-content-wrapper {
    background: rgba(15, 23, 42, 0.94) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6) !important;
    color: #ffffff !important;
    padding: 2px !important;
}

.custom-leaflet-popup .leaflet-popup-tip {
    background: rgba(15, 23, 42, 0.94) !important;
}

.custom-leaflet-popup .leaflet-popup-content {
    margin: 10px !important;
}

/* Servicios List Section */
.servicios-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.servicio-item-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
}

.servicio-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: rgba(5, 150, 105, 0.3);
}

.servicio-item-img {
    width: 110px;
    height: 110px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
}

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

.servicio-item-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-title);
    margin-bottom: 4px;
}

.servicio-item-cat {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--logo-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.servicio-item-desc {
    font-size: 0.88rem;
    color: var(--text-body);
    line-height: 1.4;
    margin-bottom: 10px;
}

.servicio-item-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.servicio-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(15, 23, 42, 0.05);
    color: var(--text-title);
    transition: all 0.2s ease;
}

.servicio-action-btn:hover {
    background: var(--logo-navy);
    color: #ffffff;
}

@media (max-width: 640px) {
    .servicio-item-card {
        flex-direction: row;
        gap: 14px;
        padding: 14px;
    }
    .servicio-item-img {
        width: 85px;
        height: 85px;
        border-radius: 12px;
    }
    .servicio-item-title {
        font-size: 1.05rem;
    }
    .servicio-action-btn {
        padding: 6px 12px;
        font-size: 0.78rem;
    }
}



/* ========================================================
   RESPONSIVE DESIGN
   ======================================================== */
@media (max-width: 992px) {
    .news-agenda-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .agenda-column {
        padding-left: 0;
        border-left: none;
        border-top: 2px dashed rgba(6, 78, 59, 0.14);
        padding-top: 36px;
    }



    .hero-grid { grid-template-columns: 1fr; text-align: center; max-width: 600px; gap: 5px; }
    .hero-tv-box {
        max-width: 500px;
        margin: 0 auto;
    }
    .hero-logo-title {
        justify-content: center;
    }
    .hero-pill-wrap {
        text-align: center;
    }
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-player-card {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
    .view-all-pill {
        font-size: 0.76rem;
        padding: 6px 14px;
        margin-top: 2px;
    }
    .grid {
        grid-template-columns: 1fr;
    }
    .sticky-player {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        bottom: 0 !important;
        border-radius: 0 !important;
        flex-direction: column !important;
        padding: 8px 14px calc(8px + env(safe-area-inset-bottom, 0px)) 14px !important;
        gap: 8px !important;
        border-top: 2px solid var(--logo-green);
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease !important;
    }

    .sticky-player-ticker {
        flex: 0 0 calc(100% + 28px) !important;
        width: calc(100% + 28px) !important;
        margin: -8px -14px 4px -14px !important;
        padding: 3px 12px !important;
        order: -1 !important;
    }
    .sticky-player-ticker .ticker-continuous-item {
        font-size: 0.74rem !important;
        padding-right: 36px !important;
    }

    /* Mobile Collapsible Header / Toggle tab */
    .sticky-player-toggle-btn {
        display: none; /* hidden on desktop */
    }

    .sticky-player-toggle-btn {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        position: absolute;
        top: -28px;
        right: 14px;
        background: var(--bg-player, #042f2c);
        color: #fff;
        border: 1px solid rgba(16, 185, 129, 0.45);
        border-bottom: none;
        border-radius: 12px 12px 0 0;
        padding: 4px 12px;
        font-size: 0.72rem;
        font-weight: 700;
        font-family: 'Outfit', sans-serif;
        letter-spacing: 0.5px;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.25);
        cursor: pointer;
        z-index: 1001;
        gap: 6px;
        touch-action: manipulation;
    }

    .sticky-player-toggle-btn .toggle-icon {
        font-size: 0.75rem;
        transition: transform 0.3s ease;
        color: var(--logo-green-bright, #34d399);
    }

    .sticky-player-toggle-btn .toggle-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #94a3b8;
    }

    .sticky-player-toggle-btn.is-playing .toggle-dot {
        background: var(--logo-green-bright, #34d399);
        box-shadow: 0 0 6px var(--logo-green-bright, #34d399);
        animation: pulseDot 1.4s infinite;
    }

    /* Collapsed state on mobile */
    .sticky-player.collapsed-mobile {
        transform: translateY(100%) !important;
    }

    .sticky-player.collapsed-mobile .sticky-player-toggle-btn .toggle-icon {
        transform: rotate(180deg);
    }

    .sticky-player .player-controls {
        order: 1;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }

    .sticky-player .player-controls .play-btn {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .sticky-player .volume-control {
        flex: 1;
        max-width: 220px;
    }

    .sticky-player .player-info {
        order: 2;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        overflow: hidden;
    }

    .sticky-player .now-playing-thumb,
    .sticky-player .now-playing-badge,
    .sticky-player .now-playing-title,
    .sticky-player .visualizer {
        display: none !important;
    }

    .sticky-player .now-playing-song {
        width: 100% !important;
        margin-top: 0 !important;
        padding: 5px 12px !important;
        background: rgba(4, 47, 44, 0.9) !important;
        border: 1px solid rgba(16, 185, 129, 0.4) !important;
        border-radius: var(--radius-pill) !important;
        overflow: hidden !important;
        white-space: nowrap !important;
        display: flex !important;
        align-items: center !important;
        position: relative !important;
    }

    .sticky-player .now-playing-song .np-label {
        flex-shrink: 0 !important;
        margin-right: 8px !important;
        z-index: 2 !important;
        background: rgba(4, 47, 44, 0.95) !important;
        padding-right: 6px !important;
        font-weight: 900 !important;
        color: var(--logo-green-bright) !important;
    }

    .sticky-player .now-playing-song #sonic_title {
        display: inline-block !important;
        padding-left: 100% !important;
        animation: mobileNowPlayingTicker 14s linear infinite !important;
        white-space: nowrap !important;
        font-weight: 700 !important;
        color: #ffffff !important;
    }

    .tv-screen-footer {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .tv-footer-info {
        width: 100% !important;
        text-align: center !important;
        align-items: center !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .tv-live-sub {
        width: 100% !important;
        text-align: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        font-size: 0.74rem !important;
    }

    .tv-now-playing-ticker {
        width: 100% !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        min-width: 0 !important;
        overflow: hidden !important;
        font-size: 0.75rem !important;
    }

    #tvNowPlayingText {
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

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

/* ====== MOBILE BIG VERTICAL TV PLAYER (9:14 FORMAT) ====== */
@media (max-width: 992px) {
    .tv-studio-frame {
        display: flex !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        margin: 20px auto 0 auto !important;
        border-radius: 24px !important;
        padding: 10px !important;
        border: 2px solid rgba(56, 189, 248, 0.3) !important;
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 30px rgba(56, 189, 248, 0.2) !important;
    }

    .tv-screen-viewport {
        aspect-ratio: 9 / 14 !important;
        border-radius: 20px !important;
        position: relative !important;
    }

    .tv-radio-screen {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        align-items: center !important;
        height: 100% !important;
        position: relative !important;
    }

    /* 1. TEMPS I HORA: Weather Badge Superior Esquerra, Rellotge Dreta */
    .tv-weather-badge {
        display: flex !important;
        position: absolute !important;
        top: 10px !important;
        left: 10px !important;
        right: auto !important;
        transform: none !important;
        width: auto !important;
        max-width: 65% !important;
        background: transparent !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
        border-radius: 14px !important;
        border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
        padding: 4px 10px !important;
        box-sizing: border-box !important;
        z-index: 10 !important;
        align-items: flex-start !important;
        gap: 2px !important;
        text-align: left !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.85) !important;
        white-space: nowrap !important;
    }

    .tv-clock-badge {
        display: flex !important;
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
        left: auto !important;
        transform: none !important;
        background: transparent !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
        border-radius: 14px !important;
        border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
        padding: 5px 12px !important;
        box-sizing: border-box !important;
        z-index: 10 !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.85) !important;
    }

    .tv-clock {
        font-family: 'Plus Jakarta Sans', sans-serif !important;
        font-size: 0.95rem !important;
        font-weight: 800 !important;
        color: #ffffff !important;
        letter-spacing: 0.5px !important;
        border-top: none !important;
        padding-top: 0 !important;
    }

    .tv-weather-badge .weather-icon {
        font-size: 1.15rem !important;
    }

    .tv-weather-badge .weather-temp-info {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .tv-weather-badge .weather-current {
        font-family: 'Plus Jakarta Sans', sans-serif !important;
        font-size: 0.88rem !important;
        font-weight: 800 !important;
        color: #ffffff !important;
        line-height: 1 !important;
    }

    .tv-weather-badge .weather-range {
        font-size: 0.62rem !important;
        color: #94a3b8 !important;
        margin-top: 1px !important;
        font-weight: 600 !important;
    }

    .tv-weather-badge .weather-sky {
        font-size: 0.7rem !important;
        font-weight: 800 !important;
        color: #38bdf8 !important;
        text-transform: uppercase !important;
        border-left: 1px solid rgba(255, 255, 255, 0.18) !important;
        padding-left: 10px !important;
        letter-spacing: 0.5px !important;
        background: transparent !important;
        border-top: none !important;
        border-right: none !important;
        border-bottom: none !important;
        border-radius: 0 !important;
    }

    /* 2. TV VERTICAL: Oculta logo i mostra l'agenda amb el màxim d'amplada */
    .tv-split-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 100% !important;
        padding-top: 45px !important;
        padding-bottom: 15px !important;
        box-sizing: border-box !important;
        z-index: 5 !important;
    }

    .tv-left-brand,
    .tv-brand-box {
        display: none !important; /* Sense logo a la TV vertical */
    }

    .tv-right-slideshow {
        display: flex !important;
        width: 100% !important;
        max-width: none !important;
        height: 100% !important;
        flex: 1 !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .tv-slide-card {
        width: 96% !important;
        max-width: none !important;
        margin: 0 auto !important;
        max-height: 480px !important;
        border-radius: 18px !important;
    }

    /* Tarjeta Transparente de Info en Móvil Vertical */
    .tv-info-slide-card {
        display: none !important;
    }

    /* PANTALLA COMPLETA VERTICAL (MÓVIL) */
    :fullscreen .tv-left-brand,
    .tv-studio-frame:fullscreen .tv-left-brand,
    :-webkit-full-screen .tv-left-brand,
    .tv-studio-frame.is-fullscreen .tv-left-brand,
    :fullscreen .tv-brand-box,
    .tv-studio-frame:fullscreen .tv-brand-box,
    :-webkit-full-screen .tv-brand-box,
    .tv-studio-frame.is-fullscreen .tv-brand-box,
    :fullscreen .tv-info-slide-card,
    .tv-studio-frame:fullscreen .tv-info-slide-card,
    :-webkit-full-screen .tv-info-slide-card,
    .tv-studio-frame.is-fullscreen .tv-info-slide-card {
        display: none !important;
    }

    :fullscreen .tv-right-slideshow,
    .tv-studio-frame:fullscreen .tv-right-slideshow,
    :-webkit-full-screen .tv-right-slideshow,
    .tv-studio-frame.is-fullscreen .tv-right-slideshow {
        display: flex !important;
        width: 100% !important;
        max-width: none !important;
        height: 100% !important;
        flex: 1 !important;
        padding: 45px 10px 15px 10px !important;
        box-sizing: border-box !important;
        justify-content: center !important;
        align-items: center !important;
    }

    :fullscreen .tv-slide-card,
    .tv-studio-frame:fullscreen .tv-slide-card,
    :-webkit-full-screen .tv-slide-card,
    .tv-studio-frame.is-fullscreen .tv-slide-card {
        width: 96% !important;
        max-width: none !important;
        margin: 0 auto !important;
        max-height: 480px !important;
        border-radius: 20px !important;
    }

    .tv-vertical-sub {
        color: #94a3b8;
        font-size: 0.78rem;
        margin: 0 0 16px 0;
    }

    .tv-vertical-play-btn {
        background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
        color: #ffffff;
        border: none;
        padding: 12px 24px;
        border-radius: 9999px;
        font-size: 0.88rem;
        font-weight: 700;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
        transition: all 0.25s ease;
    }

    .tv-vertical-play-btn:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(2, 132, 199, 0.6);
    }

    .tv-vertical-footer {
        background: rgba(15, 23, 42, 0.95);
        padding: 10px 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        z-index: 5;
    }
}

/* ====== COMMERCIAL & SERVICES BUTTONS REDESIGN ====== */
.category-filters, .category-filter, .cat-filter {
    display: flex;
    gap: 16px 18px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 58px;
    padding: 10px 0;
}

.cat-btn {
    padding: 11px 24px;
    border-radius: 9999px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: #ffffff;
    color: var(--text-title);
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    margin: 3px 2px;
}

.cat-btn:hover {
    background: var(--bg-main-alt);
    border-color: var(--logo-navy);
    color: var(--logo-navy);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.cat-btn.active {
    background: linear-gradient(135deg, var(--logo-navy) 0%, #0284c7 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
}

/* Card Link Button */
.card-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 14px;
    padding: 10px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.06) 0%, rgba(15, 23, 42, 0.04) 100%);
    border: 1px solid rgba(2, 132, 199, 0.15);
    color: var(--logo-navy);
    font-weight: 700;
    font-size: 0.86rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.card-link-btn:hover {
    background: linear-gradient(135deg, var(--logo-navy) 0%, #0284c7 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.3);
    transform: translateY(-2px);
}

.card-link-btn span {
    transition: transform 0.2s ease;
}

.card-link-btn:hover span {
    transform: translateX(4px);
}

/* Servicio Action Buttons */
.servicio-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 700;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #ffffff;
    color: var(--text-title);
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    transition: all 0.25s ease;
}

.servicio-action-btn:hover {
    background: var(--logo-navy);
    color: #ffffff;
    border-color: var(--logo-navy);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.15);
}

/* Global Button Overrides */
.btn-primary {
    background: linear-gradient(135deg, var(--logo-navy) 0%, #0284c7 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 9999px !important;
    font-weight: 700 !important;
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.25) !important;
    transition: all 0.25s ease !important;
}

.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.4) !important;
}

.btn-secondary {
    background: #ffffff !important;
    color: var(--logo-navy) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 9999px !important;
    font-weight: 700 !important;
    transition: all 0.25s ease !important;
}

.btn-secondary:hover {
    background: var(--logo-navy) !important;
    color: #ffffff !important;
    border-color: var(--logo-navy) !important;
    transform: translateY(-2px) !important;
}

/* Comercio & Noticia Detail Card Responsive Layout */
.detail-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.detail-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 35px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    width: 100%;
    box-sizing: border-box;
}

.detail-card .card-category-pill {
    position: static !important;
    display: inline-block !important;
    font-size: 0.65rem !important;
    padding: 3px 10px !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 12px !important;
    box-shadow: none !important;
    opacity: 0.9 !important;
}

.detail-card h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.4rem;
    color: var(--text-title);
    margin-bottom: 20px;
    line-height: 1.2;
    word-break: break-word;
}

.detail-card img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 25px;
}

/* Ocultar cabecera y menú en la página de detalle de comercio en todos los tamaños */
body.page-comercio-detail header,
body.page-comercio-detail .news-ticker,
body:has(#comercio-container) header,
body:has(#comercio-container) .news-ticker,
body:has(#single-comercio-content) header,
body:has(#single-comercio-content) .news-ticker {
    display: none !important;
}

body.page-comercio-detail,
body:has(#comercio-container),
body:has(#single-comercio-content) {
    padding-top: 0 !important;
    background: #ffffff !important;
}

body.page-comercio-detail main,
body:has(#comercio-container) main,
body:has(#single-comercio-content) main {
    padding-top: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Detalle de comercio a TODO EL ANCHO DE LA WEB (sin estilo box) */
body.page-comercio-detail .detail-container,
body:has(#comercio-container) .detail-container,
body:has(#single-comercio-content) .detail-container {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 24px 20px 40px 20px !important;
    box-sizing: border-box !important;
}

body.page-comercio-detail .detail-card,
body:has(#comercio-container) .detail-card,
body:has(#single-comercio-content) .detail-card {
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: 100% !important;
}

body.page-comercio-detail .detail-card img,
body:has(#comercio-container) .detail-card img,
body:has(#single-comercio-content) .detail-card img {
    width: 100% !important;
    max-height: 480px !important;
    object-fit: cover !important;
    border-radius: 16px !important;
    margin-bottom: 24px !important;
}

@media (max-width: 768px) {
    body.page-comercio-detail .detail-container,
    body:has(#comercio-container) .detail-container,
    body:has(#single-comercio-content) .detail-container {
        padding: 16px 14px 30px 14px !important;
    }
}

    .detail-container {
        padding: 0 8px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .detail-card {
        padding: 18px 12px !important;
        border-radius: 12px !important;
        margin: 0 !important;
        width: 100% !important;
        box-shadow: none !important;
        border: 1px solid var(--border-color) !important;
    }

    .detail-card h1 {
        font-size: 1.65rem !important;
        margin-bottom: 12px !important;
    }

    .detail-card img {
        max-height: 280px !important;
        border-radius: 10px !important;
        margin-bottom: 16px !important;
    }

    .comercio-info-block {
        padding: 15px 12px !important;
        font-size: 0.92rem !important;
        margin-bottom: 18px !important;
        gap: 10px !important;
    }

    .comercio-meta-row {
        gap: 8px !important;
        align-items: flex-start !important;
    }

    .comercio-map-box {
        margin-top: 18px !important;
        padding: 16px 10px !important;
    }

    .comercio-map-box iframe {
        height: 250px !important;
    }
}

/* Category Pill Buttons (Guía Comercial Portada & Página) */
.cat-btn {
    font-family: 'Outfit', sans-serif;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-title);
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.22s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.cat-btn:hover {
    background: rgba(5, 150, 105, 0.08);
    color: var(--logo-navy);
    border-color: rgba(5, 150, 105, 0.3);
}

.cat-btn.active {
    background: var(--grad-logo);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(6, 78, 59, 0.3);
}

/* ========================================================
   HEADER BRAND COLUMN & TOWN SEARCH BAR (Desktop & Mobile)
   ======================================================== */
.header-brand-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.header-brand-col .logo {
    display: inline-flex;
    align-items: center;
}

/* 1. Search Bar Centrada debajo del Menú/Logo */
.header-brand-town-search {
    display: none !important;
}

/* 2. Sub-Barra de Búsqueda Centrada en Cabecera (Todas las pantallas) */
.header-town-bar {
    width: 100%;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 6px 4% 10px 4%;
    border-top: 1px solid rgba(16, 185, 129, 0.14);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-sizing: border-box;
}

.header-town-bar .town-bar-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 680px;
    box-sizing: border-box;
}

/* Estilos compartidos de Selector de Municipio y Botón La Rioja (100% diseño web) */
.zone-select-pill {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #10b981;
    border-radius: 9999px;
    padding: 3px 12px 3px 6px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.12), 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    cursor: pointer;
}

.zone-select-pill:hover,
.zone-select-pill:focus-within {
    border-color: #059669;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.24);
    transform: translateY(-1px);
}

.zone-select-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.12) 100%);
    font-size: 0.92rem;
    margin-right: 6px;
    flex-shrink: 0;
    line-height: 1;
}

.zone-select-input {
    border: none !important;
    background: transparent !important;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    color: #042f2c !important;
    outline: none !important;
    cursor: pointer;
    padding: 3px 22px 3px 0 !important;
    max-width: 220px;
    box-shadow: none !important;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 2px center !important;
    background-size: 12px 12px !important;
    line-height: 1.2;
}

.zone-select-input option {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: #0f172a;
    background: #ffffff;
    padding: 8px;
}

.btn-rioja-general {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 9999px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    flex-shrink: 0;
    line-height: 1.2;
    background: #ffffff;
    color: #047857;
    border: 1.5px solid #10b981;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.12);
}

.btn-rioja-general .rioja-btn-icon {
    font-size: 0.85rem;
    line-height: 1;
}

.btn-rioja-general:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    background: #f0fdf4;
    border-color: #059669;
}

.btn-rioja-general.active {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%) !important;
    color: #ffffff !important;
    border: 1.5px solid #047857 !important;
    box-shadow: 0 3px 12px rgba(16, 185, 129, 0.4) !important;
}

/* Visibility Rules: Search bar centered across Mac/PC/Tablet & Mobile */
@media (min-width: 769px) {
    .header-town-bar {
        display: flex !important;
        justify-content: center !important;
    }
    .header-brand-town-search {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .header-brand-town-search {
        display: none !important;
    }
    .header-town-bar {
        display: flex !important;
        justify-content: center !important;
    }
}

/* Responsive Overrides */
@media (max-width: 992px) {
    .header-main-row {
        padding: 6px 4% 2px 4%;
    }
    .header-town-bar {
        padding: 5px 4% 8px 4%;
    }
    .header-town-bar .zone-select-input {
        font-size: 0.88rem !important;
    }
}

@media (max-width: 768px) {
    .header-main-row {
        padding: 5px 4% 3px 4%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .logo img {
        height: 38px;
    }
    .mobile-menu-btn {
        display: flex !important;
        margin-left: auto; /* Posicionar a la derecha */
    }
    nav ul.nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px 5%;
        gap: 10px;
        border-bottom: 3px solid var(--logo-navy);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        z-index: 1002;
    }
    nav ul.nav-menu.show {
        display: flex !important;
    }
    nav ul.nav-menu li {
        width: 100%;
        text-align: center;
    }
    nav ul.nav-menu li a {
        display: block;
        width: 100%;
        padding: 12px 20px;
        font-size: 1rem;
        background: rgba(15, 23, 42, 0.03);
    }
    .header-town-bar {
        padding: 3px 4% 6px 4%;
    }
    .header-town-bar .town-bar-container {
        gap: 6px;
        width: 100%;
    }
    .header-town-bar .zone-select-pill {
        min-width: 0;
        flex: 1;
        padding: 3px 8px 3px 6px;
    }
    .header-town-bar .zone-select-icon {
        width: 26px;
        height: 26px;
        font-size: 0.85rem;
        margin-right: 4px;
    }
    .header-town-bar .zone-select-input {
        font-size: 0.82rem !important;
        padding: 4px 20px 4px 2px !important;
    }
    .header-town-bar .btn-rioja-general {
        padding: 7px 12px;
        font-size: 0.72rem !important;
        letter-spacing: 0.5px;
    }
    main.home-main,
    main:has(.hero) {
        padding-top: 0 !important;
    }
    .hero {
        min-height: auto !important;
        padding: 65px 5% 22px 5% !important;
        display: block !important;
    }
    .hero-pill-wrap {
        text-align: center;
        margin-bottom: 8px !important;
    }
    .hero-logo-title {
        margin-top: 0 !important;
        margin-bottom: 6px !important;
        font-size: clamp(2.7rem, 9.5vw, 3.8rem) !important;
        line-height: 1 !important;
        letter-spacing: -0.02em !important;
        display: flex !important;
        justify-content: center !important;
        align-items: baseline !important;
        gap: 8px !important;
    }
    .hero-logo-title .corral-word {
        font-size: 1em !important;
        font-weight: 900 !important;
    }
    .hero-logo-title .fm-word {
        font-size: 0.95em !important;
        font-weight: 900 !important;
    }
    .hero-content p:not(.glitch-subtitle) {
        margin-bottom: 20px !important;
        font-size: 0.7rem !important;
        font-weight: 500 !important;
        line-height: 1.4 !important;
        color: #0f172a !important;
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .hero-content .glitch-subtitle {
        font-size: 1.55rem !important;
        line-height: 1.25 !important;
        margin-bottom: 16px !important;
    }
    .hero-actions {
        margin-bottom: 16px !important;
    }
}

@media (max-width: 480px) {
    .header-main-row {
        padding: 4px 4% 2px 4%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .logo img {
        height: 34px;
    }
    .mobile-menu-btn {
        margin-left: auto;
    }
    .header-town-bar {
        padding: 2px 4% 5px 4%;
    }
    .header-town-bar .btn-rioja-general {
        padding: 6px 10px;
        font-size: 0.68rem !important;
    }

    .hero {
        padding: 60px 4% 18px 4% !important;
    }
    .hero-pill-wrap {
        margin-bottom: 6px !important;
    }
    .hero-logo-title {
        margin-top: 0 !important;
        margin-bottom: 4px !important;
        font-size: clamp(2.5rem, 9vw, 3.4rem) !important;
        line-height: 1 !important;
        letter-spacing: -0.02em !important;
        display: flex !important;
        justify-content: center !important;
        align-items: baseline !important;
        gap: 6px !important;
    }
    .hero-logo-title .corral-word {
        font-size: 1em !important;
        font-weight: 900 !important;
    }
    .hero-logo-title .fm-word {
        font-size: 0.95em !important;
        font-weight: 900 !important;
    }
    .hero-content p:not(.glitch-subtitle) {
        margin-bottom: 18px !important;
        font-size: 0.7rem !important;
        font-weight: 500 !important;
        line-height: 1.35 !important;
        color: #0f172a !important;
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .hero-content .glitch-subtitle {
        font-size: 1.45rem !important;
        line-height: 1.25 !important;
        margin-bottom: 14px !important;
    }
    .hero-actions { margin-bottom: 0px !important; }
}



.hero-tv-box.fullscreen-mode {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    z-index: 99999 !important;
    border-radius: 0 !important;
    border: none !important;
    margin: 0 !important;
}


/* Hide player when fullscreen */
body:has(.fullscreen-mode) .bottom-player {
    display: none !important;
}

/* ========================================================
   SUBPÁGINA COMERCIO: ESTILO JOVEN, FRESCO Y PREMIUM
   ======================================================== */
body.page-comercio-detail {
    background: #f8faf9 !important;
}

body.page-comercio-detail .detail-container {
    max-width: 980px !important;
    padding: 30px 20px 80px 20px !important;
}

body.page-comercio-detail .detail-card,
body:has(#comercio-container) .detail-card {
    background: #ffffff !important;
    border-radius: 28px !important;
    padding: 32px 36px !important;
    border: 1px solid rgba(16, 185, 129, 0.22) !important;
    box-shadow: 0 12px 35px rgba(6, 78, 59, 0.07) !important;
    overflow: hidden !important;
    position: relative !important;
}

body.page-comercio-detail .detail-card .card-category-pill,
body:has(#comercio-container) .detail-card .card-category-pill {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #047857 !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    padding: 5px 14px !important;
    border-radius: 9999px !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    margin-bottom: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
}

body.page-comercio-detail .detail-card h1,
body:has(#comercio-container) .detail-card h1 {
    font-family: 'Outfit', -apple-system, sans-serif !important;
    font-size: clamp(2rem, 4.5vw, 3.2rem) !important;
    font-weight: 900 !important;
    color: #042f2c !important;
    letter-spacing: -0.025em !important;
    margin-bottom: 22px !important;
    line-height: 1.18 !important;
}

body.page-comercio-detail .detail-card img,
body:has(#comercio-container) .detail-card img {
    width: 100% !important;
    max-height: 420px !important;
    object-fit: cover !important;
    border-radius: 20px !important;
    margin-bottom: 26px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(16, 185, 129, 0.15) !important;
}

body.page-comercio-detail .comercio-info-block,
body:has(#comercio-container) .comercio-info-block {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    border-radius: 20px !important;
    padding: 22px 26px !important;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.06) !important;
    margin-bottom: 25px !important;
}

body.page-comercio-detail .comercio-meta-row,
body:has(#comercio-container) .comercio-meta-row {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-size: 0.95rem !important;
    color: #1f2937 !important;
}

body.page-comercio-detail .comercio-meta-row .meta-icon,
body:has(#comercio-container) .comercio-meta-row .meta-icon {
    font-size: 1.25rem !important;
    background: #ffffff !important;
    width: 36px !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 10px !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
    box-shadow: 0 2px 6px rgba(6, 78, 59, 0.06) !important;
    flex-shrink: 0 !important;
}

body.page-comercio-detail .btn-primary,
body:has(#comercio-container) .btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    padding: 10px 22px !important;
    border-radius: 9999px !important;
    font-weight: 800 !important;
    font-family: 'Outfit', sans-serif !important;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3) !important;
    border: none !important;
    transition: all 0.25s ease !important;
    cursor: pointer !important;
}

body.page-comercio-detail .btn-primary:hover,
body:has(#comercio-container) .btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 22px rgba(16, 185, 129, 0.45) !important;
}

body.page-comercio-detail .btn-secondary,
body:has(#comercio-container) .btn-secondary {
    background: #ffffff !important;
    color: #047857 !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    padding: 10px 22px !important;
    border-radius: 9999px !important;
    font-weight: 800 !important;
    font-family: 'Outfit', sans-serif !important;
    transition: all 0.25s ease !important;
}

body.page-comercio-detail .btn-secondary:hover,
body:has(#comercio-container) .btn-secondary:hover {
    background: #ecfdf5 !important;
    border-color: #10b981 !important;
    transform: translateY(-2px) !important;
}

@media (max-width: 640px) {
    body.page-comercio-detail .detail-card,
    body:has(#comercio-container) .detail-card {
        padding: 20px 16px !important;
        border-radius: 20px !important;
    }
    body.page-comercio-detail .detail-card img,
    body:has(#comercio-container) .detail-card img {
        max-height: 240px !important;
        border-radius: 14px !important;
    }
    body.page-comercio-detail .comercio-info-block,
    body:has(#comercio-container) .comercio-info-block {
        padding: 16px 14px !important;
    }
}

/* ========================================================
   AGENDA DE LA RIOJA (PORTADA Y SUBPÁGINA): SECCIÓN VERDE Y TARJETAS JÓVENES
   ======================================================== */
.agenda-rioja-section,
.home-agenda-section {
    position: relative !important;
    overflow: hidden !important;
    background-color: #f4fbf7 !important;
    border-top: 1px solid rgba(16, 185, 129, 0.25) !important;
    border-bottom: 1px solid rgba(16, 185, 129, 0.25) !important;
    padding: 38px 5% 70px 5% !important;
    margin-top: 25px !important;
    border-radius: 36px 36px 0 0 !important;
    box-shadow: inset 0 8px 24px rgba(6, 78, 59, 0.04) !important;
}

/* Tatuajes fijados por debajo de toda la agenda */
.home-agenda-section::before,
.agenda-rioja-section::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background-image: url('../img/tattoos-bg.svg') !important;
    background-repeat: repeat !important;
    background-size: 380px 380px !important;
    background-position: center !important;
    background-attachment: fixed !important; /* ¡Tatuajes fijos al scroll por debajo! */
    opacity: 0.16 !important;
    filter: brightness(0.60) contrast(1.25) !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

.home-agenda-section .section-header,
.home-agenda-section .agenda-card-box {
    position: relative !important;
    z-index: 1 !important;
}

.home-agenda-section .agenda-card-box {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    max-width: 1040px !important;
    margin: 0 auto !important;
}

.home-agenda-section .agenda-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 24px !important;
    padding: 24px 28px !important;
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border-radius: 22px !important;
    border: 1px solid rgba(16, 185, 129, 0.28) !important;
    box-shadow: 0 10px 30px rgba(6, 78, 59, 0.07), 0 1px 4px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    z-index: 2 !important;
}

.home-agenda-section .agenda-item::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 6px !important;
    background: linear-gradient(180deg, #10b981 0%, #059669 100%) !important;
    transition: width 0.28s ease !important;
}

.home-agenda-section .agenda-item:hover {
    transform: translateY(-4px) !important;
    border-color: #10b981 !important;
    box-shadow: 0 16px 36px rgba(16, 185, 129, 0.16), 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.home-agenda-section .agenda-item:hover::before {
    width: 8px !important;
}

.home-agenda-section .agenda-date-badge {
    min-width: 82px !important;
    width: 82px !important;
    height: 84px !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
    border: 2px solid rgba(16, 185, 129, 0.4) !important;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.18) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    transition: transform 0.25s ease !important;
}

.home-agenda-section .agenda-item:hover .agenda-date-badge {
    transform: scale(1.04) !important;
    border-color: #10b981 !important;
}

.home-agenda-section .agenda-day {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.85rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    color: #064e3b !important;
    letter-spacing: -0.5px !important;
    text-align: center !important;
    width: 100% !important;
}

.home-agenda-section .agenda-month {
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.74rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-top: 4px !important;
    color: #059669 !important;
    text-align: center !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.agenda-hasta {
    display: block !important;
    text-align: center !important;
    font-size: 0.60rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.8px !important;
    line-height: 1 !important;
    margin-bottom: 2px !important;
    color: #047857 !important;
    width: 100% !important;
}

.agenda-month-name {
    display: block !important;
    text-align: center !important;
    line-height: 1 !important;
    width: 100% !important;
}

.home-agenda-section .agenda-content {
    flex: 1 !important;
    min-width: 0 !important;
}

.home-agenda-section .agenda-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.35 !important;
    letter-spacing: -0.01em !important;
}

.home-agenda-section .agenda-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px 10px !important;
    font-size: 0.82rem !important;
    margin-bottom: 8px !important;
}

.home-agenda-section .agenda-meta > span,
.agenda-rioja-section .agenda-meta > span {
    background: rgba(16, 185, 129, 0.08) !important;
    border: 1px solid rgba(16, 185, 129, 0.22) !important;
    padding: 3px 11px !important;
    border-radius: 9999px !important;
    color: #047857 !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
}

/* Iconos Vectoriales Limpios (Sin dibujitos) */
.agenda-meta-icon {
    font-size: 0.78rem !important;
    color: #059669 !important;
    margin-right: 2px !important;
}

/* Nombre de Pueblo EN BLANCO con FONDO VERDE al Final de Todo */
.home-agenda-section .agenda-meta .agenda-meta-town,
.agenda-rioja-section .agenda-meta .agenda-meta-town {
    background: #059669 !important;
    color: #ffffff !important;
    border: 1px solid #10b981 !important;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3) !important;
    padding: 4px 13px !important;
}

.home-agenda-section .agenda-meta .agenda-meta-town *,
.agenda-rioja-section .agenda-meta .agenda-meta-town *,
.agenda-meta-town,
.agenda-meta-town *,
.agenda-town-name,
.agenda-town-dynamic-font {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    font-size: 0.84rem !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: none !important;
}

.home-agenda-section .agenda-meta .agenda-meta-venue,
.agenda-rioja-section .agenda-meta .agenda-meta-venue {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #047857 !important;
    border: 1px solid rgba(16, 185, 129, 0.28) !important;
}

/* Reloj Digital Auténtico para la Hora de la Agenda en BLANCO */
.home-agenda-section .agenda-meta .agenda-digital-clock-badge,
.agenda-rioja-section .agenda-meta .agenda-digital-clock-badge {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.digital-clock-housing {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #090d16 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.28) !important;
    border-radius: 7px !important;
    padding: 3px 9px !important;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.95), 0 0 8px rgba(255, 255, 255, 0.15) !important;
}

.digital-clock-icon {
    font-size: 0.72rem !important;
    color: #ffffff !important;
    opacity: 0.95 !important;
}

.digital-digits {
    font-family: 'Share Tech Mono', 'Orbitron', monospace !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    letter-spacing: 1.8px !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 14px rgba(255, 255, 255, 0.5) !important;
    line-height: 1 !important;
}

.home-agenda-section .agenda-meta .agenda-meta-dates {
    background: rgba(16, 185, 129, 0.08) !important;
    color: #047857 !important;
    border: 1px solid rgba(16, 185, 129, 0.22) !important;
}

/* Descripción de Agenda (Siempre Todo Visible) */
.home-agenda-section .agenda-desc {
    min-height: auto !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
    color: #334155 !important;
    margin: 8px 0 0 0 !important;
    font-weight: 450 !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

@media (max-width: 640px) {
    .home-agenda-section .agenda-item {
        gap: 16px !important;
        padding: 16px 16px !important;
        border-radius: 18px !important;
    }
    .home-agenda-section .agenda-date-badge {
        min-width: 68px !important;
        width: 68px !important;
        height: 72px !important;
    }
    .home-agenda-section .agenda-day {
        font-size: 1.55rem !important;
    }
    .home-agenda-section .agenda-month {
        font-size: 0.68rem !important;
    }
    .home-agenda-section .agenda-title {
        font-size: 1.1rem !important;
    }
    .home-agenda-section .agenda-desc {
        font-size: 0.88rem !important;
    }
}

.home-agenda-section .view-all-pill {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border-radius: 9999px !important;
    padding: 8px 18px !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25) !important;
    border: none !important;
    transition: all 0.2s ease !important;
}

.home-agenda-section .view-all-pill:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4) !important;
}

.agenda-rioja-section .agenda-full-container {
    max-width: 960px !important;
    gap: 16px !important;
}

.agenda-rioja-section .agenda-full-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 20px !important;
    padding: 16px 22px !important;
    background: #ffffff !important;
    border-radius: 20px !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
    box-shadow: 0 4px 16px rgba(6, 78, 59, 0.06) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.agenda-rioja-section .agenda-full-item:hover {
    transform: translateY(-3px) !important;
    border-color: #10b981 !important;
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.18) !important;
}

.agenda-rioja-section .agenda-date-badge-lg {
    min-width: 64px !important;
    width: 64px !important;
    height: 64px !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
    border: 1.5px solid #10b981 !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2) !important;
    flex-shrink: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.agenda-rioja-section .agenda-date-badge-lg .agenda-day {
    font-size: 1.4rem !important;
    font-weight: 900 !important;
    color: #042f2c !important;
    line-height: 1 !important;
    text-align: center !important;
    width: 100% !important;
}

.agenda-rioja-section .agenda-date-badge-lg .agenda-month {
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    color: #059669 !important;
    letter-spacing: 0.8px !important;
    margin-top: 2px !important;
    text-align: center !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.agenda-rioja-section .agenda-title-lg {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-bottom: 5px !important;
    line-height: 1.25 !important;
    transition: color 0.2s ease !important;
}

.agenda-rioja-section .agenda-full-item:hover .agenda-title-lg {
    color: #059669 !important;
}

.agenda-rioja-section .agenda-meta {
    gap: 8px 14px !important;
    font-size: 0.8rem !important;
    margin-bottom: 6px !important;
    color: #4b5563 !important;
    font-weight: 600 !important;
}

.agenda-rioja-section .agenda-meta span {
    background: rgba(16, 185, 129, 0.08) !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
    padding: 2px 10px !important;
    border-radius: 9999px !important;
    color: #047857 !important;
}

.agenda-rioja-section .agenda-desc {
    font-size: 0.88rem !important;
    color: #475569 !important;
    line-height: 1.5 !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible !important;
}

@media (max-width: 640px) {
    .agenda-rioja-section .agenda-full-item {
        padding: 14px !important;
        gap: 14px !important;
    }
    .agenda-rioja-section .agenda-date-badge-lg {
        min-width: 54px !important;
        width: 54px !important;
        height: 54px !important;
        border-radius: 12px !important;
    }
    .agenda-rioja-section .agenda-date-badge-lg .agenda-day {
        font-size: 1.2rem !important;
    }
    .agenda-rioja-section .agenda-date-badge-lg .agenda-month {
        font-size: 0.6rem !important;
    }
    .agenda-rioja-section .agenda-title-lg {
        font-size: 1.02rem !important;
    }
    .agenda-rioja-section .agenda-desc {
        font-size: 0.84rem !important;
    }
}
@media (max-width: 992px) {
    :root {
        --header-h: 57px;
    }
}
@media (max-width: 768px) {
    :root {
        --header-h: 51px;
    }
}
@media (max-width: 480px) {
    :root {
        --header-h: 45px;
    }
}


@media screen and (max-width: 768px) and (orientation: portrait) {
    .hero-tv-box.fullscreen-mode:not(:fullscreen):not(:-webkit-full-screen) {
        width: 100vh !important;
        height: 100vw !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) rotate(90deg) !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
}


/* Ocultar ticker en subpaginas y ajustar el padding del body */
body:not(:has(.home-main)) .news-ticker {
    display: none !important;
}
body:not(:has(.home-main)) {
    --chrome-h: var(--header-h);
}

/* Continuous News Ticker Animation (Web & App) */
.ticker-continuous-track {
    display: inline-flex;
    white-space: nowrap;
    will-change: transform;
    animation: tickerNewsScroll 60s linear infinite;
}

.ticker-continuous-track:hover {
    animation-play-state: paused;
}

.ticker-continuous-item {
    display: inline-flex;
    align-items: center;
    padding-right: 48px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
}

@keyframes tickerNewsScroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* ==========================================================================
   ESTILO NRJ.FR: CHIPS HORIZONTALES, STICKY PLAYER & FRESH CARDS
   ========================================================================== */

/* 1. QuickNav Chips (Swipeable Horizontal Menu) */
.nrj-chips-wrapper {
    width: 100%;
    background: #02140f;
    border-top: 1px solid rgba(16, 185, 129, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: var(--header-h, 70px);
    z-index: 40;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 0;
}

.nrj-chips-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.nrj-chips-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.nrj-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(52, 211, 153, 0.25);
    border-radius: 9999px;
    color: #e2e8f0;
    font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.nrj-chip:hover {
    background: rgba(16, 185, 129, 0.22);
    border-color: #34d399;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.nrj-chip.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #34d399;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.nrj-chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
    animation: livePulseDot 1.5s infinite;
}

/* 2. Sticky Floating Mini-Player (NRJ Style) */
.nrj-sticky-player {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translate(-50%, 150%);
    width: 92%;
    max-width: 580px;
    background: rgba(4, 22, 19, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(52, 211, 153, 0.35);
    border-radius: 40px;
    padding: 8px 16px 8px 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(16, 185, 129, 0.2);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.nrj-sticky-player.visible {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
}

.nrj-sticky-cover {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #10b981;
    background: #031410;
    flex-shrink: 0;
}

.nrj-sticky-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nrj-sticky-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    color: #34d399;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nrj-sticky-title-wrap {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

.nrj-sticky-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    display: inline-block;
}

.nrj-sticky-play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.5);
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nrj-sticky-play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(52, 211, 153, 0.7);
}

/* ==========================================================================
   ESTILO FLAIXBAC.CAT: CLEAN, YOUTH RADIO PORTAL WITH VIBRANT GREEN ACCENTS
   ========================================================================== */

/* 1. Flaixbac Header */
.flaix-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 2px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.flaix-header-wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.flaix-brand-zone {
    display: flex;
    align-items: center;
    gap: 12px;
}

.flaix-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.flaix-logo-img:hover {
    transform: scale(1.05);
}

.flaix-station-badge {
    background: #0f172a;
    color: #34d399;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.05em;
}

.flaix-nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.flaix-nav-menu li a {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: 0.02em;
    padding: 6px 4px;
    position: relative;
    transition: color 0.2s ease;
}

.flaix-nav-menu li a:hover,
.flaix-nav-menu li a.active {
    color: #10b981;
}

.flaix-nav-menu li a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: #10b981;
    border-radius: 999px;
}

.flaix-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Botó DIRECTE de Flaixbac */
.flaix-btn-directe {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #10b981;
    color: #ffffff;
    border: none;
    padding: 10px 22px;
    border-radius: 9999px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.92rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.45);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.flaix-btn-directe:hover {
    background: #059669;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 22px rgba(16, 185, 129, 0.6);
}

.flaix-pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 10px #ffffff;
    animation: live-dot-ping 1.3s infinite;
}

/* 2. Hero Flaixbac */
.flaix-hero {
    background: #f8fafc;
    padding: 110px 24px 40px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.flaix-hero-container {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}

.flaix-pill-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 9999px;
    letter-spacing: 0.05em;
}

.flaix-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    animation: live-dot-ping 1.4s infinite;
}

.flaix-hero-slogan {
    font-family: 'Outfit', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: #059669;
    letter-spacing: -0.01em;
    margin: 2px 0 20px 0;
}

/* Tarjeta Now Playing estilo Flaixbac Card */
.flaix-now-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 22px 26px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    max-width: 540px;
}

.flaix-now-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.flaix-badge-now {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    color: #dc2626;
    letter-spacing: 0.05em;
}

.flaix-badge-freq {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    color: #64748b;
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 6px;
}

.flaix-track-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 18px;
}

.flaix-big-play-btn {
    width: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    transition: all 0.25s ease;
}

.flaix-big-play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(16, 185, 129, 0.6);
}

/* Columna Derecha Tarjeta Visual */
.flaix-card-visual {
    background: #ffffff;
    border-radius: 24px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.flaix-visual-caption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding: 0 4px;
}

.flaix-visual-pill {
    background: #10b981;
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.05em;
}

.flaix-visual-sub {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: #64748b;
}

/* 3. Barra de Chips Swipeable estilo Flaixbac */
.flaix-chips-bar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 24px;
    position: sticky;
    top: 68px;
    z-index: 990;
}

.flaix-chips-scroll {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.flaix-chips-scroll::-webkit-scrollbar {
    display: none;
}

.flaix-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    color: #334155;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.flaix-chip:hover,
.flaix-chip.active {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

/* ========================================================
   GUÍA COMERCIAL DE LA RIOJA: ESTILO JOVEN Y TARJETA HORIZONTAL COMPACTA
   ======================================================== */
.guia-joven-header {
    text-align: center;
    padding: 75px 5% 28px 5% !important;
    max-width: 900px;
    margin: 25px auto 0 auto !important;
}

.guia-badge-joven {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #10b981;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 5px 14px;
    border-radius: 9999px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.guia-joven-header h1 {
    font-family: 'Outfit', -apple-system, sans-serif;
    font-size: clamp(2.3rem, 5.5vw, 3.8rem);
    font-weight: 900;
    color: #042f2c;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
    line-height: 1.15;
}

.guia-joven-header h1 .de-la-span {
    font-family: 'Outfit', sans-serif;
    font-size: 0.65em;
    font-weight: 600;
    text-transform: lowercase;
    font-style: italic;
    color: #059669;
    padding: 0 4px;
    vertical-align: 2px;
}

.guia-joven-header h1 .rioja-highlight {
    color: #10b981;
    text-decoration: underline wavy rgba(16, 185, 129, 0.45) 3px;
    text-underline-offset: 6px;
}

.guia-joven-header p {
    font-size: 1.08rem;
    color: #4b5563;
    font-weight: 500;
    max-width: 620px;
    margin: 0 auto;
}

/* Sección de Comercios con Fondo Verde Suave y Envolvente */
.guia-comercial-section {
    background: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 45%, #e6f7ef 100%);
    border-top: 1px solid rgba(16, 185, 129, 0.2);
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
    padding: 40px 5% 75px 5%;
    margin-top: 15px;
    border-radius: 36px 36px 0 0;
    box-shadow: inset 0 8px 24px rgba(6, 78, 59, 0.04);
}

.guia-comercial-section .category-filters {
    margin-bottom: 35px;
    gap: 10px 12px;
}

.guia-comercial-section .cat-btn {
    background: #ffffff;
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #064e3b;
    font-weight: 700;
    border-radius: 9999px;
    padding: 9px 20px;
    box-shadow: 0 2px 8px rgba(6, 78, 59, 0.06);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.guia-comercial-section .cat-btn:hover {
    background: #d1fae5;
    border-color: #10b981;
    color: #042f2c;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(16, 185, 129, 0.2);
}

.guia-comercial-section .cat-btn.active {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.38);
    transform: translateY(-1px);
}

/* Grid de Tarjetas Horizontales (Menos altas, diseño moderno 2 columnas) */
.grid-horizontal {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(460px, 1fr)) !important;
    gap: 20px !important;
    max-width: 1240px;
    margin: 0 auto;
}

.grid-horizontal .card {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    height: 140px !important;
    min-height: 140px !important;
    max-height: 140px !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    border: 1px solid rgba(16, 185, 129, 0.24) !important;
    box-shadow: 0 4px 16px rgba(6, 78, 59, 0.06) !important;
    overflow: hidden !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer;
}

.grid-horizontal .card:hover {
    transform: translateY(-4px) !important;
    border-color: #10b981 !important;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.18) !important;
}

/* Foto a la izquierda fija y menos alta */
.grid-horizontal .card .card-img {
    width: 140px !important;
    min-width: 140px !important;
    max-width: 140px !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center !important;
    position: relative !important;
    flex-shrink: 0 !important;
    border-radius: 18px 0 0 18px !important;
}

.grid-horizontal .card:hover .card-img {
    transform: scale(1.05) !important;
}

.grid-horizontal .card .card-category-pill {
    top: 8px !important;
    left: 8px !important;
    padding: 3px 8px !important;
    font-size: 0.62rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    background: rgba(3, 20, 17, 0.85) !important;
    color: #34d399 !important;
    border: 1px solid rgba(52, 211, 153, 0.4) !important;
    backdrop-filter: blur(6px) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3) !important;
}

/* Contenido de la tarjeta a la derecha */
.grid-horizontal .card .card-content {
    padding: 12px 18px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    flex-grow: 1 !important;
    min-width: 0 !important;
}

.grid-horizontal .card .card-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.08rem !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    margin-bottom: 4px !important;
    color: #0f172a !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    transition: color 0.2s ease !important;
}

.grid-horizontal .card:hover .card-title {
    color: #059669 !important;
}

.grid-horizontal .card .card-desc {
    font-size: 0.82rem !important;
    color: #4b5563 !important;
    line-height: 1.35 !important;
    margin-bottom: 6px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.grid-horizontal .card .card-link-btn {
    margin-top: 0 !important;
    padding: 4px 10px !important;
    border-radius: 8px !important;
    background: rgba(16, 185, 129, 0.08) !important;
    border: 1px solid rgba(16, 185, 129, 0.22) !important;
    color: #047857 !important;
    font-weight: 800 !important;
    font-size: 0.74rem !important;
    letter-spacing: 0.4px !important;
    width: fit-content !important;
    align-self: flex-start !important;
    transition: all 0.2s ease !important;
}

.grid-horizontal .card:hover .card-link-btn {
    background: #10b981 !important;
    color: #ffffff !important;
    border-color: #10b981 !important;
}

@media (max-width: 640px) {
    .grid-horizontal {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    .grid-horizontal .card {
        height: 125px !important;
        min-height: 125px !important;
        max-height: 125px !important;
    }
    .grid-horizontal .card .card-img {
        width: 110px !important;
        min-width: 110px !important;
        max-width: 110px !important;
    }
    .grid-horizontal .card .card-content {
        padding: 10px 12px !important;
    }
    .grid-horizontal .card .card-title {
        font-size: 0.98rem !important;
    }
    .grid-horizontal .card .card-desc {
        -webkit-line-clamp: 1 !important;
        font-size: 0.78rem !important;
    }
/* ========================================================
   WIDGET DEL TIEMPO EN LA RIOJA (CORRAL FM)
   ======================================================== */
.header-weather-col {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 14px;
    z-index: 100;
}

.rioja-weather-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #ffffff;
    border: 1.5px solid rgba(16, 185, 129, 0.45);
    padding: 6px 14px;
    border-radius: 9999px;
    box-shadow: 0 2px 10px rgba(6, 78, 59, 0.08);
    cursor: pointer;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.88rem;
    color: #0f172a;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    -webkit-user-select: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.rioja-weather-pill:hover {
    border-color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.22);
    background: #ffffff;
}

.weather-pill-icon {
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
    font-size: 1.15rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.weather-pill-temp {
    font-weight: 800;
    color: #047857;
    font-size: 0.95rem;
    line-height: 1;
    letter-spacing: -0.01em;
}

.weather-pill-town {
    font-weight: 600;
    color: #334155;
    transition: opacity 0.3s ease;
    line-height: 1;
}

.weather-pill-arrow {
    font-size: 0.65rem;
    color: #059669;
    margin-left: 2px;
    transition: transform 0.25s ease;
    line-height: 1;
}

.header-weather-col.is-open .weather-pill-arrow {
    transform: rotate(180deg);
}

.rioja-weather-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: 280px;
    background: #ffffff;
    border-radius: 20px;
    border: 1.5px solid rgba(16, 185, 129, 0.35);
    box-shadow: 0 14px 36px rgba(6, 78, 59, 0.16), 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 14px;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-weather-col.is-open .rioja-weather-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.weather-dropdown-header {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    color: #059669;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(16, 185, 129, 0.18);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.weather-dropdown-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.weather-town-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.weather-town-row:hover,
.weather-town-row.is-active {
    background: #ecfdf5;
    border-color: rgba(16, 185, 129, 0.4);
}

.weather-town-info {
    display: flex;
    flex-direction: column;
}

.weather-town-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: #0f172a;
}

.weather-town-zone {
    font-size: 0.72rem;
    color: #059669;
    font-weight: 600;
}

.weather-town-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.weather-town-icon {
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
    font-size: 1.25rem;
    line-height: 1;
}

.weather-town-temp {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: #047857;
    min-width: 36px;
    text-align: right;
}

/* Soporte explícito para Modo Oscuro (Brave Night Mode / OS Dark Theme) */
@media (prefers-color-scheme: dark) {
    .rioja-weather-pill {
        background: #13221e;
        border-color: rgba(52, 211, 153, 0.4);
        color: #f1f5f9;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    }
    .rioja-weather-pill:hover {
        background: #172c27;
        border-color: #34d399;
        box-shadow: 0 6px 18px rgba(52, 211, 153, 0.25);
    }
    .weather-pill-temp {
        color: #34d399;
    }
    .weather-pill-town {
        color: #e2e8f0;
    }
    .weather-pill-arrow {
        color: #34d399;
    }
    .rioja-weather-dropdown {
        background: #0f172a;
        border-color: rgba(52, 211, 153, 0.35);
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
    }
    .weather-dropdown-header {
        color: #34d399;
        border-bottom-color: rgba(52, 211, 153, 0.2);
    }
    .weather-town-row {
        background: #1e293b;
    }
    .weather-town-row:hover,
    .weather-town-row.is-active {
        background: #064e3b;
        border-color: rgba(52, 211, 153, 0.5);
    }
    .weather-town-name {
        color: #f8fafc;
    }
    .weather-town-zone {
        color: #a7f3d0;
    }
    .weather-town-temp {
        color: #34d399;
    }
}

@media (max-width: 860px) {
    .header-weather-col {
        margin: 0 6px;
    }
    .weather-pill-town {
        display: none;
    }
    .rioja-weather-pill {
        padding: 5px 11px;
        font-size: 0.82rem;
    }
    .rioja-weather-dropdown {
        left: auto;
        right: -10px;
        width: min(280px, calc(100vw - 24px));
        transform: translateY(8px);
    }
    .header-weather-col.is-open .rioja-weather-dropdown {
        transform: translateY(0);
    }
}



