/* NOTICIAS PAGE */
:root{
    --rojo:#c1121f;
    --rojo-hover:#a40f1a;
    --amarillo:#ffd166;
    --oscuro:#151515;
    --gris:#f6f7fb;
    --texto:#555;
    --blanco:#fff;
}

/* SECCIONES */
.noticias-section{
    padding:100px 0;
}

.fondo-gris{
    background:var(--gris);
}

/* HERO */
.noticias-hero{
    position:relative;
    height:72vh;
    min-height:600px;
    display:flex;
    align-items:center;
    background-image:url("../../img/noticias/portada.webp");
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
}

/* OVERLAY */
.noticias-hero .overlay{
    position:absolute;
    inset:0;
    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.82),
            rgba(0,0,0,.55),
            rgba(0,0,0,.25)
        );
}

/* CONTENIDO HERO */
.noticias-hero .hero-content{
    position:relative;
    z-index:5;
    max-width:700px;
}

/* BADGE */
.noticias-hero .hero-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    width:fit-content;
    background:var(--rojo);
    color:var(--amarillo) !important;
    padding:10px 22px;
    border-radius:50px;
    font-weight:700;
    margin-bottom:30px;
    line-height:1;
}

/* ICONO DEL BADGE */
.noticias-hero .hero-badge i,
.noticias-hero .hero-badge svg,
.noticias-hero .hero-badge path{
    color:var(--amarillo) !important;
    fill:var(--amarillo) !important;
    stroke:var(--amarillo) !important;
    opacity:1;
}

/* TITULO HERO */
.noticias-hero h1{
    font-size:clamp(3rem,6vw,5rem);
    font-weight:800;
    color:var(--blanco);
    line-height:1.05;
    margin:0 0 30px;
}

/* DESCRIPCIÓN HERO */
.noticias-hero p{
    color:#ededed;
    line-height:1.9;
    font-size:1.15rem;
    margin:0;
}

/* HEADER ÚLTIMAS NOTICIAS */
.noticias-header{
    text-align:center;
    max-width:750px;
    margin:0 auto 60px;
}

/* SUBTITULO */
.noticias-subtitulo{
    display:inline-block;
    color:var(--rojo);
    font-size:.8rem;
    font-weight:800;
    letter-spacing:2px;
    margin-bottom:15px;
}

/* TITULO */
.noticias-header h2{
    font-size:clamp(2.2rem,4vw,3rem);
    font-weight:800;
    color:var(--oscuro);
    margin:0 0 18px;
}

/* PALABRA ROJA */
.noticias-header h2 span{
    color:var(--rojo);
}

/* DESCRIPCIÓN */
.noticias-header p{
    color:var(--texto);
    line-height:1.8;
    font-size:1.05rem;
    margin:0;
}

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

/* CARD NOTICIA */
.noticia-card{
    background:var(--blanco);
    border-radius:22px;
    overflow:hidden;
    box-shadow:0 12px 35px rgba(0,0,0,.08);
    transition:.35s;
    display:flex;
    flex-direction:column;
    height:100%;
}

/* HOVER */
.noticia-card:hover{
    transform:translateY(-8px);
    box-shadow:0 22px 45px rgba(0,0,0,.14);
}

/* IMAGEN */
.noticia-imagen{
    width:100%;
    height:240px;
    overflow:hidden;
    background:#ddd;
}

/* IMAGEN */
.noticia-imagen img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:.5s;
}

/* ZOOM IMAGEN */
.noticia-card:hover
.noticia-imagen img{
    transform:scale(1.08);
}

/* IMAGEN DEFAULT */
.noticia-imagen-default{
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,var(--rojo),#ef233c);
}

.noticia-imagen-default i{
    font-size:4rem;
    color:var(--blanco);
    opacity:.9;
}

/* CONTENIDO CARD */
.noticia-contenido{
    padding:28px;
    display:flex;
    flex-direction:column;
    flex:1;
}

/* CATEGORIA */
.noticia-categoria{
    display:inline-flex;
    align-items:center;
    width:fit-content;
    background:#fde8ea;
    color:var(--rojo);
    padding:7px 14px;
    border-radius:50px;
    font-size:.8rem;
    font-weight:700;
    margin-bottom:18px;
}


/* TITULO NOTICIA */
.noticia-contenido h3{
    font-size:1.4rem;
    font-weight:700;
    line-height:1.4;
    margin: 0 0 15px;
}

/* LINK TITULO */
.noticia-contenido h3 a{
    text-decoration:none;
    color:var(--oscuro);
    transition:.3s;
}

.noticia-contenido h3 a:hover{
    color:var(--rojo);
}

/* RESUMEN */
.noticia-resumen{
    color:var(--texto);
    line-height:1.75;
    margin: 0 0 25px;
}


/* FOOTER CARD */

.noticia-footer{
    margin-top:auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    padding-top:20px;
    border-top:1px solid #eeeeee;
}

/* FECHA */
.fecha-noticia{
    color:#888;
    font-size:.85rem;
    display:flex;
    align-items:center;
    gap:7px;
}

.fecha-noticia i{
    color:var(--rojo);
}

/* BOTON LEER MÁS */
.leer-noticia{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    background:var(--rojo);
    color:var(--blanco);
    text-decoration:none;
    padding: 10px 18px;
    border-radius:30px;
    font-size:.85rem;
    font-weight:600;
    white-space:nowrap;
    transition:.35s;
}

/* HOVER */
.leer-noticia:hover{
    background:var(--rojo-hover);
    transform:translateY(-3px);
}

/* ICONO */
.leer-noticia i{
    transition:.3s;
}

.leer-noticia:hover i{
    transform:translateX(4px);
}

/* SIN NOTICIAS */
.sin-noticias{
    grid-column:1 / -1;
    background:var(--blanco);
    padding:70px 30px;
    border-radius:25px;
    text-align:center;
    box-shadow: 0 15px 40px rgba(0,0,0,.07);
}

/* ICONO */
.sin-noticias-icono{
    width:90px;
    height:90px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:0 auto 25px;
    background:#fde8ea;
    color:var(--rojo);
    font-size:2.5rem;
}

/* TITULO */
.sin-noticias h2{
    font-size:1.7rem;
    font-weight:800;
    margin-bottom:12px;
    color:var(--oscuro);
}

/* TEXTO */
.sin-noticias p{
    color:var(--texto);
    margin:0;
}

/* RESPONSIVE */

/* TABLET */
@media (max-width:1000px){
    .noticias-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

/* MOBILE */
@media (max-width:700px){
    /* HERO */
    .noticias-hero{
        min-height:520px;
        height:auto;
        padding: 120px 0 80px;
    }

    .noticias-hero .hero-content{
        text-align:center;
        margin:auto;
    }

    .noticias-hero p{
        margin:auto;
    }

    .noticias-hero .hero-badge{
        margin: 0 auto 25px;
    }

    /* SECCIÓN */
    .noticias-section{
        padding: 70px 0;
    }

    /* HEADER */
    .noticias-header{
        margin-bottom:45px;
    }

    /* GRID */
    .noticias-grid{
        grid-template-columns:1fr;
    }
}

/* MOBILE PEQUEÑO */
@media (max-width:480px)
{
    .noticias-hero h1{
        font-size:2.7rem;
    }

    .noticia-contenido{
        padding:22px;
    }

    .noticia-footer{
        flex-direction:column;
        align-items:flex-start;
    }

    .leer-noticia{
        width:100%;
    }

    .sin-noticias{
        padding:50px 20px;
    }

}