/* ============================================
   SECCIÓN DE NOTICIAS - ESTILO PREMIUM
   ============================================ */

.news-section {
    text-align: left;
    width: 80%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    color: #1a1a1a;
    /* PADDING-TOP grande para compensar navbar fixed */
    /* Ajusta 180px según la altura real de tu navbar */
    padding: 180px 20px 60px 20px;
}

.news-section h2 {
    font-size: 38px;
    font-weight: 800;
    /* ESPACIO PREMIUM entre título y contenido */
    margin-bottom: 60px;
    margin-top: 2px;
    position: relative;
    color: #1a1a1a;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.news-section h2::after {
    content: "";
    width: 90px;
    height: 4px;
    background: #c40000;
    position: absolute;
    left: 0;
    bottom: -20px;
    border-radius: 2px;
}

/* BLOQUE DE NOTICIA */
.news-item {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    margin-bottom: 70px;
    padding-bottom: 50px;
    border-bottom: 1px solid #e8e8e8;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    align-items: start;
}

.news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.4s ease;
    display: block;
}

.news-item:hover img {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    transform: scale(1.02);
}

.news-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;  /* ← CORREGIDO: era "left" que no es válido */
    width: 100%;
}

.news-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    color: #c40000;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding: 4px 0;
}

/* FECHA arriba del título */
.news-date {
    font-size: 13px;
    font-weight: 600;
    color: #777;
    margin-bottom: 10px;
    display: block;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.news-content h3 {
    font-size: 30px;
    margin: 0 0 16px 0;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.news-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 10px;
}

.news-read {
    margin-top: 24px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    color: #c40000;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

.news-read::after {
    content: "→";
    transition: transform 0.3s ease;
    font-size: 18px;
}

.news-read:hover {
    color: #900000;
    opacity: 1;
    border-bottom-color: #c40000;
}

.news-read:hover::after {
    transform: translateX(6px);
}


/* ============================================
   MODO OSCURO (Dark Mode) - AUTOMÁTICO
   ============================================ */
@media (prefers-color-scheme: dark) {

    .news-section,
    .news-section h2,
    .news-content h3 {
        color: #f0f0f0;
    }

    .news-content p {
        color: #cccccc;
    }

    .news-date {
        color: #aaaaaa;
    }

    .news-item {
        border-bottom-color: #333;
    }

    .news-item img {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    }
}


/* ============================================
   RESPONSIVE - TABLETS (1024px)
   ============================================ */
@media (max-width: 1024px) {
    .news-section {
        width: 85%;
        /* MANTENEMOS padding-top, NUNCA margin-top */
        padding: 160px 20px 50px 20px;
    }

    .news-section h2 {
        font-size: 34px;
        margin-bottom: 50px;
    }

    .news-item {
        gap: 35px;
        margin-bottom: 55px;
        padding-bottom: 45px;
    }

    .news-item img {
        height: 260px;
    }

    .news-content h3 {
        font-size: 26px;
    }
}


/* ============================================
   RESPONSIVE - CELULARES GRANDES (768px)
   ============================================ */
@media (max-width: 768px) {
    .news-section {
        width: 90%;
        /* padding-top ajustado para navbar en móvil */
        padding: 140px 16px 40px 16px;
    }

    .news-section h2 {
        font-size: 30px;
        margin-bottom: 45px;
    }

    .news-section h2::after {
        width: 70px;
        height: 3px;
        bottom: -16px;
    }

    .news-item {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 50px;
        padding-bottom: 40px;
    }

    .news-item img {
        height: 240px;
        border-radius: 10px;
    }

    .news-content h3 {
        font-size: 24px;
        margin: 0 0 12px 0;
    }

    .news-category {
        font-size: 10px;
        margin-bottom: 10px;
        letter-spacing: 1.5px;
    }

    .news-date {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .news-content p {
        font-size: 15px;
        line-height: 1.7;
    }

    .news-read {
        font-size: 14px;
        margin-top: 20px;
    }
}


/* ============================================
   RESPONSIVE - CELULARES STANDARD (480px)
   ============================================ */
@media (max-width: 480px) {
    .news-section {
        width: 92%;
        padding: 120px 12px 30px 12px;
    }

    .news-section h2 {
        font-size: 26px;
        margin-bottom: 40px;
    }

    .news-section h2::after {
        width: 60px;
        height: 3px;
        bottom: -14px;
    }

    .news-item {
        gap: 20px;
        margin-bottom: 40px;
        padding-bottom: 35px;
    }

    .news-item img {
        height: 210px;
        border-radius: 8px;
    }

    .news-content h3 {
        font-size: 22px;
        line-height: 1.25;
    }

    .news-category {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .news-date {
        font-size: 11px;
    }

    .news-content p {
        font-size: 14px;
        line-height: 1.65;
    }

    .news-read {
        font-size: 13px;
        margin-top: 16px;
    }
}


/* ============================================
   RESPONSIVE - CELULARES PEQUEÑOS (375px)
   ============================================ */
@media (max-width: 375px) {
    .news-section {
        width: 94%;
        padding: 110px 10px 25px 10px;
    }

    .news-section h2 {
        font-size: 24px;
        margin-bottom: 35px;
    }

    .news-item {
        gap: 16px;
        margin-bottom: 35px;
        padding-bottom: 30px;
    }

    .news-item img {
        height: 190px;
    }

    .news-content h3 {
        font-size: 20px;
    }

    .news-category {
        font-size: 8.5px;
    }

    .news-date {
        font-size: 10.5px;
    }

    .news-content p {
        font-size: 13.5px;
    }

    .news-read {
        font-size: 12.5px;
    }
}


/* ============================================
   RESPONSIVE - CELULARES MUY PEQUEÑOS (320px)
   ============================================ */
@media (max-width: 320px) {
    .news-section {
        width: 96%;
        padding: 100px 8px 20px 8px;
    }

    .news-section h2 {
        font-size: 22px;
        margin-bottom: 30px;
    }

    .news-item img {
        height: 170px;
    }

    .news-content h3 {
        font-size: 19px;
    }

    .news-content p {
        font-size: 13px;
    }
}


/* ============================================
   RESPONSIVE - ORIENTACIÓN HORIZONTAL
   ============================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .news-section {
        padding: 100px 20px 30px 20px;
    }

    .news-item {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .news-item img {
        height: 160px;
    }

    .news-content h3 {
        font-size: 22px;
    }
}