.news-hero {
    padding: 80px 0 0;
    background: linear-gradient(150deg, var(--bg-navy-dark) 0%, #0c1b3a 100%);
    color: #fff;
}
.news-hero__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 0 26px;
    gap: 16px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.news-hero__left { flex: 1; min-width: 200px; }
.news-hero__right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.news-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent-amber);
    margin-bottom: 6px;
    font-family: var(--font-body);
}
.news-hero__eyebrow::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 2px;
    background: var(--accent-amber);
    border-radius: 2px;
}

.news-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
    line-height: 1.2;
}
.news-hero__subtitle {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    margin: 0;
    font-family: var(--font-body);
}

.news-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 50px;
    padding: 7px 16px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
    font-family: var(--font-body);
}
.news-pill__label { color: rgba(255,255,255,0.55); }
.news-pill__value {
    font-weight: 700;
    color: var(--accent-amber);
}

.news-tools-bar {
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.news-tools { margin: 0; }
.news-search {
    display: block;
    position: relative;
    max-width: 380px;
}
.news-search::before {
    content: '\f002';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.82rem;
    pointer-events: none;
}
.news-search input {
    width: 100%;
    padding: 9px 14px 9px 36px;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 8px;
    background: #f8fafc;
    font-size: 0.88rem;
    font-family: var(--font-body);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}
.news-search input:focus {
    border-color: var(--accent-electric);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
    width: 100%; 
}

.section { background: var(--bg-navy); }

.news-timeline {
    max-width: 860px;
    margin: 0 auto;
    padding: 36px 0 64px;
}

.news-item {
    display: flex;
    gap: 0;
    margin-bottom: 28px;
    align-items: stretch;
}

.news-item__rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 56px;
    flex-shrink: 0;
    padding-top: 6px;
    position: relative;
}
.news-item__rail::after {
    content: '';
    position: absolute;
    top: 22px;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    background: rgba(37,99,235,0.15);
}
.news-item:last-child .news-item__rail::after { display: none; }

.news-dot {
    width: 11px;
    height: 11px;
    background: var(--accent-electric);
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.2);
    flex-shrink: 0;
    margin-top: 4px;
}

.news-date {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.3;
    margin-top: 6px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
}

.news-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: row;
    overflow: hidden;
    flex: 1;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    margin-left: 16px;
}
.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.1);
}

.news-card__media {
    width: 200px;
    flex-shrink: 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-navy-dark), #0f2050);
    border: none;
    padding: 0;
    cursor: pointer;
    display: block;
    position: relative;
}
.news-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.news-card:hover .news-card__media img { transform: scale(1.04); }

.news-card__body {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}
.news-card__title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card__excerpt {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.news-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.05);
    margin-top: auto;
}

.ver-comunicado {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    background: var(--accent-electric);
    color: #fff;
    border: none;
    padding: 7px 16px;
    border-radius: 7px;
    font-weight: 600;
    font-size: 0.82rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}
.ver-comunicado:hover {
    background: #1d4ed8;
    transform: translateX(2px);
}
.ver-comunicado::after {
    content: '→';
    font-size: 0.9em;
}

.news-card__stamp {
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 500;
    font-family: var(--font-body);
}

.custom-news-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(4,13,33,0.88);
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.custom-news-modal.show { display: flex; }

.custom-news-modal-content {
    background: #fff;
    border-radius: 18px;
    max-width: 960px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
    animation: modalIn 0.3s ease;
}
@keyframes modalIn {
    from { transform: translateY(20px) scale(0.97); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-close-btn {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0,0,0,0.08);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s;
    line-height: 1;
}
.modal-close-btn:hover { background: rgba(0,0,0,0.15); }

.modal-img-container {
    width: 52%;
    background: var(--bg-navy-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.modal-img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.modal-pdf-container {
    width: 52%;
    background: #e2e8f0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.modal-pdf-pages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}
.modal-pdf-page-canvas {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.pdf-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    font-size: 2rem;
    color: var(--accent-electric);
    min-height: 120px;
}
.pdf-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    gap: 8px;
    padding: 20px;
    min-height: 120px;
}
.pdf-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: var(--accent-electric);
    color: #fff;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 0;
    flex-shrink: 0;
    transition: background 0.2s;
}
.pdf-download-btn:hover { background: #1d4ed8; }

.modal-text-container {
    width: 48%;
    padding: 36px 28px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.modal-text-container h2 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin: 0 0 18px;
    font-size: 1.3rem;
    line-height: 1.25;
    padding-right: 28px;
}
.modal-text-container .modal-desc {
    font-family: var(--font-body);
    font-size: 0.93rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.news-card__media--pdf {
    width: 200px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: filter 0.25s;
}
.news-card__media--pdf:hover { filter: brightness(1.1); }

.news-pdf-canvas-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.news-pdf-canvas {
    width: 100%;
    height: auto;
    display: block;
}
.news-card__media--pdf.pdf-rendered .news-pdf-canvas-wrap { opacity: 1; }
.news-card__media--pdf.pdf-rendered .news-pdf-fallback  { opacity: 0; pointer-events: none; }

.news-pdf-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #fff;
    background: #ef4444;
    padding: 2px 7px;
    border-radius: 4px;
    z-index: 2;
    transition: opacity 0.3s;
}

.news-pdf-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s;
    z-index: 1;
}
.news-pdf-fallback .fa-file-pdf {
    font-size: 2.8rem;
    color: #ef4444;
    filter: drop-shadow(0 2px 8px rgba(239,68,68,0.4));
}

@media (max-width: 768px) {
    .news-hero { padding-top: 70px; }
    .news-hero__inner { padding: 20px 0 18px; }
    .news-item { flex-direction: column; gap: 0; }
    .news-item__rail {
        flex-direction: row;
        width: 100%;
        align-items: center;
        padding: 0 0 10px;
        gap: 10px;
    }
    .news-item__rail::after { display: none; }
    .news-date { writing-mode: horizontal-tb; transform: none; }
    .news-card { flex-direction: column; margin-left: 0; }
    .news-card__media,
    .news-card__media--pdf {
        width: 100%;
        height: 160px;
        flex-shrink: 0;
    }
    .news-card__body { padding: 16px; }
    .custom-news-modal-content { flex-direction: column; }
    .modal-img-container,
    .modal-pdf-container,
    .modal-text-container { width: 100%; }
    .modal-img-container { max-height: 45vw; min-height: 160px; }
    .modal-pdf-container { min-height: 55vw; }
    .modal-text-container { padding: 20px; }
}
@media (max-width: 480px) {
    .news-timeline { padding: 24px 0 48px; }
    .news-card__title { font-size: 0.97rem; }
}
