/* =========================================================
   PAGINA DE NOTICIAS
========================================================= */

.noticias-page {
    background: #f6f7f9;
    padding: 45px 0 70px;
    min-height: 700px;
}


/* =========================================================
   CONTENEDOR
========================================================= */

.noticias-container {
    width: 92%;
    max-width: 1180px;
    margin: 0 auto;
}


/* =========================================================
   ENCABEZADO
========================================================= */

.noticias-header {
    background: #ffffff;
    border-radius: 6px;
    padding: 32px 38px;
    margin-bottom: 22px;
    border-left: 5px solid #d9aa00;
    box-shadow: 0 3px 15px rgba(0,0,0,.06);
}


.noticias-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #d19f00;
    letter-spacing: 1.2px;
    margin-bottom: 8px;
}


.noticias-header h1 {
    margin: 0 0 8px;
    color: #003b70;
    font-size: 38px;
    font-weight: 700;
}


.noticias-header p {
    margin: 0;
    color: #666;
    font-size: 15px;
    line-height: 1.7;
    max-width: 700px;
}


/* =========================================================
   CATEGORIAS
========================================================= */

.noticias-categorias {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}


.categoria {
    display: inline-block;
    background: #ffffff;
    color: #003b70;
    border: 1px solid #e1e4e8;
    padding: 9px 17px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .25s ease;
}


.categoria:hover,
.categoria.active {
    background: #003b70;
    border-color: #003b70;
    color: #ffffff;
    text-decoration: none;
}


/* =========================================================
   LAYOUT PRINCIPAL
========================================================= */

.noticias-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 28px;
    align-items: start;
}


/* =========================================================
   NOTICIA DESTACADA
========================================================= */

.noticia-destacada {
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,.06);
    margin-bottom: 28px;
}


.noticia-destacada-imagen {
    height: 390px;
    position: relative;
    overflow: hidden;
}


.noticia-destacada-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}


.noticia-destacada:hover
.noticia-destacada-imagen img {
    transform: scale(1.04);
}


.noticia-categoria {
    position: absolute;
    left: 20px;
    bottom: 20px;
    background: #d4a900;
    color: #ffffff;
    padding: 7px 13px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    border-radius: 3px;
}


.noticia-destacada-contenido {
    padding: 27px 30px 30px;
}


.noticia-fecha {
    color: #888;
    font-size: 12px;
    margin-bottom: 10px;
}


.noticia-fecha i {
    color: #d4a900;
    margin-right: 5px;
}


.noticia-destacada-contenido h2 {
    color: #003b70;
    font-size: 27px;
    line-height: 1.25;
    margin: 0 0 14px;
    font-weight: 700;
}


.noticia-destacada-contenido p {
    color: #555;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}


.btn-leer {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #003b70;
    color: #ffffff;
    padding: 10px 17px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .25s ease;
}


.btn-leer:hover {
    background: #d4a900;
    color: #ffffff;
    text-decoration: none;
}


/* =========================================================
   LISTA DE NOTICIAS
========================================================= */

.noticias-lista {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


.noticia-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,.05);
    transition: all .25s ease;
}


.noticia-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,.10);
}


.noticia-card-imagen {
    height: 220px;
    overflow: hidden;
}


.noticia-card-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}


.noticia-card:hover
.noticia-card-imagen img {
    transform: scale(1.05);
}


.noticia-card-contenido {
    padding: 23px 25px;
}


.noticia-small-categoria {
    display: block;
    color: #c49b00;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .8px;
    margin-bottom: 7px;
}


.noticia-card-contenido h3 {
    color: #003b70;
    font-size: 20px;
    line-height: 1.3;
    margin: 0 0 8px;
    font-weight: 700;
}


.noticia-small-fecha {
    color: #999;
    font-size: 11px;
    margin-bottom: 9px;
}


.noticia-small-fecha i {
    color: #d4a900;
    margin-right: 4px;
}


.noticia-card-contenido p {
    color: #666;
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 9px;
}


.noticia-card-contenido a {
    color: #003b70;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}


.noticia-card-contenido a:hover {
    color: #d4a900;
}


/* =========================================================
   SIDEBAR
========================================================= */

.noticias-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


.sidebar-bloque {
    background: #ffffff;
    padding: 23px;
    border-radius: 6px;
    box-shadow: 0 3px 15px rgba(0,0,0,.05);
}


.sidebar-bloque h3 {
    color: #003b70;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 17px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eeeeee;
    position: relative;
}


.sidebar-bloque h3:after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 45px;
    height: 2px;
    background: #d4a900;
}


/* =========================================================
   BUSCADOR
========================================================= */

.noticias-buscador {
    display: flex;
    width: 100%;
}


.noticias-buscador input {
    width: 100%;
    height: 42px;
    border: 1px solid #ddd;
    border-right: none;
    padding: 0 12px;
    font-size: 13px;
    outline: none;
}


.noticias-buscador input:focus {
    border-color: #003b70;
}


.noticias-buscador button {
    width: 45px;
    border: none;
    background: #003b70;
    color: #ffffff;
    cursor: pointer;
}


.noticias-buscador button:hover {
    background: #d4a900;
}


/* =========================================================
   CATEGORIAS SIDEBAR
========================================================= */

.sidebar-categorias {
    list-style: none;
    margin: 0;
    padding: 0;
}


.sidebar-categorias li {
    border-bottom: 1px solid #eeeeee;
}


.sidebar-categorias li:last-child {
    border-bottom: none;
}


.sidebar-categorias a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 0;
    color: #555;
    font-size: 13px;
    text-decoration: none;
}


.sidebar-categorias a:hover {
    color: #003b70;
}


.sidebar-categorias span {
    background: #f0f1f3;
    color: #777;
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 10px;
}


/* =========================================================
   NOTICIAS RECIENTES
========================================================= */

.noticia-reciente {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eeeeee;
}


.noticia-reciente:first-of-type {
    padding-top: 0;
}


.noticia-reciente:last-child {
    border-bottom: none;
    padding-bottom: 0;
}


.noticia-reciente img {
    width: 75px;
    height: 65px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 3px;
}


.noticia-reciente span {
    display: block;
    color: #c49b00;
    font-size: 9px;
    font-weight: 700;
    margin-bottom: 5px;
}


.noticia-reciente a {
    color: #003b70;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 600;
    text-decoration: none;
}


.noticia-reciente a:hover {
    color: #d4a900;
}


/* =========================================================
   AVISO
========================================================= */

.sidebar-aviso {
    background: #003b70;
    color: #ffffff;
    padding: 27px 23px;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}


.sidebar-aviso:after {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    border: 20px solid rgba(255,255,255,.05);
    border-radius: 50%;
    right: -35px;
    top: -35px;
}


.sidebar-aviso > i {
    font-size: 25px;
    color: #d9ae00;
    margin-bottom: 12px;
}


.sidebar-aviso h3 {
    color: #ffffff;
    font-size: 18px;
    margin: 0 0 10px;
    font-weight: 700;
}


.sidebar-aviso p {
    color: rgba(255,255,255,.85);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 17px;
}


.sidebar-aviso a {
    display: inline-block;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,.6);
    padding: 8px 13px;
    font-size: 12px;
    border-radius: 3px;
    text-decoration: none;
}


.sidebar-aviso a:hover {
    background: #d4a900;
    border-color: #d4a900;
    color: #ffffff;
}


/* =========================================================
   PAGINACION
========================================================= */

.noticias-paginacion {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 35px;
}


.pagina {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #ddd;
    color: #003b70;
    font-size: 13px;
    border-radius: 3px;
    text-decoration: none;
}


.pagina:hover,
.pagina.active {
    background: #003b70;
    color: #ffffff;
    border-color: #003b70;
}


/* =========================================================
   RESPONSIVE TABLET
========================================================= */

@media (max-width: 991px) {

    .noticias-layout {
        grid-template-columns: 1fr;
    }

    .noticias-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .noticia-destacada-imagen {
        height: 350px;
    }

}


/* =========================================================
   RESPONSIVE MOVIL
========================================================= */

@media (max-width: 767px) {

    .noticias-page {
        padding: 25px 0 45px;
    }

    .noticias-container {
        width: 94%;
    }

    .noticias-header {
        padding: 25px 22px;
    }

    .noticias-header h1 {
        font-size: 30px;
    }

    .noticias-header p {
        font-size: 13px;
    }

    .noticias-categorias {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 5px;
    }

    .categoria {
        white-space: nowrap;
    }

    .noticia-destacada-imagen {
        height: 250px;
    }

    .noticia-destacada-contenido {
        padding: 22px;
    }

    .noticia-destacada-contenido h2 {
        font-size: 22px;
    }

    .noticia-card {
        grid-template-columns: 1fr;
    }

    .noticia-card-imagen {
        height: 210px;
    }

    .noticias-sidebar {
        display: flex;
    }

}


/* =========================================================
   MOVIL PEQUEÑO
========================================================= */

@media (max-width: 480px) {

    .noticia-destacada-imagen {
        height: 210px;
    }

    .noticia-card-imagen {
        height: 180px;
    }

    .noticias-header h1 {
        font-size: 27px;
    }

}