@import "variables.css";

@font-face {
    font-family: 'Roboto';
    src: url('/font/Roboto-Light.ttf') format('truetype');
}

@font-face {
    font-family: 'Poppins';
    src: url('/font/Poppins-Regular.ttf') format('truetype');
}

.background-color-azul {
    background: var(--color-primario);
}

.background-color-azul-claro {
    background: var(--color-secundario-footer);
}

.background-gris-claro{
    background: var(--color-footer-claro);
}


.background-color-azul-claro-denuncia {
    background: #b8d5eb;
}

.background-color-gris {
    background: #A9A89F;
}

.background-color-verde-ligero {
    background: var(--verde-noticias);
}

.background-color-verde-ligero-2 {
    background: #dae7e1;
}

.background-color-azul-ligero {
    background: var(--color-secundario-footer);
}

.background-color-verde {
    background: #007F6E;
}

.background-color-rojo {
    background: #EA0029;
}

.background-color-blanco {
    background: white;
}

.background-title-azul-liguero {
    background-color: #d4eaf4;
}

.sombra-leve {
    background-color: rgba(252, 252, 252, 0.59);
}

.color-white {
    color: white !important;
}

.bold {
    font-weight: bolder;
}

.borde-abajo {
    border-bottom: 1px solid var(--color-primario);;
}

.borde-arriba {
    border-top: 1px solid var(--color-primario);;
}

.borde-izquierdo {
    border-left: 1px solid var(--color-primario);;
}

.borde-derecho {
    border-right: 1px solid var(--color-primario);;
}

.borde-abajo2x {
    border-bottom: 2px solid var(--color-primario);;
}


/*.carucel-detras {*/
/*    position: relative;*/
/*    background-repeat: no-repeat !important;*/
/*    background-size: cover;*/
/*    width: 100%;*/
/*    height: 800px;*/
/*    z-index: -1;*/
/*    !*border: solid red 2px;*!*/
/*    margin: 0px !important;*/
/*    top: -200px;*/
/*}*/

/*.carousel-container {*/
/*    position: relative;*/
/*}*/

.carucel-detras {
    position: relative;
    background-repeat: no-repeat !important;
    background-size: cover;
    /*height: 72vh; !* Ajusta la altura según tus preferencias, en este caso, el 50% del alto del viewport *!*/
    width: 100%;
    /* z-index: -1; */
    margin: 0 !important;
    /* Ajusta la posición vertical según tus necesidades, en este caso, desplazada hacia arriba un 10% del alto del viewport */
    top: 1vh;
}

.align-items-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.espacio-l {
    padding: 0.5rem 1rem;
}

.margen-blanco-izq {
    border-left: 2px solid var(--color-primario);;
    height: 15px;
}

.margen-blanco-abajo {
    border-bottom: 2px solid var(--color-primario);;
    height: 15px;
}

.margen-azul-abajo {
    border-bottom: 2px solid var(--color-primario);;
}


.centrar-vertical {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.input-buscar {
    text-align: center;
    color: var(--color-primario) !important;
    background-color: transparent;
    width: 220%;
    height: 100%;
}

#input-buscar:focus {
    color: #212529;
    background-color: transparent !important;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, .25);
}

#input-buscar {
    border-left: none;
    border-top: none;
    border-right: none;
}

#input-buscar::placeholder {
    color: var(--color-primario);;
}

#cosmos-adds {
    /*height: 223px;*/
}

/*
*/
.hover-rojo:hover {
    background: #EA0029;
    color: white !important;
    border: none;
}

.hover-rojo:hover a {
    background: #EA0029;
    color: white !important;
}

.hover-verde:hover {
    background: #007F6E;
    color: white !important;
    border: none;
}

.hover-verde:hover a {
    background: #007F6E;
    color: white !important;
}

.back-color-gris-fuerte {
    background: #A9A89F;
}

/*Lo Destacado */
.division-color-gris-blanco {
    background: linear-gradient(to right, #A9A89F 25%, #ffffff 25%);
    margin-top: 3em !important;
}

/*Noticias*/
.division-color-verde-blanco {
    background: linear-gradient(to right, var(--verde-noticias) 25%, #ffffff 25%);
}

/*Acciones*/
.division-color-azul-blanco {
    background: linear-gradient(to right, var(--color-secundario-footer) 25%, #ffffff 25%);
}

.division-color-gris-blanco-2 {
    background: linear-gradient(to right, #101010 25%, #ff0000 25%);
}

.pleca-bg {
    border-left: 10px solid var(--texto-pleca-seccion);
    height: 30px;
}

#divImagenesSobreCarusell {
    margin-bottom: 40px;
    margin-top: -120px;
}

.title-card {
    background: var(--color-primario);
    height: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 5px;
    font-weight: bolder;
    margin-bottom: 0px;
}

.title-card-destacado {
    background-color: var(--color-primario-65);
    /*height: 100%;*/
    /*text-align: center;*/
    /*display: flex;*/
    /*justify-content: center;*/
    /*align-items: center;*/
    color: white;
    height: 50px;
}

.label-destacado {
    position: absolute;
    bottom: 0px;
    align-self: center;
    background-color: rgba(0, 0, 0, .4);
    color: white !important;
    padding: 5px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8em;
    width: fit-content;
    text-align: center;
}

.top-78 {
    top: 78% !important;
}

#vinc1 {
    background-image: url('/img/I-EstrategiaDeSeguridad/estrategia_cover.jpg');
    width: 100%;
    min-height: 220px;
    background-size: cover;
}

#vinc1:hover {
    background-image: linear-gradient(
            to right,
            rgba(0, 0, 0, .4),
            rgba(0, 0, 0, .4)
    ),
    url('/img/I-EstrategiaDeSeguridad/estrategia_cover.jpg');
    min-height: 220px;
    background-size: cover;
}

.noticia p {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* Ajusta el número de líneas visibles según tus necesidades */
}

/*NOTICIAS DEL INDEX EL HOVER COLOR VERDE*/
.contenedor-imagen {
    position: relative;
    width: 100%;
    /*max-width: 300px; !* Ajusta el ancho máximo según tus necesidades *!*/
    overflow: hidden;
    border-radius: 6px;
}

.contenedor-imagen img {
    width: 100%;
    height: auto; /* Mantener la proporción de aspecto de la imagen */
    display: block;
    transition: transform 0.3s ease;
    z-index: 1;
}

.contenedor-imagen:hover img {
    /*transform: scale(1.1);*/
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(133, 175, 154, 0.53);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.contenedor-imagen:hover .overlay {
    opacity: 1;
}

/* FIN NOTICIAS DEL INDEX EL HOVER COLOR VERDE*/

/*ACCIONES DEL INDEX EL HOVER COLOR AZUL*/
.overlay-acciones {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-secundario-footer-57);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.contenedor-imagen:hover .overlay-acciones {
    opacity: 1;
}

.overlay-accionesM {
    position: absolute;
    top: 0;
    left: 0;
    width: 83.3%;
    height: 100%;
    background: var(--color-secundario-footer-57);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.contenedor-imagenM:hover .overlay-accionesM {
    opacity: 1;
}


/*FIN DEL INDEX EL HOVER COLOR AZUL*/


/*.act-card {*/
/*    background: #0f2554;*/
/*    height: 100%;*/
/*    text-align: left;*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    align-items: center;*/
/*    color: white;*/
/*    font-size: 0.8em;*/
/*    padding: 5px;*/
/*}*/


.act-card {
    background: var(--color-primario);
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 11px;
    padding: 8px;
    text-align: center;
    line-height: 1.3;
}

.act-card:hover {
    background: var(--color-secundario-footer);
}

.act-card {
    position: relative;
    /*padding-top: 20px; !* Ajusta según sea necesario para dar espacio al triángulo *!*/
    overflow: visible;
}


.act-card-two {
    margin-top: -6.8em;
    background: rgba(15, 37, 84, 0.8);
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.1em;
    padding: 8px;
    text-align: center;
    line-height: 1.3;
}

.act-card-two:hover {
    background: var(--color-secundario-footer);
}

.act-card-two {
    position: relative;
    /*padding-top: 20px; !* Ajusta según sea necesario para dar espacio al triángulo *!*/
    overflow: visible;
}


.triangulo {
    position: absolute;
    top: -18px;
    left: 32px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    /*border-bottom: 20px solid #ff0606; !* Color del triángulo *!*/
    border-bottom: 20px solid var(--color-primario); /* Color del triángulo */
}

/* CIRCULOS DEL CARRCELL del INDEX*/
.circulo {
    width: 25px;
    height: 25px;
    background-color: #a6a6a6;
    border-radius: 50%;
    margin-right: 20px;
    margin-top: 40px;
}

.circulo.active {
    background-color: var(--color-primario) !important; /* Reemplaza 'otro-color' con el color que desees */
}

.carousel-indicators [data-bs-target] {
    box-sizing: content-box;
    flex: 0 1 auto;
    width: 30px;
    height: 18px;
    padding: 0;
    margin-right: 3px;
    margin-left: 3px;
    text-indent: -999px;
    cursor: pointer;
    background-color: #fff;
    background-clip: padding-box;
    border: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    opacity: .5;
    transition: opacity .6s ease;
}

.img-carousel-item {
    max-height: 900px;
    margin: auto;
}


. imageBlueChoco {
}

.carouselMain-top
{
}

.carousel-inner {
    /*overflow: visible !important;*/
    border-radius: 12px;
}

@media screen and (min-width: 320px) and (max-width: 767px) {
    .imageBlueChoco {
        /*margin-top: 9em !important;*/
    }

    .carouselMain-top
    {
        /*margin-top: 17em !important;*/
        margin-bottom: 0 !important;
        /*margin-top: 150px !important;*/
    }

    .noticia, .inner-img{
        margin-bottom: 1rem !important;
    }

    .img-carousel-item {
        margin-top: 90px;
        transform: scale(1);
        margin-left: 0;
        height: auto;
        max-height: 280px;
    }
}

@media screen and (min-width: 769px) and (max-width: 991px) {
    .carouselMain-top {
        margin-bottom: 0 !important;
        margin-top: 0 !important;
        position: relative !important;
    }

    .carousel-inner {
        /*overflow: visible !important;*/
        border-radius: 12px;
    }

    .carousel-item {
        transition: transform 0.6s ease-in-out !important;
    }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
    .carucel-detras {
        margin-top: -5.5em !important;
    }

    .carouselMain-top {
        margin-bottom: 0 !important;
        margin-top: 0 !important;
    }

    .carousel-inner {
        /*overflow: visible !important;*/
        border-radius: 12px;
    }
}


@media screen and (width: 768px) {

    #row-with-background {
        margin-top: -5.59em;
    }

    #barra-superor
    {
        margin-top: -4em;
    }



}


@media screen and (min-width: 768px) and (max-width: 809px) {

    #row-with-background {
        margin-top: -4em;
    }

    #barra-superor
    {
        margin-top: -4.09em;
    }



}


@media screen and (min-width: 810px) and (max-width: 860px) {

    #row-with-background {
        margin-top: -4em;
    }

    #barra-superor
    {
        margin-top: -4em;
    }


}


@media screen and (min-width: 861px) and (max-width: 915px) {

    #row-with-background {
        margin-top: -4.1em;
    }

    #barra-superor
    {
        margin-top: -4em;
    }


}



@media screen and (min-width: 915px) and (max-width: 992px) {

    #row-with-background {
        margin-top: -4em;
    }

    #barra-superor
    {
        margin-top: -4em;
    }

}

@media screen and (width: 993px) {
    .imagen-fondo {
        margin-top: -3.5em !important;
    }

    #barra-superor
    {
        margin-top: -2.5em !important;
    }


}

.indices-scroll {
    max-height: 19.4rem !important;
    overflow: hidden;
    overflow-y: scroll;
    /*border-bottom: 1px solid rgba(0,0,0,.125);*/
}


.indicadores-titulo{
    font-family: Poppins;
    text-transform: uppercase;
    font-size: 35px;
    border-right: 2px solid;
}



.indicadores-subtitulo{
    font-family: Roboto;
    color: #72808f;
    font-size: 24px;
    padding: 7px 0 0px 25px;
}

.indicadores-metricas{
    font-family: Roboto;
    color: #72808f;
    font-size: 18px;
    text-align: right;
}

.indicadores-lista {
    border-bottom: 1px solid rgba(0, 0, 0, .1); !important;
    margin-bottom: 0.3rem;
    padding-bottom: 0.3rem;
}

.list-group-item:hover .indicadores-lista {
    border-bottom: 1px solid white; !important;
}

.indicadores-lista:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
}

/* ESTILOS MODERNOS PARA CARDS DE NOTICIAS */
.news-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 16px var(--verde-noticias), 0 0 0 2px var(--verde-noticias);
}

.news-card-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.news-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-image {
    transform: scale(1.05);
}

.news-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 10px;
    border-radius: 12px 12px 0 0;
}

.news-card:hover .news-card-overlay {
    opacity: 1;
}

.news-card-category {
    background: var(--color-primario);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card-category i {
    font-size: 0.7rem;
}

.news-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.news-card-date {
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-card-date i {
    color: var(--color-primario);
}

.news-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.8em;
}

.news-card-excerpt {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.5em;
}

.news-card-read-more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.news-card-read-more:hover {
    transform: translateX(5px);
}

.news-card-read-more .read-more-text {
    color: #1a1a1a;
    transition: transform 0.3s ease;
}

.news-card-read-more:hover .read-more-text {
    transform: translateX(3px);
}

.news-card-read-more .arrow-icon {
    transition: transform 0.3s ease;
}

.news-card-read-more:hover .arrow-icon {
    transform: translateX(5px);
}

/* ESTILOS MODERNOS PARA CARDS DE DESTACADO */
.destacado-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
}

.destacado-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 50px rgba(36, 43, 87, 0.2), 0 0 0 3px var(--color-primario);
}

.destacado-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    height: 280px;
}

.destacado-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.destacado-card:hover .destacado-image {
    transform: scale(1.1);
}

.destacado-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--color-primario) 0%, var(--color-primario-65) 100%);
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 16px 16px 0 0;
}

.destacado-card:hover .destacado-overlay {
    opacity: 1;
}

.destacado-content {
    text-align: center;
    color: white;
    transform: translateY(0);
    transition: all 0.4s ease;
    max-width: 90%;
}

.destacado-card:hover .destacado-content {
    transform: translateY(0);
}

.destacado-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s ease 0.1s;
}

.destacado-card:hover .destacado-icon {
    opacity: 1;
    transform: scale(1);
}

.destacado-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.4s ease 0.2s;
}

.destacado-card:hover .destacado-title {
    opacity: 1;
    transform: scale(1);
}

.destacado-description {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.4s ease 0.3s;
    max-width: 280px;
    color: white;
    margin: 0 auto;
}

.destacado-card:hover .destacado-description {
    opacity: 1;
    transform: scale(1);
}

/* Sección de información visible */
.destacado-info {
    padding: 20px;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.destacado-info-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primario);
    margin-bottom: 8px;
    line-height: 1.3;
}

.destacado-info-text {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.4;
    margin-bottom: 16px;
    flex: 1;
    min-height: 60px;
}

.destacado-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
}

.destacado-badge {
    background: var(--color-primario);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.destacado-badge i {
    font-size: 0.7rem;
}

.destacado-date {
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.destacado-date i {
    font-size: 0.7rem;
    color: var(--color-primario);
}

/* Padding para artículos solo en móviles */
@media (max-width: 768px) {
    .articles-hero .container,
    .article-header-section .container {
        padding-top: 150px !important;
    }
}

/* Responsive para cards de destacado */
@media (max-width: 1200px) {
    .destacado-card {
        margin-bottom: 24px;
    }

    .destacado-image-wrapper {
        height: 260px;
    }

    .destacado-info {
        padding: 16px;
    }

    .destacado-title {
        font-size: 1.1rem;
    }

    .destacado-description {
        font-size: 0.85rem;
        max-width: 240px;
    }

    .destacado-icon {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }

    .destacado-info-title {
        font-size: 1rem;
    }

    .destacado-info-text {
        font-size: 0.85rem;
    }

    .destacado-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .row {
        row-gap: 32px;
    }
}

@media (max-width: 768px) {
    .destacado-card {
        margin-bottom: 20px;
    }

    .destacado-image-wrapper {
        height: 320px;
    }

    .destacado-title {
        font-size: 1rem;
    }

    .destacado-description {
        font-size: 0.8rem;
        max-width: 200px;
    }

    .destacado-icon {
        font-size: 2rem;
        margin-bottom: 8px;
    }

    .destacado-info {
        padding: 12px;
    }

    .destacado-info-title {
        font-size: 0.95rem;
    }

    .destacado-info-text {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }

    .destacado-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }

    .destacado-date {
        font-size: 0.75rem;
    }

    .row {
        row-gap: 28px;
    }
}

@media (max-width: 540px) and (min-width: 344px) {

    .section-spacing-destacado {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        overflow: visible;
    }

    .col-12.azul.m-0.p-0 {
        margin-top: -84px !important;
        padding-top: 0 !important;
    }
}