.dropdown:hover > .dropdown-menu,
.dropend:hover > .dropdown-menu {
  display: block !important;
  margin-top: 0.125em;
  margin-left: 0.125em;
  width: fit-content; /* Cambiado a fit-content para ajustar autom谩ticamente al contenido */
  max-height: 400px; /* Aumentando la altura m谩xima verticalmente */
  overflow-y: auto;
  overflow-x: hidden; /* Ocultar desplazamiento horizontal */
}
 
.dropdown-menu {
    width: max-content !important; /* Cambia el ancho a máximo contenido */
    min-width: 10rem !important; /* Establece un ancho mínimo */
    white-space: normal !important; /* Permite el retorno de línea */
    overflow-y: auto !important; /* Agrega desplazamiento vertical si es necesario */
    overflow-x: hidden !important; /* Ocultar desplazamiento horizontal */
    left: -400px !important; /* Ajusta la posición del menú hacia la izquierda */
    top: 100% !important; /* Ajusta la posición del menú debajo del elemento desplegable */
}


@media screen and (min-width: 769px) {
  .dropend:hover > .dropdown-menu {
    position: absolute;
    top: 100%; /* Cambiando la posici贸n para que aparezca debajo del bot贸n */
    left: 0;
  }
  .dropend .dropdown-toggle {
    margin-left: 0.5em;
  }
}
 

body{
    background: #e9ecef;
}

.bg-light{
    background: #fff;
}
.navbar-fixed{
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;
    width: 100%;    
}
.navbar-nav li a{
    color: #2c4964 !important;
}
.navbar-nav li a{
    position: relative !important;
}

.navbar-nav li a:hover{
    color: #1977cc !important;
    border-color: #1977cc !important;
}
.navbar-nav li.active-link a::after{
    content: "";
    height: 3px;
    width: 80%;
    background: #1977cc;
    bottom: 0;
    left: 0;
    position: absolute;
    margin: 0 5px;
}

.navbar-nav li a:hover::after {
    content: "";
    position: absolute;
    background: #1977cc;
    height: 3px;
    width: 85%;
    bottom: 0;
    left: 0;
    margin: 0 5px;
    animation: lineas 1s normal;
    animation-timing-function: ease-out;
  }

@keyframes lineas {
    from {width: 0%;}
    to {width: 85%;}
}

#hero {
    width: 100%;
    height: 100vh;
    background: url(../imagenes/img_portal.jpg) top center;
    background-size: cover;
    margin-bottom: -200px;
    background-attachment: fixed;
}

#hero::before {
    display: block;
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #000000;
    opacity: 0.45;
}

#hero .container {
    position: absolute;
    top: 45%;
    left: 16%;
}
#hero h1 {
    margin: 0;
    font-size: 48px;
    font-weight: 700;
    line-height: 56px;
    text-transform: uppercase;
    color: #FFF;
}

#hero .btn-get-started {
    font-family: "Raleway", sans-serif;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 1px;
    display: inline-block;
    padding: 12px 35px;
    margin-top: 30px;
    border-radius: 50px;
    transition: 0.5s;
    color: #fff;
    border: 2px solid #fff;
    background: transparent;
    text-decoration: none;
}
#hero .h1-mancomunidad{
    font-size: 3rem;
}
#hero .h1-lima-norte{
    font-size: 4rem;
    letter-spacing: 9px;
}
#hero .h1-municipal{
    letter-spacing: 14px;
    font-weight: bold;
    -webkit-text-stroke: 3px white;
    color: #000;
    font-size: 4rem;
    line-height: 85%;
}

/* css imagenes */
.container__icon-box {
    text-align: center;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
    padding: 20px 15px;
    width: 100%;
    height: 100%;
    border-bottom: 2px solid rgb(35, 164, 156);
    flex: 1;
}
.container-col{
    z-index: 1;
    width: 18%;
    
}
.container__icon-box .img-opciones {
    width: 25%;
}

.container__icon-box h4 {
    font-size: 0.9em;
    font-weight: 700;
    margin: 10px 0 30px 0;
}
.link-opciones{
    text-decoration: none;
    color: #000;
}
.container__main{
    margin-top: 7%;
}
.container__icon-box:hover{
    background-color: rgb(35, 164, 156);
    color: #fff;
    cursor: pointer;
    transition: all 0.5s ease-in-out;
    -webkit-transition: all 0.5s ease-in-out; /** Chrome & Safari **/
    -moz-transition: all 0.5s ease-in-out; /** Firefox **/
    -o-transition: all 0.5s ease-in-out; /** Opera **/
}
.container__icon-box:hover .img-opciones{
    filter: brightness(0) invert(1);
    transition: all 0.5s ease-in-out;
    -webkit-transition: all 0.5s ease-in-out; /** Chrome & Safari **/
    -moz-transition: all 0.5s ease-in-out; /** Firefox **/
    -o-transition: all 0.5s ease-in-out; /** Opera **/
}

.link-opciones:hover{
    color: #fff;
    background-color: rgb(35, 164, 156);
}
/* fin css imagenes */

/* css de seccion noticia */
.row-noticia h2{
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 20px;
    position: relative;
    color: #2c4964;
    text-align: center;
}
.row-noticia h2::before {
    content: "";
    position: absolute;
    display: block;
    width: 120px;
    height: 1px;
    background: #ddd;
    bottom: 1px;
    left: calc(50% - 60px);
}
.row-noticia h2::after {
    content: "";
    position: absolute;
    display: block;
    width: 40px;
    height: 3px;
    background: #1977cc;
    bottom: 0;
    left: calc(50% - 20px);
}
.box-noticia{
    background: #fff;
    border-radius: 2%;
    height: 100%;
    box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
}
.box-noticia img{
    width: 100%;
    border-top-left-radius: 2%;
    border-top-right-radius: 2%;
}
.contenido-noticia{
    margin: 8%;
}
.contenido-noticia span{
    font-weight: bold;
    font-size: 80%;
    margin-bottom: 10px;
    color: #2c4964;
}
.contenido-noticia .h4{
    color: #000;
    text-decoration: none;
    font-weight: 700;
    font-size: 19px;
}
.contenido-noticia .h4 p a{
    color: #df0d0d;
    text-decoration: none;
    font-weight: 700;
    font-size: 19px;
}
.contenido-noticia .btn-link{
    display: inline-block;
    font-weight: 600;
    color: #1977cc;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    text-decoration: none;
    margin: 15px;
    position: relative;
    bottom: 0;
}

.contenido-noticia .btn-link:hover::after {
    content: "";
    position: absolute;
    background: #1977cc;
    height: 3px;
    width: 85%;
    bottom: 0;
    left: 0;
    margin: 0 0;
    animation: lineas 0.5s normal;
    animation-timing-function: ease-out;
  }


@keyframes lineas {
    from {width: 0%;}
    to {width: 100%;}
}

.icon-box-animation:hover{
    transform: translate(0,-10px);
    cursor: pointer;
    -webkit-transform: translate(0,-10px);
    -o-transform: translate(0,-10px); 
    -moz-transform: translate(0,-10px);
    transition: all 1s ease-in-out;
    -webkit-transition: all 1s ease-in-out; /** Chrome & Safari **/
    -moz-transition: all 1s ease-in-out; /** Firefox **/
    -o-transition: all 1s ease-in-out; /** Opera **/
  }

.btn-get-pers {
    background-color: #0e2866;
    border-color: #0f2966;
    color: #fff;
    text-decoration: none;
    padding: 10px;
    border-radius: 5px;
    border:2px solid #fff;
}
.btn-get-pers:hover {
    background-color: #00993d;
    border-color: #019b3e;
    color: #fff;
    border:2px solid #fff;
    transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease; /** Chrome & Safari **/
    -moz-transition: all 0.5s ease; /** Firefox **/
    -o-transition: all 0.5s ease; /** Opera **/
}
.btn-get-pers-mas{
    width: 20%;
}
/* fin css de seccion noticia */

/*css seccion de row-abaout*/
.img-grupo-logo{
    border-radius: 5px;
}
/*fin seccion de row-abaout*/

/* css seccion de aliados */
.row-aliados h2{
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 20px;
    position: relative;
    color: #2c4964;
    text-align: center;
}
.row-aliados h2::before {
    content: "";
    position: absolute;
    display: block;
    width: 120px;
    height: 1px;
    background: #ddd;
    bottom: 1px;
    left: calc(50% - 60px);
}
.row-aliados h2::after {
    content: "";
    position: absolute;
    display: block;
    width: 40px;
    height: 3px;
    background: #1977cc;
    bottom: 0;
    left: calc(50% - 20px);
}

.slick-next{
    background: #1977cc !important;
    margin-right: -10px;
  }
  .slick-prev{
    background: #1977cc !important;
    margin-left: -10px;
  }
  .slick-prev, .slick-next {
    width: 31px !important;
    height: 31px !important;
    border-radius: 50%;
  }
/* fin css seccion de aliados */

/*css de footers*/

#footer .social-links a {
    font-size: 18px;
    display: inline-block;
    background: #1977cc;
    color: #fff;
    line-height: 1;
    padding: 8px 0;
    margin-right: 4px;
    border-radius: 50%;
    text-align: center;
    width: 36px;
    height: 36px;
    transition: 0.3s;
}

#footer .credits {
    padding-top: 5px;
    font-size: 13px;
    color: #444444;
}
#footer a {
    color: #1977cc;
    text-decoration: none;
}



/*inicio css de footers*/

@media (max-width: 575.98px) { 
    .navbar-nav li.active-link a::after{
        width:0%;
    }
    .navbar-nav li a:hover::after {
        width:0%;
    }
    .container__main{
        margin-top: 58%;
    }
    #hero .container {
        top: 50%;
        left: 5%;
    }
    #hero h1 {
        font-size: 1.5em;
        line-height: 1.5em;
    }

    .btn-get-pers-mas{
        width: 30%;
    }
    .container-col{
        width: 50%;
    }

    #hero .h1-mancomunidad{
        font-size: 2rem;
    }
    #hero .h1-lima-norte{
        font-size: 3rem;
        letter-spacing: 2px;
    }
    #hero .h1-municipal{
        letter-spacing: 5px;
        font-size: 3rem;

    }
}

/*    // Medium devices (tablets, 768px and up) */
@media (min-width: 767.98px) { 
    
 }

/* // Large devices (desktops, 992px and up) */
@media (min-width: 991.98px) { 
   
 }

/* // X-Large devices (large desktops, 1200px and up) */
@media (min-width: 1199.98px) { 
    
 }

/* // XX-Large devices (larger desktops, 1400px and up) */
@media (min-width: 1399.98px) { 
  
 }
 
/* Sección Correo */
 
.div_icon_correo, .div_icon_correo i{
    background-color: #ffffff00 ;
    color: #336699;
    padding: 8px;
    border-radius: 20%;
    height: 40px;
    width: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    text-decoration: none;
    transition: all .5s ease;
}

.div_icon_correo:hover, .div_icon_correo i:hover{
    background-color: #336699 ;
    color: #fff;
}