/* Noticias —  */

:root {
    --noticias-primary: #0d2054;
    --noticias-primary-dark: #081633;
    --noticias-secondary: #00a3e3;
    --noticias-bg-soft: #f5f7fb;
    --noticias-border: #e3e8f0;
    --noticias-text-muted: #5b6472;
    --noticias-radius: 16px;
    --noticias-radius-lg: 28px;
    --noticias-shadow-sm: 0 1px 3px rgba(13, 32, 84, 0.06), 0 8px 20px rgba(13, 32, 84, 0.06);
    --noticias-shadow-md: 0 8px 16px rgba(13, 32, 84, 0.1), 0 24px 48px rgba(13, 32, 84, 0.14);
}

/* Header de la sección */
.topArticles.accesos {
    height: auto;
    padding: 56px 24px 40px;
    background: var(--noticias-bg-soft);
    border-top: none;
    box-shadow: none;
}

.topArticles.accesos h1 {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--noticias-primary);
}

body.topArt .topArticles.accesos {
    top: 0;
}

@media only screen and (max-width: 768px) {
    .topArticles.accesos {
        padding: 96px 20px 32px;
    }

    .topArticles.accesos h1 {
        font-size: 1.5rem;
    }
}

.news-page {
    padding-top: 40px;
    padding-bottom: 96px;
}

.news-no-results {
    color: var(--noticias-text-muted);
}

/* Destacado — promo card oscura, mismo tratamiento que el CTA final de /empresas */
.news-featured {
    position: relative;
    overflow: hidden;
    border-radius: var(--noticias-radius-lg);
    background: linear-gradient(135deg, var(--noticias-primary) 0%, var(--noticias-primary-dark) 100%);
    box-shadow: var(--noticias-shadow-md);
}

.news-featured::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -10%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(0, 163, 227, 0.3) 0%, transparent 65%);
    pointer-events: none;
}

.news-featured__image,
.news-featured__content {
    position: relative;
    z-index: 1;
}

.news-featured h2 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.news-featured .news-tag {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.news-featured .news-meta.white span:not(.news-tag) {
    color: rgba(255, 255, 255, 0.7);
}

.news-featured .btn.btn-primary {
    align-self: flex-start;
    background: var(--noticias-secondary);
    border-color: var(--noticias-secondary);
    border-radius: 999px;
    font-weight: 600;
}

.news-featured .btn.btn-primary:hover {
    box-shadow: var(--noticias-shadow-md);
}

/* Grid de noticias */
.news-grid {
    gap: 24px;
}

.news-card .news-card__link {
    border: 1px solid var(--noticias-border);
    border-radius: var(--noticias-radius);
    box-shadow: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.news-card .news-card__link:hover {
    border-color: var(--noticias-secondary);
    box-shadow: var(--noticias-shadow-sm);
    transform: translateY(-4px);
}

.news-card__body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--noticias-primary);
    min-height: calc(1.35em * 2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-card__body p {
    color: var(--noticias-text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.news-card .btn.btn-primary {
    align-self: flex-start;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--noticias-secondary);
    border-color: var(--noticias-secondary);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Meta / tag */
.news-meta {
    color: var(--noticias-text-muted);
}

.news-tag {
    background: rgba(0, 163, 227, 0.1);
    color: var(--noticias-secondary);
    font-weight: 700;
}

/* Detalle de noticia */
.news-detail__content {
    border: 1px solid var(--noticias-border);
    border-radius: var(--noticias-radius-lg);
    box-shadow: none;
}

.news-detail__content h1 {
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--noticias-primary);
}

.news-detail__lead {
    color: var(--noticias-text-muted);
}

.news-detail__body {
    color: #333c4d;
}

.news-detail__body h2 {
    font-weight: 800;
    color: var(--noticias-primary);
}

.news-block--quote {
    border-left-color: var(--noticias-secondary);
    background: var(--noticias-bg-soft);
}

.news-list {
    background: var(--noticias-bg-soft);
}

.news-list--ordered {
    list-style: decimal;
    padding-left: 42px;
}

.news-list--ordered li {
    padding-left: 6px;
}

.news-sidebar__panel {
    border: 1px solid var(--noticias-border);
    border-radius: var(--noticias-radius);
    box-shadow: none;
}

.news-sidebar__panel h2 {
    font-weight: 800;
    color: var(--noticias-primary);
}


.news-sidebar__item {
    display: flex;
    align-items: start;
    border-bottom: 1px solid var(--noticias-border);
    padding-bottom: 12px ;
}
.news-sidebar__item:last-child {
    border-bottom: none;
}

.news-sidebar__item strong {
    color: var(--noticias-primary);
}

.news-sidebar__item p {
    color: var(--noticias-text-muted);
}
