/* ============================================================
   Portal de Noticias — Public CSS
   ============================================================ */

:root {
    --color-primario: #e63946;
    --color-primario-dark: #c1121f;
    --color-texto: #1a1a2e;
    --color-muted: #6c757d;
    --border-radius: 6px;
    --card-shadow: 0 1px 4px rgba(0,0,0,.08);
    --nav-height: 56px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--color-texto);
    background: #f8f9fa;
    font-size: 16px;
    line-height: 1.6;
}

a { color: var(--color-primario); text-decoration: none; }
a:hover { color: var(--color-primario-dark); }
img { max-width: 100%; height: auto; }

/* ── Breaking News Ticker ── */
.breaking-ticker {
    background: var(--color-primario);
    color: #fff;
    padding: 6px 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: .85rem;
    font-weight: 600;
    line-height: 1.4;
}

.breaking-label {
    background: rgba(0,0,0,.3);
    padding: 3px 14px;
    margin-right: 0;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: .72rem;
    font-weight: 700;
    flex-shrink: 0;
}

.ticker-track {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;          /* start off-screen to the right */
    animation: ticker-scroll 35s linear infinite;
    will-change: transform;
}

.ticker-track:hover { animation-play-state: paused; }

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ── Header & Topbar ── */
.site-topbar {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 6px 0;
    font-size: .8rem;
    color: var(--color-muted);
}

.site-topbar .social-icons a {
    color: var(--color-muted);
    font-size: 1rem;
    margin-left: 10px;
    transition: color .2s;
}

.site-topbar .social-icons a:hover { color: var(--color-primario); }

/* La clase .site-logo puede estar en el <img> directo O en un wrapper —
   las reglas de tamaño aplican en ambos casos */
.site-logo {
    display: block;
    max-height: 90px;
    max-width: 320px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Compatibilidad si alguien usa un wrapper div.site-logo > img */
.site-logo img {
    display: block;
    max-height: 90px;
    max-width: 320px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.site-logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-texto);
    line-height: 1.1;
    text-decoration: none;
}

.site-logo-text span { color: var(--color-primario); }

/* Search in header */
.header-search .form-control {
    border-radius: 20px 0 0 20px;
    border-right: none;
    background: #f1f3f4;
    border-color: #dee2e6;
}

.header-search .btn {
    border-radius: 0 20px 20px 0;
    background: var(--color-primario);
    border-color: var(--color-primario);
    color: #fff;
}

/* ── Navbar ── */
.site-navbar {
    background: var(--color-primario) !important;
    min-height: var(--nav-height);
}

.site-navbar .navbar-brand {
    font-weight: 700;
    color: #fff !important;
}

.site-navbar .nav-link {
    color: rgba(255,255,255,.88) !important;
    font-weight: 500;
    font-size: .9rem;
    padding: .5rem .9rem !important;
    transition: color .15s, background .15s;
    border-radius: 4px;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,.12);
}

.site-navbar .dropdown-menu {
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
    border-radius: var(--border-radius);
    margin-top: 4px;
}

.site-navbar .dropdown-item {
    font-size: .9rem;
    padding: .4rem 1rem;
}

.site-navbar .dropdown-item:hover { background: #f8f9fa; }

/* Live dot animation */
.live-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    animation: pulse-live 1.5s ease-in-out infinite;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .4; transform: scale(.7); }
}

/* Mobile search */
.mobile-search { background: #f1f3f4; }

.mobile-search .form-control { border: none; background: transparent; }
.mobile-search .form-control:focus { box-shadow: none; }

/* ── Category Color Dots ── */
.category-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

/* ── Main Content ── */
.main-content { padding-top: 2rem; padding-bottom: 3rem; }

/* ── Section Headers ── */
.section-header {
    border-left: 4px solid var(--color-primario);
    padding-left: 10px;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--color-texto);
}

/* ── Noticia Cards ── */
.noticia-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.noticia-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    transform: translateY(-2px);
}

.noticia-card .card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.noticia-card .card-img-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 2rem;
}

.noticia-card .card-body { padding: 1rem; flex: 1; }

.noticia-card .categoria-badge {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 2px 8px;
    border-radius: 2px;
    color: #fff;
    display: inline-block;
    margin-bottom: .5rem;
}

.noticia-card h3, .noticia-card .card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: .4rem;
    color: var(--color-texto);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.noticia-card h3 a, .noticia-card .card-title a {
    color: inherit;
    text-decoration: none;
}

.noticia-card h3 a:hover, .noticia-card .card-title a:hover {
    color: var(--color-primario);
}

.noticia-card .card-meta {
    font-size: .75rem;
    color: var(--color-muted);
    margin-top: auto;
    padding-top: .5rem;
}

/* Noticia card horizontal (small) */
.noticia-card-h {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: .6rem;
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    transition: box-shadow .2s;
    margin-bottom: .6rem;
}

.noticia-card-h:hover { box-shadow: 0 2px 10px rgba(0,0,0,.1); }

.noticia-card-h img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.noticia-card-h .placeholder-img {
    width: 80px;
    height: 60px;
    background: #e9ecef;
    border-radius: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
}

.noticia-card-h .card-body { padding: 0; flex: 1; min-width: 0; }

.noticia-card-h .card-title {
    font-size: .85rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: .25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.noticia-card-h .card-title a { color: var(--color-texto); }
.noticia-card-h .card-title a:hover { color: var(--color-primario); }
.noticia-card-h .card-meta { font-size: .7rem; color: var(--color-muted); }

/* Destacada card (large) */
.noticia-card-destacada {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    min-height: 320px;
    background: #1a1a2e;
}

.noticia-card-destacada img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .65;
    position: absolute;
    top: 0;
    left: 0;
}

.noticia-card-destacada .card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.85));
    padding: 2rem 1.25rem 1.25rem;
    color: #fff;
}

.noticia-card-destacada .card-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: .35rem;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.noticia-card-destacada .card-title a { color: inherit; }
.noticia-card-destacada .card-title a:hover { color: #ffd166; }

.noticia-card-destacada .card-meta { font-size: .75rem; color: rgba(255,255,255,.75); }
.noticia-card-destacada .categoria-badge { margin-bottom: .4rem; }

/* ── Ad Banners ── */
.ad-banner {
    text-align: center;
    padding: 8px 0;
}

.ad-banner-970 img,
.ad-banner-970 a {
    display: block;
    width: 100%;
    max-width: 970px;
    margin: 0 auto;
}

.ad-banner-970 img {
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
}

/* ── Banner Slideshow ── */
.ad-slideshow {
    position: relative;
    max-width: 970px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 4px;
    height: 90px;        /* fija el alto para que el cross-fade no mueva el layout */
}

.ad-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .8s ease;
    pointer-events: none;
}

.ad-slide a,
.ad-slide img {
    display: block;
    width: 100%;
    height: 90px;
    object-fit: cover;
}

.ad-slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* Un solo slide: sin posicionamiento absoluto */
.ad-slideshow.single .ad-slide {
    position: relative;
    inset: auto;
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 767.98px) {
    .ad-slideshow      { height: 60px; }
    .ad-slide a,
    .ad-slide img      { height: 60px; }
}

.ad-banner-300 img {
    display: block;
    width: 100%;
    max-width: 300px;
    height: 250px;
    object-fit: cover;
    border-radius: 4px;
    margin: 0 auto;
}

/* ── Sidebar 300×250 Slideshow ── */
.ad-sidebar-slideshow {
    position: relative;
    width: 300px;
    max-width: 100%;
    height: 250px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 4px;
}
.ad-sidebar-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .8s ease;
    pointer-events: none;
}
.ad-sidebar-slide a { display: block; width: 100%; height: 100%; }
.ad-sidebar-slide img {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.ad-sidebar-slide.active { opacity: 1; pointer-events: auto; }
.ad-sidebar-slideshow.single .ad-sidebar-slide {
    position: relative;
    inset: auto;
    opacity: 1;
    pointer-events: auto;
}

.ad-label {
    font-size: .65rem;
    color: #adb5bd;
    text-transform: uppercase;
    letter-spacing: .05em;
    display: block;
    margin-bottom: 2px;
}

/* ── Sidebar Widgets ── */
.sidebar-widget {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.sidebar-widget-header {
    background: var(--color-primario);
    color: #fff;
    padding: .6rem 1rem;
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.sidebar-widget-body { padding: .75rem; }

.sidebar-categoria-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .4rem .25rem;
    border-bottom: 1px solid #f1f3f4;
    font-size: .88rem;
    color: var(--color-texto);
    transition: color .15s;
}

.sidebar-categoria-item:last-child { border-bottom: none; }
.sidebar-categoria-item:hover { color: var(--color-primario); }

.sidebar-categoria-item .count {
    background: #f1f3f4;
    border-radius: 20px;
    padding: 1px 8px;
    font-size: .75rem;
    font-weight: 600;
    color: var(--color-muted);
}

/* ── Single Article ── */
.article-header .categoria-badge {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 3px 10px;
    border-radius: 3px;
    color: #fff;
    display: inline-block;
}

.article-header h1 {
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 800;
    line-height: 1.25;
    margin: .6rem 0;
}

.article-bajada {
    font-size: 1.1rem;
    color: #4a4a6a;
    font-weight: 500;
    line-height: 1.5;
    border-left: 4px solid var(--color-primario);
    padding-left: 1rem;
    margin: 1rem 0 1.25rem;
}

.article-meta {
    font-size: .83rem;
    color: var(--color-muted);
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.article-meta i { color: var(--color-primario); }

.article-cover {
    width: 100%;
    border-radius: var(--border-radius);
    margin-bottom: 1.25rem;
}

.article-cover img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.article-cover figcaption {
    font-size: .8rem;
    color: var(--color-muted);
    margin-top: .35rem;
    text-align: center;
    font-style: italic;
}

/* Article body */
.article-body { font-size: 1rem; line-height: 1.75; color: #2d2d3d; }
.article-body h2 { font-size: 1.35rem; font-weight: 700; margin-top: 1.75rem; margin-bottom: .6rem; }
.article-body h3 { font-size: 1.15rem; font-weight: 600; margin-top: 1.4rem; margin-bottom: .5rem; }
.article-body p  { margin-bottom: 1.1rem; }
.article-body blockquote {
    border-left: 4px solid var(--color-primario);
    padding: .75rem 1.25rem;
    margin: 1.25rem 0;
    background: #f8f9fa;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-style: italic;
    color: #4a4a6a;
}
.article-body img { border-radius: var(--border-radius); margin: .5rem 0; }
.article-body table { font-size: .9rem; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }

/* YouTube embed */
.video-container { margin: 1.5rem 0; }
.video-container .ratio { border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--card-shadow); }

/* Audio player */
.audio-container {
    margin: 1.5rem 0;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 1rem;
}

.audio-container audio { width: 100%; }

/* Article tags */
.article-tags { margin: 1.5rem 0; }
.article-tags .tag-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #f1f3f4;
    color: #4a4a6a;
    border-radius: 20px;
    font-size: .8rem;
    margin: 3px 3px 3px 0;
    transition: background .15s, color .15s;
}
.article-tags .tag-badge:hover { background: var(--color-primario); color: #fff; }

/* Share buttons */
.share-buttons { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0; }
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: .85rem;
    font-weight: 600;
    color: #fff;
    transition: opacity .2s;
    text-decoration: none;
}
.share-btn:hover { opacity: .88; color: #fff; }
.share-btn-facebook  { background: #1877f2; }
.share-btn-twitter   { background: #000; }
.share-btn-linkedin  { background: #0a66c2; }
.share-btn-whatsapp  { background: #25d366; }

/* Comments section */
.comments-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e9ecef;
}

.comment-item {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: .75rem 1rem;
    margin-bottom: .75rem;
}

.comment-author { font-weight: 600; font-size: .9rem; }
.comment-date   { font-size: .75rem; color: var(--color-muted); }
.comment-body   { font-size: .92rem; margin-top: .35rem; }

/* ── Streaming ── */
.streaming-header {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.streaming-live-badge {
    background: #e63946;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .05em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ── Search Results ── */
.search-form-hero {
    background: linear-gradient(135deg, var(--color-primario), var(--color-primario-dark));
    padding: 2rem 0;
    margin-bottom: 2rem;
    color: #fff;
}

.search-form-hero .form-control {
    border: none;
    border-radius: 20px 0 0 20px;
    padding: .6rem 1.25rem;
    font-size: 1rem;
}

.search-form-hero .btn {
    border-radius: 0 20px 20px 0;
    background: rgba(255,255,255,.2);
    border: none;
    color: #fff;
    padding: .6rem 1.25rem;
}

/* ── Category Header ── */
.category-hero {
    background: #fff;
    border-bottom: 3px solid var(--color-primario);
    padding: 1.25rem 0;
    margin-bottom: 1.5rem;
}

.category-hero h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: .6rem;
}

/* ── Error Pages ── */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-page .error-code {
    font-size: 6rem;
    font-weight: 800;
    color: var(--color-primario);
    line-height: 1;
}

/* ── Footer ── */
.site-footer {
    background: #1a1a2e;
    color: rgba(255,255,255,.75);
    padding: 2.5rem 0 1rem;
    margin-top: 3rem;
}

.site-footer .footer-logo { color: #fff; font-size: 1.4rem; font-weight: 800; }
.site-footer .footer-logo span { color: var(--color-primario); }
.site-footer .footer-desc { font-size: .85rem; margin-top: .4rem; opacity: .7; }
.site-footer h6 { color: #fff; font-weight: 700; text-transform: uppercase; font-size: .8rem; letter-spacing: .04em; margin-bottom: .75rem; }

.site-footer a { color: rgba(255,255,255,.65); font-size: .88rem; display: block; margin-bottom: .35rem; transition: color .15s; }
.site-footer a:hover { color: #fff; }

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.75);
    font-size: 1rem;
    margin-right: 6px;
    transition: background .2s, color .2s;
    text-decoration: none;
}

.footer-social a:hover { background: var(--color-primario); color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    margin-top: 1.5rem;
    padding-top: 1rem;
    font-size: .8rem;
    opacity: .5;
}

/* ── Pagination ── */
.pagination .page-link {
    border-color: #dee2e6;
    color: var(--color-primario);
}

.pagination .page-item.active .page-link {
    background: var(--color-primario);
    border-color: var(--color-primario);
    color: #fff;
}

.pagination .page-link:hover {
    background: #f1f3f4;
    color: var(--color-primario);
}

/* ── Widget Boxes (sidebar home) ── */
.widget-box {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.widget-title {
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #fff;
    background: var(--color-primario);
    padding: .55rem 1rem;
    margin: 0;
}

.widget-box ol,
.widget-box ul {
    padding: .75rem 1rem .75rem 2.25rem;
    margin: 0;
}

.widget-box .d-flex.flex-wrap {
    padding: .75rem 1rem;
}

/* ── Home Hero ── */
.hero-main {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    display: block;
    height: 420px;          /* fixed — all heroes same height */
    background: #1a1a2e;
    box-shadow: var(--card-shadow);
    text-decoration: none;
}

.hero-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* crops to fill, no stretching */
    object-position: center top;
    opacity: .7;
    position: absolute;
    top: 0; left: 0;
    transition: opacity .3s;
}

.hero-main:hover img { opacity: .6; }

.hero-main .hero-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent 0%, rgba(0,0,0,.45) 30%, rgba(0,0,0,.92) 100%);
    padding: 2.5rem 1.5rem 1.5rem;
    color: #fff;
}

.hero-main .hero-badge {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 3px 10px;
    border-radius: 2px;
    margin-bottom: .6rem;
    color: #fff;
}

.hero-main .hero-title {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: .6rem;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-main .hero-bajada {
    font-size: .92rem;
    color: rgba(255,255,255,.82);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: .5rem;
}

.hero-main .hero-meta {
    font-size: .75rem;
    color: rgba(255,255,255,.6);
}

.hero-secondary {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    height: 100%;
}

.hero-secondary-card {
    display: flex;
    gap: .75rem;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    flex: 1;
    min-height: 0;
    text-decoration: none;
    transition: box-shadow .2s;
}

.hero-secondary-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.12); }

.hero-secondary-card .hs-img {
    width: 110px;
    flex-shrink: 0;
    object-fit: cover;
    background: #e9ecef;
}

.hero-secondary-card .hs-placeholder {
    width: 110px;
    flex-shrink: 0;
    background: linear-gradient(135deg,#e9ecef,#dee2e6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 1.5rem;
}

.hero-secondary-card .hs-body {
    padding: .75rem .75rem .75rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.hero-secondary-card .hs-cat {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .3rem;
}

.hero-secondary-card .hs-title {
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-texto);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: .3rem;
}

.hero-secondary-card .hs-meta {
    font-size: .72rem;
    color: var(--color-muted);
}

@media (max-width: 991.98px) {
    .hero-main { height: 300px; }
    .hero-main img { height: 100%; }
    .hero-secondary { flex-direction: row; flex-wrap: wrap; }
    .hero-secondary-card { flex: 1 1 calc(50% - .375rem); min-height: 120px; }
    .hero-secondary-card .hs-img,
    .hero-secondary-card .hs-placeholder { width: 90px; }
}

@media (max-width: 575.98px) {
    .hero-secondary-card { flex: 1 1 100%; }
}

/* ── Section Title ── */
.section-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--color-texto);
    margin: 0;
}

/* ── Category Sections (home) ── */
.cat-section {
    padding-top: .5rem;
    padding-bottom: 1rem;
    border-top: 1px solid #f0f0f0;
}

/* ── Small noticia card (horizontal list inside category sections) ── */
.noticia-card-small {
    align-items: flex-start;
    padding: .5rem 0;
    border-bottom: 1px solid #f5f5f5;
}

.noticia-card-small:last-child {
    border-bottom: none;
}

.noticia-card-small .noticia-link-small {
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.3;
}

.noticia-card-small .noticia-link-small:hover {
    color: var(--color-primario) !important;
}

/* ── Utilities ── */
.text-primario { color: var(--color-primario) !important; }
.bg-primario   { background: var(--color-primario) !important; }

/* ── Responsive ── */
@media (max-width: 767.98px) {
    .site-logo img   { max-height: 44px; max-width: 200px; }
    .site-logo-text  { font-size: 1.3rem; }

    .noticia-card-destacada { min-height: 220px; }
    .noticia-card-destacada .card-title { font-size: .95rem; }

    .article-header h1 { font-size: 1.35rem; }
    .article-bajada    { font-size: 1rem; }
    .article-body      { font-size: .95rem; }

    .ad-banner-970 img { height: 60px; }

    .share-btn { font-size: .78rem; padding: 5px 10px; }
}

@media (max-width: 575.98px) {
    .breaking-ticker .breaking-label { display: none; }
    .site-topbar { display: none; }
}

@media (min-width: 1200px) {
    .noticia-card-destacada { min-height: 380px; }
}
