@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,500;0,600;0,700;1,400;1,600&family=Cinzel: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(15, 23, 42, 0.96); /* Reproductor inferior verdoso oscuro */
    
    /* Typography & Legibility */
    --text-title: #0f172a;       /* Titulares en verde oscuro periodístico */
    --text-body: #334155;        /* Texto de lectura legible */
    --text-muted: #64748b;
    --border-color: rgba(30, 58, 138, 0.14);
    --border-hover: rgba(37, 99, 235, 0.35);
    
    /* Logo 100% Blue Palette */
    --logo-navy: #1e3a8a;        /* Blau profund */
    --logo-blue: #2563eb;        /* Blau intens */
    --brand-blue: #3b82f6;       /* Blau clar (manté el nom de variable) */
    --brand-blue-bright: #60a5fa;/* Blau brillant (manté el nom de variable) */
    --logo-gold: #f59e0b;        /* Oro acento */
    
    --grad-logo: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    --grad-blue: linear-gradient(135deg, #1e40af 0%, #60a5fa 100%);
    --grad-header: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    
    /* Shadows & Curves */
    --shadow-card: 0 4px 20px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 12px 36px rgba(37, 99, 235, 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: 62px;
    --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: 'Lora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-main);
    background-image: 
        linear-gradient(rgba(248, 250, 252, 0.92), rgba(248, 250, 252, 0.95)),
        url('../img/portada.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    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: 'Lora', -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: #0f172a;
    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-blue);
    color: #ffffff;
    font-family: 'Cinzel', 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(96, 165, 250, 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(--brand-blue-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('../img/portada.jpg') center/cover fixed no-repeat;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(96, 165, 250, 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 absolute (hero overlaps) */
body:has(.home-main) header {
    position: fixed;
    top: 0;
}

.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: 'Cinzel', 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(37, 99, 235, 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(30, 58, 138, 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: 40px 5% 18px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.page-header h1 {
    font-family: 'Lora', 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(--brand-blue);
}

.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 {
    min-height: 55vh;
    display: flex;
    align-items: center;
    padding: 115px 5% 70px 5%;
    position: relative;
    border-bottom: none;
    animation: soft-tv-flicker 5s infinite;
    overflow: hidden;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%; left: -10%; right: -10%; bottom: -10%;
    background: 
        linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.88) 60%, rgba(248, 250, 252, 0.95) 90%, var(--bg-main) 100%),
        url('../img/portada.jpg') center/cover no-repeat;
    z-index: -1;
    animation: hero-bg-warp 15s ease-in-out infinite alternate;
}

@keyframes hero-bg-warp {
    0% { transform: scale(1) rotate(0deg) skew(0deg, 0deg); }
    33% { transform: scale(1.05) rotate(1deg) skew(1deg, 0deg); }
    66% { transform: scale(1.08) rotate(-1deg) skew(0deg, 1deg); }
    100% { transform: scale(1.02) rotate(0.5deg) skew(-1deg, -1deg); }
}

@keyframes soft-tv-flicker {
    0%, 100% { filter: brightness(1) contrast(1) hue-rotate(0deg); }
    2% { filter: brightness(1.05) contrast(1.05) hue-rotate(1deg); }
    4% { filter: brightness(0.95) contrast(0.98) hue-rotate(-1deg); }
    6% { filter: brightness(1) contrast(1) hue-rotate(0deg); }
    30% { filter: brightness(1) contrast(1); }
    32% { filter: brightness(1.08) contrast(1.02); }
    34% { filter: brightness(0.92) contrast(1); }
    36% { filter: brightness(1) contrast(1); }
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, rgba(248, 250, 252, 0) 0%, 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: 2;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    border: 2px solid var(--brand-blue);
    overflow: hidden;
    background: #000;
    box-shadow: 0 8px 32px rgba(30, 58, 138, 0.18);
}

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

/* 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: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.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: center;
    gap: 8px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.25);
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-family: 'Cinzel', serif;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: var(--logo-navy);
}

.hero-pill .pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--brand-blue-bright);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--brand-blue-bright);
    animation: pulseDot 1.5s infinite;
}

/* Titular Corral fm idéntico al logo */
.hero-logo-title {
    font-family: 'Lora', -apple-system, sans-serif;
    font-size: clamp(3.2rem, 7vw, 5.8rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 12px;
    letter-spacing: -0.02em;
    width: 100%;
    text-align: center;
}

.corral-word {
    color: #22252a; /* Negro carbón redondeado del logo */
    font-weight: 800;
    display: inline-block;
    animation: breathe-text 2s ease-in-out infinite;
}

.fm-word {
    color: #1d4ed8; /* Azul intenso minúscula del logo */
    font-weight: 800;
    font-size: 0.95em;
    background: none;
    box-shadow: none;
    padding: 0;
    text-transform: lowercase;
    display: inline-block;
    animation: zoom-fm 4s infinite;
}

.hours-word {
    font-size: 0.5em;
    font-weight: 700;
    margin-left: 8px;
    letter-spacing: -0.01em;
    background: linear-gradient(90deg, #64748b, #3b82f6, #f59e0b, #64748b);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: gradient-strobe 4s infinite;
}

@keyframes glitch-tv {
  0%, 100% { transform: translate(0); text-shadow: none; opacity: 1; }
  10% { transform: translate(-2px, 1px); text-shadow: 2px 0 rgba(255,0,0,0.7), -2px 0 rgba(0,0,255,0.7); opacity: 0.9; }
  12% { transform: translate(0); text-shadow: none; opacity: 1; }
  35% { transform: translate(2px, -1px); text-shadow: -2px 0 rgba(0,255,0,0.7), 2px 0 rgba(255,0,255,0.7); opacity: 0.8; }
  37% { transform: translate(0); text-shadow: none; opacity: 1; }
  65% { transform: translate(-1px, 2px); text-shadow: 1px 0 rgba(0,255,255,0.7), -1px 0 rgba(255,0,0,0.7); opacity: 0.9; }
  67% { transform: translate(0); text-shadow: none; opacity: 1; }
}

@keyframes breathe-text {
  0%, 100% { text-shadow: 0 0 5px rgba(22, 163, 74, 0); transform: translateY(0); }
  50% { text-shadow: 0 0 15px rgba(22, 163, 74, 0.4); transform: translateY(-3px); }
}

@keyframes zoom-fm {
  0%, 100% { transform: scale(1); }
  5% { transform: scale(1.15); }
  10% { transform: scale(1); }
}

@keyframes gradient-strobe {
  0% { background-position: 0% 50%; opacity: 1; }
  45% { background-position: 100% 50%; opacity: 1; }
  47% { opacity: 0; }
  48% { opacity: 1; }
  49% { opacity: 0; }
  50% { opacity: 1; }
  100% { background-position: 0% 50%; opacity: 1; }
}

.glitch-subtitle {
    display: inline-block;
    animation: glitch-tv 1.5s linear infinite;
}

/* Subtítulo único solicitado */
.hero-content p {
    font-size: 1.15rem;
    font-family: 'Cinzel', serif;
    font-weight: 500;
    font-style: normal;
    color: #0f172a;
    letter-spacing: 0.02em;
    margin-bottom: 28px;
    max-width: 620px;
    line-height: 1.6;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.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: 22px auto 14px 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: 'Cinzel', 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(30, 58, 138, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(30, 58, 138, 0.4);
    background: var(--grad-blue);
}

.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(96, 165, 250, 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(30, 58, 138, 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('../img/portada.jpg') 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: 'Lora', 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(96, 165, 250, 0.22);
    border: 1px solid rgba(96, 165, 250, 0.5);
    color: #34d399;
    font-family: 'Cinzel', 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: 'Lora', 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, #3b82f6 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 2px 10px rgba(96, 165, 250, 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: 'Lora', 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: 'Lora', 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: 'Cinzel', serif;
    font-size: 0.70rem;
    font-weight: 900;
    color: #34d399;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    background: rgba(30, 58, 138, 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: 'Lora', 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: 'Lora', 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: 'Lora', 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: 'Lora', 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: 'Lora', 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(37, 99, 235, 0.85);
    border-color: #3b82f6;
    transform: scale(1.05);
}

.tv-play-circle {
    width: 28px;
    height: 28px;
    background: #3b82f6;
    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: 'Cinzel', 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%, #2563eb 100%);
    color: #ffffff;
    border: 1px solid rgba(96, 165, 250, 0.4);
    padding: 6px 18px;
    border-radius: var(--radius-pill);
    font-family: 'Lora', 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(96, 165, 250, 0.35);
    transition: all 0.25s ease;
}

.tv-fullscreen-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    box-shadow: 0 6px 20px rgba(96, 165, 250, 0.55);
    transform: translateY(-1px) scale(1.03);
}

.tv-listen-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-family: 'Cinzel', 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(37, 99, 235, 0.35);
    transition: all 0.25s ease;
}

.tv-listen-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.5);
    background: #3b82f6;
}

.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, #0f172a 40%, #0f4c47 85%, #064e3b 100%);
    border: 4px solid var(--logo-navy);
    box-shadow: 0 0 25px rgba(30, 58, 138, 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(96, 165, 250, 0.4);
}

.vinyl-disc.playing {
    box-shadow: 0 0 35px rgba(96, 165, 250, 0.45);
    border-color: var(--brand-blue);
}

.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: #2563eb;
    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: #3b82f6;
    box-shadow: 0 0 8px rgba(96, 165, 250, 0.9);
}

.vinyl-center-btn {
    position: relative;
    z-index: 2;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 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, #3b82f6 0%, #1e3a8a 100%);
    box-shadow: 0 0 25px rgba(96, 165, 250, 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(96, 165, 250, 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-blue);
    color: #ffffff;
    font-family: 'Cinzel', 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(96, 165, 250, 0.3);
    margin-bottom: 14px;
}

.hero-station-title {
    font-family: 'Cinzel', 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: 75px 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: 'Lora', -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: #1d4ed8;
    font-weight: 800;
    text-transform: lowercase;
}

.view-all-pill {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--logo-navy);
    padding: 8px 18px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 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: 'Cinzel', 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(30, 58, 138, 0.3);
}

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

.card-title {
    font-family: 'Lora', -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: #1d4ed8;
}

.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: 'Cinzel', 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;
    width: 100%;
    z-index: 1000;
    background: var(--bg-player);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 3px solid var(--brand-blue);
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.4);
    padding: 16px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.now-playing-thumb {
    width: 52px;
    height: 52px;
    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(30, 58, 138, 0.3);
}

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

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

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

.now-playing-song {
    font-family: 'Lora', serif;
    font-size: 0.82rem;
    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(--brand-blue-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(96, 165, 250, 0.4);
    border-radius: var(--radius-pill);
    padding: 4px 14px;
    color: #ffffff;
    font-family: 'Cinzel', 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: #3b82f6;
    font-weight: 900;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.now-playing-agenda-box {
    margin-top: 42px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 76, 71, 0.95) 100%);
    border: 1.5px solid rgba(96, 165, 250, 0.4);
    border-radius: var(--radius-card);
    padding: 18px 22px;
    box-shadow: 0 8px 24px rgba(4, 47, 44, 0.25);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.3s ease;
}

.now-playing-agenda-box:hover {
    border-color: var(--brand-blue-bright);
    box-shadow: 0 10px 30px rgba(96, 165, 250, 0.3);
}

.now-playing-agenda-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    font-weight: 900;
    color: var(--brand-blue-bright);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.now-playing-agenda-title {
    font-family: 'Lora', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
    word-break: break-word;
}

/* 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(--brand-blue-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(30, 58, 138, 0.4);
    transition: all 0.25s ease;
}

.play-btn:hover {
    transform: scale(1.08);
    background: var(--grad-blue);
    box-shadow: 0 0 25px rgba(96, 165, 250, 0.6);
}

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

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

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

/* ========================================================
   FOOTER
   ======================================================== */
footer {
    background: #0f172a;
    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;
    gap: 14px;
}

.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: 'Cinzel', serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #cbd5e1;
}

.instagram-handle {
    font-family: 'Lora', 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);
}

.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(30, 58, 138, 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;
}

.agenda-day {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 900;
    line-height: 1;
    color: #0f172a;
}

.agenda-month {
    font-family: 'Cinzel', serif;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 2px;
    color: #1d4ed8;
}

.agenda-content {
    flex: 1;
}

.agenda-title {
    font-family: 'Lora', 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(--brand-blue);
}

/* 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: 'Lora', 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: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    font-size: 1.1rem;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.custom-sat-pin:hover {
    transform: scale(1.25);
}

.custom-sat-pin.vip {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.8);
}

.custom-sat-pin.pin-cat-bar { background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%); }
.custom-sat-pin.pin-cat-bodega { background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%); }
.custom-sat-pin.pin-cat-pan { background: linear-gradient(135deg, #d97706 0%, #b45309 100%); }
.custom-sat-pin.pin-cat-super { background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%); }
.custom-sat-pin.pin-cat-salud { background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%); }
.custom-sat-pin.pin-cat-belleza { background: linear-gradient(135deg, #db2777 0%, #be185d 100%); }
.custom-sat-pin.pin-cat-taller { background: linear-gradient(135deg, #475569 0%, #334155 100%); }
.custom-sat-pin.pin-cat-gas { background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%); }
.custom-sat-pin.pin-cat-banco { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); }
.custom-sat-pin.pin-cat-servicio { background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%); }

.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(37, 99, 235, 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: 'Lora', 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(--brand-blue);
    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(30, 58, 138, 0.14);
        padding-top: 36px;
    }



    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        max-width: 600px;
    }
    .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 {
        flex-direction: column !important;
        padding: 10px 14px 12px 14px !important;
        gap: 8px !important;
        border-top: 3px solid var(--brand-blue);
    }

    .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(96, 165, 250, 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(--brand-blue-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: 'Lora', 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: 'Lora', 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: 'Lora', 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: 'Lora', 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;
}

@media (max-width: 768px) {
    body.page-comercio-detail .news-ticker,
    body.page-comercio-detail header,
    body:has(#comercio-container) .news-ticker,
    body:has(#comercio-container) header,
    body:has(#single-comercio-content) .news-ticker,
    body:has(#single-comercio-content) header {
        display: none !important;
    }

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

    body.page-comercio-detail main,
    body:has(#comercio-container) main,
    body:has(#single-comercio-content) main {
        padding-top: 15px !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: 'Cinzel', 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(37, 99, 235, 0.08);
    color: var(--logo-navy);
    border-color: rgba(37, 99, 235, 0.3);
}

.cat-btn.active {
    background: var(--grad-logo);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(30, 58, 138, 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(96, 165, 250, 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 #3b82f6;
    border-radius: 9999px;
    padding: 3px 12px 3px 6px;
    box-shadow: 0 2px 8px rgba(96, 165, 250, 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: #2563eb;
    box-shadow: 0 4px 14px rgba(96, 165, 250, 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(96, 165, 250, 0.2) 0%, rgba(37, 99, 235, 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: 'Cinzel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    color: #0f172a !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: 'Cinzel', serif;
    font-weight: 600;
    color: #0f172a;
    background: #ffffff;
    padding: 8px;
}

.btn-rioja-general {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Cinzel', -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: #1e3a8a;
    border: 1.5px solid #3b82f6;
    box-shadow: 0 2px 6px rgba(96, 165, 250, 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(96, 165, 250, 0.25);
    background: #f0fdf4;
    border-color: #2563eb;
}

.btn-rioja-general.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%) !important;
    color: #ffffff !important;
    border: 1.5px solid #1e3a8a !important;
    box-shadow: 0 3px 12px rgba(96, 165, 250, 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%;
    }
    .logo img {
        height: 38px;
    }
    .mobile-menu-btn {
        display: flex !important;
    }
    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: 115px 5% 30px 5% !important;
        display: block !important;
    }
    .hero-pill-wrap {
        text-align: center;
        margin-bottom: 10px !important;
    }
    .hero-logo-title {
        margin-bottom: 10px !important;
        font-size: clamp(3.3rem, 11vw, 4.0rem) !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 {
        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-actions {
        margin-bottom: 16px !important;
    }
}

@media (max-width: 480px) {
    .header-main-row {
        padding: 4px 4% 2px 4%;
    }
    .logo img {
        height: 34px;
    }
    .header-town-bar {
        padding: 2px 4% 5px 4%;
    }
    .header-town-bar .btn-rioja-general {
        padding: 6px 10px;
        font-size: 0.68rem !important;
    }

    .hero {
        padding: 115px 4% 26px 4% !important;
    }
    .hero-pill-wrap {
        margin-bottom: 8px !important;
    }
    .hero-logo-title {
        margin-bottom: 8px !important;
        font-size: clamp(3.3rem, 11vw, 4.0rem) !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 {
        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-actions {
        margin-bottom: 14px !important;
    }
}

