/* ==========================================================================
   MÓDULO: NOTICIAS EN PORTADA (noticias-home.css)
   ========================================================================== */
.section-noticias-home {
    padding: 80px 4vw;
    background-color: #f9f9f9;
}

.noticias-grid-home {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0;
}

/* Tarjeta UX Semántica */
.noticia-card-home {
    background-color: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
}

.noticia-card-home:hover,
.noticia-card-home:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

/* Imagen y Etiqueta */
.noticia-img-home {
    position: relative;
    height: 220px;
    overflow: hidden;
    background-color: #111111;
}

.noticia-img-home img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.noticia-card-home:hover .noticia-img-home img {
    transform: scale(1.05);
}

.noticia-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--color-red, #e3001b);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 2px;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Área de Texto y Truncamiento */
.noticia-content-home {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.noticia-fecha-home {
    font-size: 0.75rem;
    color: #888888;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.noticia-content-home h3 {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.4;
    margin: 0 0 15px 0;
}

.noticia-content-home h3 a {
    color: #111111;
    text-decoration: none;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.noticia-content-home h3 a:hover,
.noticia-content-home h3 a:focus {
    color: var(--color-red, #e3001b);
    outline: none;
}

.noticia-excerpt-home {
    font-size: 0.95rem;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer y Botones */
.noticia-card-footer {
    margin-top: auto;
    border-top: 1px solid #f1f1f1;
    padding-top: 15px;
}

/* Modificación de color y hover para el CTA */
.btn-leer-mas {
    font-size: 0.85rem;
    font-weight: 800;
    color: #111111; /* Negro base */
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.btn-leer-mas:hover,
.btn-leer-mas:focus {
    color: var(--color-red, #e3001b); /* Transición a rojo */
    outline: none;
}

.btn-outline-red {
    display: inline-block;
    border: 2px solid var(--color-red, #e3001b);
    background: transparent;
    color: var(--color-red, #e3001b);
    font-weight: 800;
    padding: 12px 30px;
    border-radius: 2px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-outline-red:hover,
.btn-outline-red:focus {
    background: var(--color-red, #e3001b);
    color: #ffffff;
    outline: none;
}

/* ==========================================================================
   ADAPTACIÓN RESPONSIVA
   ========================================================================== */
@media (max-width: 1024px) {
    .noticias-grid-home { 
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 768px) {
    .section-noticias-home { 
        padding: 50px 5vw; 
    }
    .noticias-grid-home { 
        grid-template-columns: 1fr; 
    }
    .noticia-img-home {
        height: 200px;
    }
}