/**
 * Módulo: Noticias - Plantilla Villa Totoral
 * 
 * Estilos personalizados del módulo de noticias para Villa Totoral
 * Basado en el diseño legacy con 3 columnas
 * 
 * Ubicación: /plantillas/villatotoral/css/modulo-noticias.css
 */

/* ========================================
   SECCIÓN NOTICIAS - VILLA TOTORAL
   ======================================== */

.seccion-noticias,
.container:has(.row-noticias-grid) {
    padding: 4rem 0;
    background-color: #f5f7fa;
}

/* Asegurar que el contenedor padre tenga fondo gris */
body {
    background-color: #f5f7fa;
}

/* Título de la sección */
.titulo-seccion-noticias,
.subtitulo-home {
    text-align: center;
    margin-bottom: 3rem;
}

.titulo-seccion-noticias h2,
.subtitulo-home .subtitulo {
    font-size: 3.5rem;
    font-weight: 400;
    color: var(--negro);
    margin-bottom: 1rem;
}

/* Ocultar icono de noticias del módulo base */
.subtitulo-home .subtitulo i {
    display: none !important;
}

/* Centrar el encabezado */
.subtitulo-home {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

/* Flecha decorativa SVG */
.flecha-decorativa {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

.flecha-svg {
    width: 2.5rem;
    height: 2.5rem;
    stroke: #c0c0c0;
    margin: 0 auto;
    display: block;
}

/* Grid de noticias - 3 columnas */
.noticias-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Tarjeta de noticia - SOBRESCRIBIR MÓDULO BASE */
.noticia,
.noticia-card {
    background-color: #fff !important;
    border-radius: 1.2rem !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
    padding: 0 !important;
    margin: 0.5rem !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    display: block !important;
    text-decoration: none !important;
    color: inherit !important;
}

.noticia:hover,
.noticia-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-3px) !important;
}

.noticia a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Imagen de la noticia - SOBRESCRIBIR MÓDULO BASE */
.noticia img,
a .noticia img,
.noticia-imagen {
    width: 100% !important;
    height: auto !important;
    border-radius: 1.2rem 1.2rem 0 0 !important;
    margin-bottom: 0 !important;
    transition: transform 0.3s ease !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    aspect-ratio: 16 / 9 !important;
    position: relative !important;
}

/* Eliminar overlay oscuro del módulo base */
.noticia-overlay {
    position: static !important;
    background: transparent !important;
    padding: 1.5rem !important;
}

.noticia-contenido {
    color: inherit !important;
}

/* Descripción de la noticia - SOBRESCRIBIR MÓDULO BASE */
.descripcion-noticia,
.noticia-contenido {
    padding: 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 12rem !important;
    justify-content: space-between !important;
    background: #fff !important;
}

/* Título de la noticia - SOBRESCRIBIR MÓDULO BASE */
.titulo_novedad,
.noticia-titulo {
    color: #1a365d !important;
    font-size: 1.6rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin-bottom: 1rem !important;
}

/* Fecha de la noticia - SOBRESCRIBIR MÓDULO BASE */
.fecha_noticia,
.noticia-fecha {
    color: var(--grisoscuro) !important;
    font-size: 1.3rem !important;
    font-weight: 400 !important;
    opacity: 1 !important;
}

/* Botón "Leer más" - OCULTO en legacy */
.boton_leer_noticia,
.news-excerpt,
.news-excerpt-small,
.read-more {
    display: none !important;
}

/* Contenedor del botón "Ver todas las noticias" */
.btn-ver-noticias-container {
    text-align: center;
    margin-top: 2rem;
}

/* Botón "Ver todas las noticias" - SOBRESCRIBIR MÓDULO BASE */
.btn-ver-noticias,
.btn-secundario,
.btn-secundario--primary {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.8rem !important;
    padding: 1rem 2.5rem !important;
    border: 2px solid var(--primario) !important;
    border-radius: 3rem !important;
    color: var(--primario) !important;
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    background: transparent !important;
    transition: all 0.3s ease !important;
    margin-top: 1rem !important;
}

.btn-ver-noticias:hover,
.btn-secundario:hover,
.btn-secundario--primary:hover {
    background-color: var(--primario) !important;
    color: var(--blanco) !important;
}

.btn-ver-noticias i,
.btn-secundario i {
    font-size: 1.4rem !important;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 992px) {
    .noticias-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .titulo-seccion-noticias h2 {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .seccion-noticias {
        padding: 3rem 0;
    }

    .noticias-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .titulo-seccion-noticias h2 {
        font-size: 2rem;
    }

    .titulo_novedad {
        font-size: 1.6rem;
    }

    .fecha_noticia {
        font-size: 1.3rem;
    }

    .boton_leer_noticia {
        font-size: 1.5rem;
    }

    .btn-ver-noticias {
        padding: 0.9rem 2rem;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .titulo-seccion-noticias h2 {
        font-size: 1.8rem;
    }

    .btn-ver-noticias {
        width: 100%;
        justify-content: center;
    }
}
