
@font-face {
    font-family: 'montserrat';
    src: url('../fonts/Montserrat.ttf');
}
html,body{
    font-family: montserrat !important;
}

.hero-text{
    font-family: montserrat !important;
}
.hero-text h1,h2,h3{
    font-family: montserrat !important;

}

.titulo{
    font-size: 30px !important;
}
.body-text{
    font-size: 17px !important;
}

.footer .widget-links{
    font-family: montserrat !important;

}
.logo img {
    max-height: 45px;
}

.btn-color{
    background-color: rgb(226, 24, 52);
    border-color: rgb(226, 24, 52);
}

.btn-color:hover{
    background-color: rgb(226, 24, 52, 0.8);
    border-color: rgb(226, 24, 52, 0.8);
}
.btn-color:focus{
    background-color: rgb(226, 24, 52, 0.8);
    border-color: rgb(226, 24, 52, 0.8);
}

.blue-icon{
    color: rgb(19, 53, 142);
}

.counter h3{
    color: black;
}

.progress-bar span{
    top: 6px;
}

.progress-bar{
    background-color: rgb(226, 24, 52);
}

.theme-bg{
    background-color: #0BA139;
}



.chart-container canvas {

    position: relative !important;
}

.barra-gov{
    /* top: 978px; */
/* left: 498px; */
width: 100%;
height: 56px;
background: var(---0943b5) 0% 0% no-repeat padding-box;
background: #0943B5 0% 0% no-repeat padding-box;
opacity: 1;
display: flex
;
    align-items: center;
}
.barra-gov img{
    height: 20px;
    margin-left: 50px;
}


nav.navbar.bootsnav.navbar-fixed{
    position: unset !important;
}

.menu-estilos{
    padding-left: 50px;
    padding-right: 50px;
}

/* #about{
    background-image: url('../images/custom/quienes-somos.jpg');
        background-position: center;
    background-size: cover;
      filter: grayscale(100%) blur(5px);

} */
#bienvenida{
    background-color: white !important;
    padding: 70px 0;
}
#bienvenida h4{
    font-size: 35px;
    text-align: center;
    font-weight: 900;
    margin-bottom: 20px;
}
#bienvenida p{
    font-size: 20px;
    text-align: center;
    font-weight: 400;
}


.first-ico-box {
  position: relative;
  overflow: hidden;
  color: white;
  padding: 120px 0;
}

.background-image {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  /* background-image: url('ruta/tu-imagen.jpg'); */
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) blur(5px);
  z-index: 0;
   background-image: url('../images/custom/quienes-somos.jpg');
}

.overlay-green {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #0ba139;
  opacity: 0.4;
  z-index: 1;
}

.first-ico-box .container {
  position: relative;
  z-index: 2;
}
#about h2{
    font-size: 35px;
    color: #fff;
}
#about p{
    font-size: 20px;
    color: #fff;
    line-height: 30px;
    font-weight: 400;
}

/* canvas {
    max-width: 600px;
    margin: auto;
} */

/* footer */
.cont-footer{
    display: flex;
    justify-content: center;
}
.card-footer{
background-color: #fff; color: #000; border-radius: 10px; padding: 30px;  width: 100%;
max-width: 70%;
}
.card-footer p{
    font-size: 14px;
    color: #000 !important ;
    font-family: montserrat;
}
.card-footer a{
    font-size: 14px;
    color: #000 !important ;
    font-family: montserrat;
}
@media only screen and (min-width: 320px) and (max-width: 576px) {
  .card-footer{
    max-width: unset;
  }
}
@media screen and (max-width: 768px) {
  .card-footer{
    max-width: unset;
  }
}

.page-scroll {
    text-transform: none !important;
}

nav.navbar.bootsnav ul.nav > li > a{
    font-family: montserrat;
}



.color-white{
    color: #fff !important;
}


#back-to-top{
  background-color:  rgb(226, 24, 52, 0.8);
  color: #fff !important;
}

.product-detail{
    border-radius: 0 0 10px 10px;
}
.progress-bar span{
    right: -40px !important;
}

.hero-text-wrap{
    background-color: rgba(34, 34, 37, 0.80);
}

.card-custom{
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
      border-radius: 10px;
      padding: 30px;
}

.superpuesto {
  position: relative;
  z-index: 10; /* Asegura que quede encima del slider */
  transform: translateY(-100px); /* Sube el contenedor 100px */
}
.card-custom-floating {
  position: relative;          /* Mantiene el contenedor en el flujo normal */
  margin-top: -100px;          /* Lo sube sobre la sección anterior */
  z-index: 300;                /* Asegura que esté por encima del fondo del slider */
  background: white;
  padding: 20px 30px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  margin-bottom: 20px;
      border-bottom: 4px solid #DD0C15;
}

.card-custom-floating li{
    color:#000 ;
}
.card-custom-floating p{
    color:#000 ;
}
.desc-detalle{
    line-height: 30px;
    color: #000 !important;
}

/* .texto-vertical {
  writing-mode: vertical-rl; 
  transform: rotate(180deg); 
  text-align: center;
  white-space: nowrap;
  margin: 0;
  color: white !important;
  font-weight: bold;

} */
/* CONTENEDOR PRINCIPAL */
.contenido-wrapper {
    display: flex;
    align-items: stretch; /* columna roja se estira a la altura del texto */
    margin: 0;
}

/* BARRA ROJA (columna izquierda) */
.bg-contenido-card {
    background-color: #DD0C15;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
    height: -webkit-fill-available;
        margin-right: 10px;
    width: 40px;
}

/* TEXTO VERTICAL */
.texto-vertical {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    margin: 0;
    white-space: nowrap;
    font-weight: bold;
    color: white;
}


.bg-contenido-card p{
    color: white;
}



.custom-display{
    display: flex;
}

#banner-mapas{
    background: white;display: flex;justify-content: center;
}
#banner-mapas img{
    width: 50%;
}

.img-w{
    width: 50%;
}

.cont-mapa-index{
    display: flex;
    justify-content: center;

}

.glossary-container {
    max-width: 900px;
    margin:  auto;
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
#glosario{
    padding-left: 20px;

}
#glosario li{
    font-weight: bold;
    margin-top: 20px;
}

@media (max-width: 991px) {

    .menu-estilos{
        padding: 0;
    }
    nav.navbar.bootsnav .navbar-toggle{
        float: right !important;
        margin-right: 0 !important;
    }
    nav.navbar.bootsnav .navbar-header{
        text-align: left !important;
    } 
    .barra-gov img{
        margin-left: 33px !important;
    }
    nav.navbar.bootsnav.no-full .navbar-collapse{
        max-height: unset !important;
    }

    .custom-display{
        display: flex;
        flex-direction: column;
    }
    #banner-mapas img{
        width: 100% !important;
    }
    /* .bg-contenido-card{
        width: 50px ;
    } */

     .contenido-wrapper {
        flex-direction: column;   /* la barra roja pasa arriba */
    }

    .bg-contenido-card {
        border-radius: 15px;
        width: 100%;
        height: auto;
        padding: 8px 12px;
        margin-bottom: 20px;
    }

    .texto-vertical {
        writing-mode: horizontal-tb;
        transform: none;
        white-space: normal;
        text-align: center;
        font-size: 16px;
    }
    .img-w{
        width: 100%;
    }
    .cont-mapa-index{
        flex-direction: column;
    }
}


/* --- TARJETAS DE MAPAS: LOOK MODERNO --- */
.product {
    border: none; /* Quitamos bordes grises */
    transition: all 0.3s ease;
    background: #1a1a1a; /* Fondo oscuro uniforme para toda la tarjeta */
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 12px; /* Bordes redondeados en toda la tarjeta */
}

.product:hover {
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
    transform: translateY(-8px);
}

.product-wrap {
    position: relative;
    width: 100%;
    height: 200px; 
    overflow: hidden;
    /* Eliminamos el border-radius de aquí para que no choque */
}

.product-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* El recuadro negro con el texto inferior */
.preview-box {
    padding: 0 !important;
    background-color: #1a1a1a !important; /* Mismo fondo que la tarjeta */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.preview-box p {
    color: #ffffff !important; /* TEXTO BLANCO BRILLANTE */
    margin: 0;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
    text-align: center;
    text-transform: none;
    letter-spacing: 0.5px;
}

/* Oscurecer un poco la imagen para que el botón de "Ver Mapa" resalte más */
.product-wrap .product-caption {
    background-color: rgba(0, 0, 0, 0.4) !important;
}


/* --- TARJETAS TIPO POST (BLOG) --- */
.post {
    background: #1a1a1a !important; /* El color oscuro de tu captura */
    border-radius: 12px !important;
    overflow: hidden;
    margin-bottom: 0px; /* Quitamos el margen inferior para que no rompa el flex */
    
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important; 
    border: none !important;
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

.post:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

.post-img {
    height: 200px;
    width: 100%;
    overflow: hidden;
    flex-shrink: 0; /* Evita que la imagen se achique si hay mucho texto */
}

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

.post-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* 4. Esto hace que la zona de texto se "infle" para llenar el vacío */
}

.post-info h3 {
    font-size: 19px;
    font-weight: 700;
    color: #fff !important;
    margin-bottom: 10px;
    min-height: 52px; 
    display: flex;
    align-items: center;
}

/* Estilo para la fecha (h6) */
.post-info h6 {
    color: #DD0C15 !important; /* Rojo corporativo */
    font-size: 13px;
    margin-bottom: 15px;
}

.post-info p {
    font-size: 14px;
    color: #ccc !important; /* Gris claro para mejor contraste en fondo oscuro */
    margin-bottom: 20px;
    line-height: 1.6;
}

/* 5. El botón se va al fondo gracias al flex-grow del padre y este margin-top */
.mt-auto {
    margin-top: auto !important;
}

.readmore {
    display: inline-block;
    font-weight: 800;
    color: #fff !important;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 1px;
}

.readmore:hover {
    color: #DD0C15 !important;
}