/*=============================================
    MÓDULO DE NOTICIAS - Diseño WordPress
    Basado en Elementor - Packaging and Color
=============================================*/

:root {
    --noticias-dark-bg: #1a2e3f;
    --noticias-light-bg: #f8f9fa;
    --noticias-text-dark: #333333;
    --noticias-text-light: #ffffff;
    --noticias-accent: #046bd2;
    --noticias-accent-hover: #045cb4;
}

.noticias-section {
    font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    width: 100%;
    overflow: hidden;
}

/* ========================================
   HERO SECTION - Fondo con imagen de noticias
   ======================================== */
.noticias-hero {
    background-image: url('/public/images/noticias/noticias-hero-bg.webp');
    background-size: cover;
   
    background-repeat: no-repeat;
    min-height: 600px;
    display: flex;

    justify-content: center;
    position: relative;
}



.noticias-hero .hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 20px;
    width: 100%;
}

.noticias-hero .hero-title {
    color: var(--noticias-text-light);
    font-size: 48px;
    font-weight: 400;
    line-height: 1.3;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease;
}

.noticias-hero .hero-title strong {
    font-weight: 700;
    color: #f1c40f; /* Amarillo para destacar */
}

/* ========================================
   NOTICIAS GRID SECTION
   ======================================== */
.noticias-grid {
    padding: 80px 0;
    background-color: #ffffff;
}

.noticia-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.noticia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.noticia-image-wrapper {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.noticia-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.noticia-card:hover .noticia-image {
    transform: scale(1.05);
}

.noticia-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.noticia-title {
    color: var(--noticias-text-dark);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 15px;
}

.noticia-excerpt {
    color: #666666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.noticia-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--noticias-accent);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.3s ease;
    align-self: flex-start;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
}

.noticia-read-more:hover {
    color: var(--noticias-accent-hover);
    border-bottom-color: var(--noticias-accent-hover);
}

.noticia-read-more i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.noticia-read-more:hover i {
    transform: translateX(5px);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1200px) {
    .noticias-hero .hero-title {
        font-size: 42px;
    }
    
    .noticia-title {
        font-size: 22px;
    }
}

@media (max-width: 991.98px) {
    .noticias-hero .hero-title {
        font-size: 36px;
    }
    
    .noticia-image-wrapper {
        height: 250px;
    }
    
    .noticia-content {
        padding: 25px;
    }
    
    .noticia-title {
        font-size: 20px;
    }
}

@media (max-width: 767.98px) {
    .noticias-hero .hero-title {
        font-size: 30px;
    }
    
    .noticia-image-wrapper {
        height: 220px;
    }
    
    .noticia-content {
        padding: 20px;
    }
    
    .noticia-title {
        font-size: 18px;
    }
}

@media (max-width: 575.98px) {
    .noticias-hero {
        min-height: 300px;
    }
    
    .noticias-hero .hero-title {
        font-size: 26px;
    }
    
    .noticia-image-wrapper {
        height: 200px;
    }
    
    .noticia-title {
        font-size: 18px;
    }
    
    .noticia-excerpt {
        font-size: 14px;
    }
}

/* ========================================
   ANIMACIONES
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-fadeIn {
    animation: fadeIn 0.8s ease forwards;
}