/* Contenedor principal */
.noticias-grid-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.titulo-noticias {
    font-size: clamp(1.5rem, 2vw, 2rem);
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

/* Grid responsivo */
.noticias-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Tarjeta de noticia */
.noticia-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.noticia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.noticia-card:focus-within {
    outline: 2px solid #0073aa;
}

/* Imagen */
.noticia-imagen {
    overflow: hidden;
    border-radius: 8px;
}

.noticia-imagen img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.noticia-card:hover .noticia-imagen img {
    transform: scale(1.05);
}

/* Título */
.noticia-titulo {
    font-size: 1.1rem;
    margin-top: 15px;
    color: #003366;
    font-weight: bold;
    line-height: 1.4;
}

/* Meta información */
.noticia-fecha {
    font-size: 0.9rem;
    color: #666;
    margin: 10px 0;
}

.noticia-extracto {
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.6;
    color: #444;
}

/* Botón leer más */
.leer-mas {
    display: inline-block;
    color: #0073aa;
    font-weight: bold;
    text-decoration: none;
    padding: 5px 0;
    position: relative;
}

.leer-mas:hover {
    color: #005177;
}

.leer-mas::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: currentColor;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.leer-mas:hover::after {
    transform: scaleX(1);
}

/* Paginación */
.paginacion-noticias {
    text-align: center;
    margin-top: 40px;
}

.paginacion-noticias .page-numbers {
    padding: 8px 12px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    text-decoration: none;
}

.paginacion-noticias .current {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

/* Media Queries */
@media screen and (max-width: 992px) {
    .noticias-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .noticias-grid {
        grid-template-columns: 1fr;
    }
    
    .noticias-grid-container {
        padding: 0 15px;
        margin: 20px auto;
    }
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .noticia-card,
    .noticia-imagen img,
    .leer-mas::after {
        transition: none;
    }
    
    .noticia-card:hover {
        transform: none;
    }
}