/* ==========================================================================
   📰 PUBLIC PORTAL STYLES (HEADER, NAVIGATION, CAROUSEL, GRID, MODAL, FOOTER)
   ========================================================================== */

/* Header, Top Bar & Navigation */
header {
    background-color: var(--background);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    transition: padding 0.25s ease;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.9rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary);
}

.social-nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.top-bar-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

/* 💵 Weather & Finance Widget Badge (Colocado armónicamente bajo las redes) */
.finance-weather-badge {
    font-size: 0.74rem;
    color: var(--primary);
    font-weight: 700;
    background: var(--primary-glow);
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(215, 41, 36, 0.18);
    backdrop-filter: blur(8px);
    transition: var(--transition);
    white-space: nowrap;
}

.finance-weather-badge:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 10px var(--primary-glow);
}

.badge-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.badge-divider {
    opacity: 0.4;
}

@media (max-width: 768px) {
    .top-bar-right {
        align-items: flex-end;
        gap: 4px;
    }
    .finance-weather-badge {
        font-size: 0.65rem;
        padding: 2px 6px;
        gap: 4px;
    }
}

.social-icon-link {
    color: var(--text-muted);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.05);
}

.social-icon-link:hover {
    color: #ffffff;
    background-color: var(--primary);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* Dynamic Ticker (Marquee) */
.ticker-wrap {
    background-color: var(--secondary);
    color: #ffffff;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 1px solid var(--card-border);
}

.ticker-container {
    display: flex;
    align-items: center;
}

.ticker-title {
    background-color: var(--primary);
    padding: 5px 14px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    border-radius: 6px;
    margin-right: 18px;
    letter-spacing: 1px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.ticker-content {
    flex-grow: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    -webkit-mask-image: linear-gradient(to right, black 95%, transparent 100%);
    mask-image: linear-gradient(to right, black 95%, transparent 100%);
}

.ticker-scroll {
    display: inline-block;
    animation: ticker 35s linear infinite;
    padding-left: 20px;
}

.ticker-item {
    display: inline-block;
    padding: 0 22px;
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.ticker-item span {
    color: var(--primary);
    margin-right: 10px;
    font-weight: 900;
}

/* Advertising Banners */
.ad-wrapper {
    width: 100%;
    position: relative;
}

.ad-sponsor-label {
    font-size: 0.68rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ad-sponsor-label::before,
.ad-sponsor-label::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 1px;
    background: currentColor;
    opacity: 0.3;
}

.ad-container {
    margin: 20px 0;
    text-align: center;
}

.ad-banner {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.ad-banner:hover {
    transform: scale(1.005);
    box-shadow: var(--shadow-md);
}

.header-ad-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 56px;
    height: 56px;
    max-width: 468px;
    width: 100%;
    margin: 0 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--card-border);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 1;
}

.header-ad-container:hover {
    transform: scale(1.015);
    border-color: var(--primary);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.header-ad-container a {
    display: block;
    width: 100%;
    height: 100%;
}

.header-ad-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

header.is-scrolled .header-ad-container {
    max-height: 42px;
    height: 42px;
    opacity: 0.85;
}

/* Featured Hero Carousel */
.featured-carousel-section {
    margin-top: 20px;
    margin-bottom: 44px;
    width: 100%;
}

.featured-carousel {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-lg);
}

.carousel-track-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    height: 520px;
}

.carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, transform 0.6s ease;
    cursor: pointer;
    display: flex;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.carousel-img-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #0b0f19; /* Dark background to blend with contain */
}

.carousel-img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    transition: transform 6s ease;
}

.carousel-slide.active .carousel-img-container img {
    transform: scale(1.05);
}

.carousel-img-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(11, 15, 25, 0.96) 0%, rgba(11, 15, 25, 0.75) 50%, rgba(11, 15, 25, 0.15) 100%);
}

.carousel-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 36px 44px 44px 44px;
    z-index: 5;
    color: #ffffff;
    max-width: 920px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.carousel-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 14px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    letter-spacing: -0.5px;
}

.carousel-excerpt {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 20px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(11, 15, 25, 0.65);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-nav-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px var(--primary-glow);
}

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

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    right: 30px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary);
    width: 28px;
    border-radius: 12px;
}

.carousel-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: var(--primary);
    z-index: 10;
    width: 0%;
}

/* Category Block Carousels Track */
.category-block-section {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 28px;
}

.category-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.category-block-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-accent-line {
    width: 5px;
    height: 24px;
    background: var(--primary);
    border-radius: 4px;
}

.category-block-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text);
    margin: 0;
}

.category-count-badge {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(148, 163, 184, 0.1);
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.category-slider-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cat-slider-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cat-slider-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.cat-view-all-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    margin-left: 8px;
    transition: transform 0.2s;
}

.cat-view-all-link:hover {
    text-decoration: underline;
}

.category-slider-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-bottom: 14px;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.category-slider-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* 2 noticias exactas por vista en escritorio para evitar cortes */
.cat-slider-card {
    flex: 0 0 calc(50% - 8px);
    width: calc(50% - 8px);
    min-width: 0;
    max-width: 100%;
    scroll-snap-align: start;
    box-sizing: border-box;
}

/* 1 noticia exacta por vista en dispositivos móviles */
@media (max-width: 768px) {
    .cat-slider-card {
        flex: 0 0 100%;
        width: 100%;
    }
}

.category-badge {
    align-self: flex-start;
    background-color: var(--primary-glow);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 22px;
    letter-spacing: 0.8px;
    border: 1px solid rgba(215, 41, 36, 0.08);
}

.featured-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.1rem;
    line-height: 1.25;
    margin-bottom: 18px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.featured-excerpt {
    color: var(--text-muted);
    font-size: 1.02rem;
    margin-bottom: 26px;
    line-height: 1.6;
}

.meta-info {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--card-border);
    padding-top: 18px;
    margin-top: auto;
}

.meta-author {
    font-weight: 600;
    color: var(--text);
}

/* Category Filter Tabs & Search */
.filters-section {
    margin-bottom: 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 20px;
}

.filter-tabs-wrap {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.search-box-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 30px;
    padding: 6px 14px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.filter-tab {
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid var(--card-border);
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    padding: 8px 18px;
    cursor: pointer;
    border-radius: 30px;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.filter-tab:hover {
    color: var(--primary);
    background-color: var(--primary-glow);
    border-color: var(--primary);
}

.filter-tab.active,
.filter-tab.active:hover,
.filter-tab.active:focus {
    background-color: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 4px 14px var(--primary-glow);
    font-weight: 700;
}

/* Articles Responsive Grid & Layout */
.main-news-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 36px;
    align-items: stretch;
}

.news-feed-column {
    min-width: 0;
}

.news-sidebar-column {
    min-width: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* 📌 Publicidad Lateral Flotante / Sticky solo en Escritorio (Desktop)
   Permanece visible durante el desplazamiento manteniéndose estrictamente dentro de los límites de la columna lateral */
@media (min-width: 993px) {
    .news-sidebar-column {
        height: 100%;
    }

    .sidebar-widget.sidebar-ad-widget {
        position: -webkit-sticky;
        position: sticky;
        top: 92px;
        z-index: 20;
        will-change: transform;
        transition: top 0.2s ease;
        margin-top: 24px;
        margin-bottom: 12px;
    }
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    margin-bottom: 60px;
}

.article-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.article-card:nth-child(1) { animation-delay: 0.1s; }
.article-card:nth-child(2) { animation-delay: 0.2s; }
.article-card:nth-child(3) { animation-delay: 0.3s; }
.article-card:nth-child(4) { animation-delay: 0.4s; }
.article-card:nth-child(5) { animation-delay: 0.5s; }
.article-card:nth-child(6) { animation-delay: 0.6s; }

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px -10px rgba(15, 23, 42, 0.12), 0 4px 20px -5px var(--primary-glow);
    border-color: var(--primary);
}

.article-img-box {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.article-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover .article-img-box img {
    transform: scale(1.04);
}

.video-icon-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(215, 41, 36, 0.92);
    color: #ffffff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.article-card:hover .video-icon-badge {
    transform: translate(-50%, -50%) scale(1.12);
    background-color: var(--primary);
    box-shadow: 0 6px 20px var(--primary-glow);
}

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

.card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
    transition: var(--transition);
    color: var(--text);
}

.article-card:hover .card-title {
    color: var(--primary);
}

.card-excerpt {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Detail Reading Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 24px;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--background);
    max-width: 820px;
    width: 100%;
    max-height: 85vh;
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    background-color: rgba(15, 23, 42, 0.7);
    color: #ffffff;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition);
}

.modal-close-btn:hover {
    background-color: var(--primary);
    transform: rotate(90deg) scale(1.05);
}

.modal-img-box {
    width: 100%;
    height: 360px;
    position: relative;
}

.modal-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-body {
    padding: 36px;
}

.modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.95rem;
    font-weight: 800;
    margin-bottom: 14px;
    line-height: 1.3;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: 28px;
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal-text {
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.8;
    word-break: break-word;
}

.modal-text p, .modal-paragraph {
    margin-bottom: 1.15rem;
    line-height: 1.8;
    text-align: justify;
}

/* Evitar espacios en blanco excesivos por párrafos vacíos o saltos repetidos */
.modal-text p:empty,
.modal-text p:blank,
.modal-text p:has(> br:only-child) {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Soporte para alineaciones y tamaños generados por Quill / WordPress */
.modal-text .ql-align-center {
    text-align: center !important;
}

.modal-text .ql-align-right {
    text-align: right !important;
}

.modal-text .ql-align-justify {
    text-align: justify !important;
}

.modal-text .ql-size-large {
    font-size: 1.35rem !important;
    line-height: 1.5;
}

.modal-text .ql-size-huge {
    font-size: 1.65rem !important;
    line-height: 1.4;
}

/* Ocultar párrafos vacíos accidentales generados por Quill o Markdown */
.modal-text p:empty,
.modal-text p:has(> br:only-child) {
    margin: 0 !important;
    padding: 0 !important;
    display: none !important;
}

.modal-text h1,
.modal-text h2,
.modal-text h3,
.modal-text h4,
.modal-text h5,
.modal-text h6,
.modal-text .wp-block-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    margin-top: 1.4rem;
    margin-bottom: 0.65rem;
    color: var(--text) !important;
    line-height: 1.35;
    display: block;
    position: relative;
    padding-left: 12px;
    border-left: 4px solid var(--primary);
}

.modal-text h1 {
    font-size: 1.55rem;
}

.modal-text h2 {
    font-size: 1.35rem;
}

.modal-text h3 {
    font-size: 1.2rem;
    border-left-width: 3px;
    border-left-color: var(--accent);
}

.modal-text h4, .modal-text h5, .modal-text h6 {
    font-size: 1.1rem;
    border-left-width: 3px;
}

/* ⭐ Párrafo Destacado (Lead Highlight) - Tarjeta Editorial Periodística */
.lead-highlight, .modal-text .lead-highlight {
    position: relative;
    font-size: 1.14rem !important;
    font-weight: 500 !important;
    line-height: 1.75 !important;
    color: #f1f5f9 !important;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.14) 0%, rgba(15, 23, 42, 0.75) 100%) !important;
    border-left: 5px solid var(--primary) !important;
    border-top: 1px solid rgba(56, 189, 248, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 24px !important;
    border-radius: 0 16px 16px 0;
    margin: 1.4rem 0 !important;
    box-shadow: 0 8px 26px -6px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.lead-highlight::before {
    content: "ENFOQUE DESTACADO";
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 8px;
    opacity: 0.95;
}

.lead-highlight strong, .modal-text .lead-highlight strong {
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* 💬 Frase Célebre / Cita Textual - Estilo Revista & Prensa Digital */
.article-quote, blockquote.article-quote, .modal-text .article-quote, .modal-text blockquote {
    position: relative;
    margin: 1.5rem 0 !important;
    padding: 22px 26px 20px 64px !important;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(15, 23, 42, 0.8) 100%) !important;
    border: 1px solid rgba(245, 158, 11, 0.25) !important;
    border-left: 6px solid var(--accent) !important;
    border-radius: 0 16px 16px 0;
    box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.4), 0 0 20px rgba(245, 158, 11, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* Insignia con Icono de Comillas Circulares en la Esquina Superior Izquierda */
.article-quote::before, .modal-text .article-quote::before, .modal-text blockquote::before {
    content: "“";
    position: absolute;
    top: 18px;
    left: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #d97706);
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Georgia, serif;
    font-size: 2.1rem;
    font-weight: 900;
    line-height: 1.25;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
    text-shadow: none;
    opacity: 1;
    pointer-events: none;
    text-indent: 1px;
}

.article-quote p, .modal-text .article-quote p, .modal-text blockquote p {
    font-family: 'Outfit', Georgia, serif;
    font-size: 1.22rem !important;
    font-style: italic;
    font-weight: 500;
    line-height: 1.6;
    color: #f8fafc !important;
    margin-bottom: 12px !important;
    text-align: left !important;
    letter-spacing: -0.2px;
}

.article-quote p:last-child {
    margin-bottom: 0 !important;
}

.article-quote cite, .modal-text .article-quote cite, .modal-text blockquote cite {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fde68a !important;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(245, 158, 11, 0.18);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(245, 158, 11, 0.35);
    margin-top: 6px;
}

.article-quote cite::before {
    content: "🎙️";
    font-size: 0.85rem;
}

/* 🖼️ Imágenes dentro del contenido del artículo */
.article-figure, figure.article-figure, .modal-text figure {
    margin: 24px 0 !important;
    text-align: center;
}

.article-figure img, .modal-text img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--card-border);
    display: block;
    margin: 0 auto;
}

.article-figure figcaption, .modal-text figcaption {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 8px;
    line-height: 1.4;
    text-align: center;
}

/* 🏷️ Etiquetas / Hashtags (#Tags) */
.article-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    border: 1px solid rgba(37, 99, 235, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.article-tag-chip:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px var(--primary-glow);
}

.article-tag-chip.mini {
    padding: 2px 7px;
    font-size: 0.68rem;
    border-radius: 12px;
}

/* Trending Sidebar Widget */
.sidebar-widget {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 24px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 18px;
    color: var(--text);
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    padding-bottom: 4px;
}

.trending-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--card-border);
    cursor: pointer;
    transition: var(--transition);
}

.trending-item:last-child {
    border-bottom: none;
}

.trending-item:hover {
    transform: translateX(5px);
}

.trending-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-glow);
    -webkit-text-stroke: 1px var(--primary);
    min-width: 40px;
    text-align: center;
}

.trending-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 6px 0;
    color: var(--text);
    line-height: 1.3;
}

.trending-item:hover .trending-title {
    color: var(--primary);
}

.trending-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* 📹 Compact Video Sidebar Widget */
.video-sidebar-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg);
    border: 1px solid var(--card-border);
    cursor: pointer;
    transition: var(--transition);
}

.video-sidebar-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 8px 20px var(--primary-glow);
}

.video-sidebar-thumb {
    position: relative;
    height: 155px;
    width: 100%;
    overflow: hidden;
}

.video-sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-sidebar-card:hover .video-sidebar-thumb img {
    transform: scale(1.05);
}

.video-play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}

.video-sidebar-card:hover .video-play-badge {
    transform: translate(-50%, -50%) scale(1.15);
}

.video-sidebar-info {
    padding: 14px 16px;
}

.video-sidebar-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text);
    margin: 0;
}

/* Live Stream Section Badge */
.live-pulse {
    animation: pulse-live 1.6s infinite;
}

/* Footer */
footer {
    background-color: var(--secondary);
    color: #ffffff;
    padding: 56px 0 28px;
    margin-top: auto;
    border-top: 1px solid var(--card-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 44px;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 18px;
    font-size: 0.92rem;
    max-width: 340px;
    line-height: 1.7;
}

.footer-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 22px;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.92rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 6px;
}

.bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Media Queries & Mobile Perfection */
@media (max-width: 992px) {
    .header-ad-container {
        display: none !important;
    }

    .main-news-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .carousel-track-container {
        height: clamp(320px, 48vw, 440px);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 14px;
    }

    /* Top Bar Mobile Optimization: Clean Balanced Row */
    .top-bar {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-areas: 
            "left center right"
            "ticker ticker ticker";
        align-items: center;
        padding: 8px 0 4px 0;
        gap: 6px 8px;
    }

    .top-bar-left {
        grid-area: left;
        display: flex;
        align-items: center;
    }

    .btn-category-drawer {
        padding: 7px 9px;
        border-radius: 10px;
    }

    .drawer-btn-text {
        display: none; /* Icon-only on mobile */
    }

    .logo-container {
        grid-area: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 2px !important;
        min-width: 0;
    }

    .logo {
        font-size: 1.25rem;
        gap: 6px;
        justify-content: center;
        line-height: 1.1;
    }

    .logo img {
        max-height: 34px !important;
    }

    .logo-text {
        font-size: 1.15rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Sub info: Compact date */
    .logo-sub-info {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.68rem;
        margin: 0 auto;
    }

    #live-clock {
        display: none !important; /* Hide long weekday string on phones to save space */
    }

    .top-bar-right {
        grid-area: right;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        gap: 4px;
    }

    .finance-weather-badge {
        font-size: 0.68rem;
        padding: 2px 8px;
        gap: 5px;
        line-height: 1.1;
    }

    /* En celulares < 640px mostramos la insignia USD discretamente en la barra de noticias para no recargar la cabecera */
    @media (max-width: 640px) {
        .top-bar-right .finance-weather-badge {
            display: none !important; /* Ocultar del bloque derecho superior para dar aire al logo y botones */
        }

        .mobile-ticker-badge {
            display: inline-flex !important;
            align-items: center;
        }
    }

    /* Compress social nav on mobile header */
    .social-nav {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .social-icon-link {
        width: 30px;
        height: 30px;
    }

    /* Show only WhatsApp and Facebook in mobile top bar */
    .social-nav a:not([aria-label="WhatsApp"]):not([aria-label="Facebook"]) {
        display: none !important;
    }

    /* Scrolled Compact Header on Mobile (<=768px) */
    header.is-scrolled .top-bar {
        padding: 4px 0 !important;
    }

    header.is-scrolled .logo img {
        max-height: 26px !important;
    }

    header.is-scrolled .logo-text {
        font-size: 1.05rem !important;
    }

    header.is-scrolled .logo-sub-info {
        display: none !important;
    }

    header.is-scrolled .social-icon-link {
        width: 28px !important;
        height: 28px !important;
    }

    /* Ticker compact on mobile */
    .ticker-wrap {
        padding: 5px 0;
    }

    .ticker-title {
        font-size: 0.62rem;
        padding: 2px 7px;
        margin-right: 8px;
    }

    .ticker-item {
        font-size: 0.78rem;
        padding: 0 12px;
    }

    /* Hero Carousel on Mobile */
    .featured-carousel-section {
        margin-top: 12px;
        margin-bottom: 24px;
    }

    .carousel-track-container {
        height: clamp(260px, 62vw, 360px);
    }

    .carousel-info-overlay {
        padding: 18px 18px 24px 18px;
    }

    .carousel-title {
        font-size: 1.25rem;
        margin-bottom: 8px;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .carousel-excerpt {
        display: none; /* Save space for touch readability */
    }

    .carousel-nav-btn {
        width: 36px;
        height: 36px;
        background: rgba(11, 15, 25, 0.75);
    }

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

    .carousel-indicators {
        bottom: 12px;
        right: 16px;
    }

    /* Filter tabs: Barra de categorías horizontal táctil deslizable (estilo App) */
    .filters-section {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 20px;
        padding-bottom: 12px;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .filter-tabs-wrap {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        padding: 4px 2px 10px 2px;
        gap: 6px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
    }

    .filter-tabs-wrap::-webkit-scrollbar {
        display: none;
    }

    .filter-tab {
        flex: 0 0 auto !important;
        font-size: 0.78rem !important;
        padding: 5px 12px !important;
        white-space: nowrap !important;
        border-radius: 20px !important;
        scroll-snap-align: start;
        user-select: none;
    }

    .search-box-wrap {
        width: 100%;
        box-sizing: border-box;
        justify-content: flex-start;
        padding: 6px 12px;
    }

    .search-box-wrap input {
        width: 100% !important;
        font-size: 0.82rem;
    }

    /* Category Block Sliders on Mobile */
    .category-block-section {
        margin-bottom: 28px;
        padding-bottom: 18px;
    }

    .category-block-header {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 14px;
    }

    .category-block-title-wrap {
        gap: 8px;
    }

    .category-block-title {
        font-size: 1.15rem;
    }

    .category-count-badge {
        font-size: 0.7rem;
        padding: 2px 7px;
    }

    .category-slider-controls {
        gap: 6px;
    }

    .cat-slider-btn {
        width: 30px;
        height: 30px;
    }

    .cat-view-all-link {
        font-size: 0.8rem;
    }

    .cat-slider-card {
        flex: 0 0 86%;
        width: 86%;
        margin-right: 10px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 40px;
    }

    /* Modal Responsive */
    .modal-overlay {
        padding: 12px;
    }

    .modal-content {
        max-height: 92vh;
        border-radius: var(--radius-md);
    }

    .modal-img-box {
        height: 210px;
    }

    .modal-body {
        padding: 20px 16px;
    }

    .modal-title {
        font-size: 1.35rem;
        line-height: 1.35;
    }

    .modal-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    /* Footer Responsive */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .bottom-bar {
        flex-direction: column;
        gap: 14px;
        text-align: center;
        padding-bottom: 64px !important; /* Espacio para no tapar texto con la barra móvil inferior */
    }

    /* En móviles la barra inferior (mobile-bottom-nav) ya tiene WhatsApp y Arriba integrados */
    #floatingWhatsAppBtn {
        display: none !important;
    }

    #backToTopBtn {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .logo-text {
        font-size: 1.12rem !important;
    }

    .badge-weather-scz,
    .badge-scz-sep {
        display: none !important; /* Ocultar segundo clima en celulares angostos */
    }

    .cat-slider-card {
        flex: 0 0 92%;
        width: 92%;
    }
}

/* ==========================================================================
   📱 DEDICATED MOBILE BOTTOM NAVIGATION BAR (Compacta, Elegante y Táctil)
   ========================================================================== */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 52px; /* Más compacta y estilizada */
        background: rgba(15, 23, 42, 0.96);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 999;
        justify-content: space-around;
        align-items: center;
        padding: 0 4px;
        box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.35);
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #94a3b8;
        text-decoration: none;
        font-size: 0.62rem; /* Tamaño de texto ultra pulido */
        font-weight: 600;
        gap: 2px;
        padding: 4px 6px;
        border-radius: 6px;
        transition: var(--transition);
        background: transparent;
        border: none;
        cursor: pointer;
        outline: none;
        flex: 1;
        max-width: 70px;
    }

    .mobile-nav-item svg {
        width: 18px; /* Iconos proporcionales */
        height: 18px;
        stroke: currentColor;
    }

    .mobile-nav-item:active,
    .mobile-nav-item.active {
        color: var(--primary);
    }

    .mobile-nav-item.highlight-nav {
        color: #22c55e;
    }
}

/* ==========================================================================
   ✨ COMPACT SCROLL HEADER & OFF-CANVAS CATEGORIES DRAWER
   ========================================================================== */

/* Header transitions */
header {
    transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease, box-shadow 0.3s ease;
}

.top-bar {
    transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo img {
    transition: max-height 0.3s ease, transform 0.3s ease;
}

.logo-text {
    transition: font-size 0.3s ease;
}

.logo-sub-info {
    transition: opacity 0.25s ease, max-height 0.25s ease, margin 0.25s ease;
    max-height: 50px;
    overflow: hidden;
}

/* Scrolled Compact Mode */
header.is-scrolled {
    background-color: var(--card-bg);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

header.is-scrolled .top-bar {
    padding: 10px 0;
}

header.is-scrolled .logo img {
    max-height: 40px !important;
}

header.is-scrolled .logo-text {
    font-size: 1.4rem !important;
}

header.is-scrolled .logo-sub-info {
    opacity: 0.7;
}

header.is-scrolled .header-ad-container {
    max-height: 46px;
    height: 46px;
    opacity: 0.95;
    transition: all 0.25s ease;
}

/* Category drawer toggle button */
.btn-category-drawer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--card-border);
    color: var(--text);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-category-drawer:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 14px var(--primary-glow);
}

/* Off-Canvas Category Drawer Backdrop */
.category-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 16, 29, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.category-drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Off-Canvas Drawer Panel */
.category-drawer-panel {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    background: #0f172a;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10001;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.6);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.category-drawer-backdrop.active .category-drawer-panel {
    left: 0;
}

.drawer-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.drawer-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

.drawer-close-btn:hover {
    background: #ef4444;
    color: #ffffff;
}

.drawer-categories-list {
    list-style: none;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
}

.drawer-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 8px;
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.drawer-cat-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--primary);
    padding-left: 20px;
}

.drawer-cat-link.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* ==========================================================================
   📢 Publicidad Pop-up Sobrepuesta (Overlay Modal)
   ========================================================================== */
.popup-ad-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 25, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.popup-ad-overlay.active {
    display: flex;
    opacity: 1;
}

.popup-ad-card {
    position: relative;
    max-width: 580px;
    width: 100%;
    background: #0f172a;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 40px rgba(215, 41, 36, 0.15);
    overflow: hidden;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    animation: popupCardEntrance 0.4s forwards;
}

@keyframes popupCardEntrance {
    to {
        transform: scale(1) translateY(0);
    }
}

.popup-ad-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.popup-ad-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.popup-ad-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    transition: var(--transition);
}

.popup-ad-close:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.popup-ad-body {
    position: relative;
    max-height: 72vh;
    overflow-y: auto;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-ad-body a {
    display: block;
    width: 100%;
}

.popup-ad-body img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

.popup-ad-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.popup-ad-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--primary), #b5221e);
    color: #ffffff;
    padding: 7px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.82rem;
    transition: var(--transition);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.popup-ad-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px var(--primary-glow);
}



