/**
 * Módulo: Noticias Principales - Estilos
 * 
 * Estilos específicos del módulo de noticias en portada.
 * 
 * Ubicación: /modulos/portada/noticias-principales/noticias-principales.css
 */

/* ========================================
   CARDS DE NOTICIAS
   ======================================== */

.noticia-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.noticia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.noticia-imagen {
    background-size: cover;
    background-position: center;
    position: relative;
    aspect-ratio: 4 / 3;
}

/* Grid de noticias - 3 columnas iguales */
.row-noticias-grid .noticia-card {
    display: block;
    height: 100%;
}

.row-noticias-grid .noticia-imagen {
    aspect-ratio: 4 / 3;
}

.noticia-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 2rem 1.5rem 1.5rem;
}

.noticia-contenido {
    color: white;
}

.noticia-titulo {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.noticia-principal .noticia-titulo {
    font-size: 1.75rem;
}

.noticia-fecha {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .noticia-titulo {
        font-size: 1.1rem;
    }
    
    .noticia-overlay {
        padding: 1.5rem 1rem 1rem;
    }
}
