
/* NOTICIAS F1 FANS */

.noticias-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 45px 0 70px;
    color: #fff;
}

.noticias-intro {
    text-align: center;
    margin-bottom: 40px;
}

.noticias-intro h1 {
    color: #e10600;
    font-size: 34px;
    margin-bottom: 15px;
}

.noticias-intro p {
    color: #ccc;
    font-size: 16px;
    line-height: 1.7;
}

/* FILTROS */

.noticias-filtros {
    background: #171717;
    border: 1px solid #303030;
    border-radius: 14px;
    padding: 25px;
    margin-bottom: 40px;
}

.noticias-filtros h2 {
    color: #e10600;
    font-size: 21px;
    margin-bottom: 20px;
}

.noticias-filtros form {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 20px;
}

.filtro-campo {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filtro-campo label {
    color: #fff;
    font-weight: bold;
}

.filtro-campo input {
    background: #252525;
    border: 1px solid #444;
    border-radius: 6px;
    color: #fff;
    padding: 11px;
}

/* GRID */

.noticias-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

/* TARJETAS */

.noticia-card {
    background: #171717;
    border: 1px solid #303030;
    border-radius: 14px;
    overflow: hidden;
    transition: transform .25s ease, border-color .25s ease;
}

.noticia-card:hover {
    transform: translateY(-5px);
    border-color: #e10600;
}

.noticia-imagen {
    height: 210px;
    background: #101010;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 2px solid #e10600;
    text-decoration: none;
}

.noticia-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.noticia-imagen span {
    color: #e10600;
    font-size: 40px;
    font-weight: bold;
}

.noticia-contenido {
    padding: 22px;
}

.noticia-fecha {
    color: #e10600;
    font-size: 13px;
    font-weight: bold;
}

.noticia-contenido h2 {
    font-size: 20px;
    margin: 10px 0;
}

.noticia-contenido h2 a {
    color: #fff;
    text-decoration: none;
}

.noticia-contenido h2 a:hover {
    color: #e10600;
}

.noticia-resumen {
    color: #bbb;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.noticia-boton {
    display: inline-block;
    background: #e10600;
    color: #fff;
    padding: 10px 17px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

.noticia-boton:hover {
    background: #b80000;
    color: #fff;
}

.sin-noticias {
    text-align: center;
    color: #ccc;
    background: #171717;
    padding: 30px;
    border-radius: 10px;
}

/* TABLET */

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

/* MÓVIL */

@media (max-width: 650px) {
    .noticias-container {
        width: 92%;
        padding-top: 30px;
    }

    .noticias-intro h1 {
        font-size: 27px;
    }

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

    .noticias-filtros form {
        align-items: stretch;
        flex-direction: column;
    }

    .filtro-campo input {
        width: 100%;
        box-sizing: border-box;
    }
}



/* =====================================
   BOTONES DE FILTROS
===================================== */

.noticias-filtros .boton-filtro {
    display: inline-block;
    background: #e10600;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 12px 18px;
    font-weight: bold;
    font-size: inherit;
    text-decoration: none;
    cursor: pointer;
    line-height: normal;
    box-sizing: border-box;
}

.noticias-filtros .boton-filtro:hover {
    background: #b80000;
    color: #ffffff;
}

/* Solo Limpiar filtros es un 5 % más pequeño */
.noticias-filtros .boton-limpiar {
    transform: scale(0.95);
    transform-origin: left center;
}
