
:root {
    --mplus-rounded: 'M PLUS Rounded 1c', sans-serif;
    --nunito-sans: 'Nunito Sans', sans-serif;
    --prompt: 'Prompt', sans-serif;
    --roboto: 'Roboto', sans-serif;
    --rubik-glitch: 'Rubik Glitch', sans-serif;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: inherit;
}

body {
    min-height: 100vh;
    box-sizing: border-box;
}

.header__completo {
    width: 100%;
    margin-bottom: -10%;
}


.header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    background-color: #2F3339;
    padding: 1% 10%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 3;
}

.header .logo {
    display: flex;
    align-items: center;
    margin-top: 1%;
}

.logo {
    font-size: 1.5em;
    text-transform: uppercase;
    color: #ffff;
    font-weight: 700;
}

.navegation ul {
    list-style: none;
    margin: 0;
    padding: 20px;
    scrollbar-width: thin;
    /* Opciones: auto, thin */
    scrollbar-color: #888 #f1f1f1;
    /* thumb color y track color */
}

.navegation .btn-empleados{
    background-color: #2A8D2A;
    padding: 5px;
    border-radius: 5px;
    color: #ffff;
    text-decoration: none;
}

.header .navegation ul li {
    float: left;
    position: relative;
}

.header .navegation ul li a {
    font-size: 1.125em;
    color: #ffff;
    text-decoration: none;
    display: block;
    padding-right: 2.45em;
    transition: all .2s ease;
}

nav a:hover::after {
    content: '';
    position: absolute;
    bottom: -3px;
    /* Ajusta el tamaño de la línea según sea necesario */
    left: 0;
    width: 70%;
    height: 2px;
    /* Ajusta el grosor de la línea según sea necesario */
    background-color: #206C20;
}

.header .navegation ul li ul {
    position: absolute;
    right: 0;
    width: 300px;
    background-color: #2F3339;
    display: none;
    overflow-y: auto;
    /* Agregado para permitir el desplazamiento vertical */
    max-height: 300px;
    /* Ajusta según sea necesario */
    z-index: 100000;
}

.header .navegation ul li ul li a {
    font-size: 15px;
    text-transform: capitalize;
    padding: 15px;
    display: block;
}

.header .navegation ul li ul li ul {
    position: absolute;
    top: 0;
    right: 300px;
    width: 300px;
    background-color: rgba(1, 1, 1, 0.7);
}

.header .navegation ul li ul li {
    width: 100%;
}

.header .navegation ul li:hover>ul {
    display: initial;
}

#toggle,
.header label {
    display: none;
    cursor: pointer;
}

.menu {
    width: 45px;
    height: 35px;
}

/*BANNER PRINCIPAL*/
.banner {
    position: relative;
    height: 500px; /* Ajusta según sea necesario */
    width: 100%;
    background-image: url(../assets/servicio-financiero.webp);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15%;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Ajusta la opacidad si es necesario */
    z-index: 1;
}

.banner h1 {
    position: relative;
    font-size: 2.5rem;
    color: white;
    font-weight: bold;
    text-align: center;
    z-index: 2; /* Se asegura de estar por encima de la capa de overlay */
}


/*SECCION PLATA*/

.banner-2 {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 0 10%;
    background-color: white;
}

.banner-image {
    margin-bottom: 20px;
    width: 50%;
}

.banner-image img {
    max-width: 100%;
    height: auto;
}

.banner-content {
    text-align: center;
}

.banner-content h2 {
    font-size: 2.5rem;
    color: #949494;
    font-weight: lighter;
    margin-bottom: 15px;
}

.banner-content h3 {
    font-size: 1.7rem;
    color: #949494;
    margin-bottom: 10px;
}

.highlight {
    font-weight: bold;
    color: #000;
    width: 80%;
}

.banner-content ul {
    padding: 10px;
    margin-bottom: 5px;
    width: 50%;
    margin: 0 auto;
}

.banner-content li {
    margin-bottom: 8px;
}

.note {
    font-size: 0.9rem;
    font-style: italic;
    color: black;
    font-weight: bold;
}

.line{
    border-top: 1px solid #ccc;
    margin: 20px 0;
}

/*SECTION DE PRESTAMOS*/

.prestamos {
    display: flex;
    background-color: #F5F4F4;
}

.section-prestamos {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5% 0;
}

.section-prestamos h3 {
    font-size: 30px;
    font-weight: lighter;
    color: #206C20;
}

.section-prestamos p {
    margin-top: 3%;
    width: 50%;
    font-size: 20px;
    text-align: center; /* Alinea el texto para mayor uniformidad */
}

.section-prestamos span {
    font-weight: bold;
}

.line-2 {
    width: 60%; /* Asegura que la línea ocupe todo el ancho disponible */
    border-top: 1px solid black;
    margin: 20px 0;
    z-index: 1000; /* Asegura que la línea esté visible sobre otros elementos */
}

.image-prestamos{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%;
}


/*FOOTER*/
.footer {
    padding: 20px;
    text-align: center;
    width: 100%;
}

.footer-gral {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.footer-gral img {
    width: 150px; /* Ajusta el tamaño de la imagen */
    height: auto;
}

.redes i {
    font-size: 24px;
    color: #333;
    margin-left: 15px; /* Espacio entre los iconos */
    cursor: pointer;
}

.redes i:hover {
    color: #0e950e; /* Cambia el color al pasar el ratón */
}

.footer p {
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}


/*SECCION DE MEDIAQUERiES*/
@media screen and (max-width: 768px) {

    .header {
        position: fixed;
        background-color: #2F3339;
    }

    header {
        width: 100%;
    }

    .header .logo {
        display: flex;
        align-items: center;
    }

    .header .logo h1 {
        font-size: 12px;
        margin-left: 15px;
    }

    .banner {
        margin-top: -20%;
    }

    .banner h1 {
        margin-top: -18%;
        color: white;
        z-index: 1;
        width: 90%;
        font-size: 1.8rem;
    }

    .overlay {
        height: 438px;
    }

    .banner-2{
        display: flex;
        flex-direction: column;
        margin-top: -10%;
    }

    .banner-2 h2, h3{
        font-size: 1.7rem;
    }

    .highlight{
        font-size: 1.7rem;
    }

    .banner-content ul{
        width: 100%;
    }

    .banner-content li{
        font-size: 14px;
    }

    .prestamos{
        display: flex;
        flex-direction: column;
        margin-top: 5%;
    }

    .section-prestamos{
        width: 80%;
        margin:  0 auto;
    }

    .image-prestamos img{
        height: 300px;
        width: 300px;
    }

    .line-2{
        width: 100%;
    }

    .image-prestamos{
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
        width: 50%;
    }

    .section-prestamos h3{
        font-size: 1.2rem;
    }

    .section-prestamos p{
        font-size: 1rem;
        width: 90%;
        text-align: center;
        margin-bottom: 5%;
    }

    .section-prestamos span{
        font-size: 1.2rem;
    }

    .footer-gral {
        flex-direction: column;
        align-items: center;
    }

    .redes {
        margin-top: 15px;
    }
}



@media (max-width: 950px) {
    .header label {
        display: initial;
    }

    .header {
        padding: 20px 10%;
    }

    .header__completo {
        height: 150px;
    }

    .header .navegation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(1, 1, 1, 0.7);
        display: none;
        overflow-y: auto;
        /* Agregado para permitir el desplazamiento vertical */
        max-height: 300px;
        /* Ajusta según sea necesario */
    }

    .header .navegation ul li {
        width: 100%;
    }

    .header .navegation ul li a {
        padding: 8px 30px 8px 10%;
        text-align: center;
    }

    .header .navegation ul li ul {
        position: relative;
        width: 100%;
        left: 0;
        background-color: rgba(1, 1, 1, 0.7);
    }

    .header .navegation ul li ul li {
        background-color: rgba(1, 1, 1, 0.7);
    }

    .header .navegation ul li ul li a {
        margin-left: 50px;
    }

    .header .navegation ul li ul li ul {
        position: relative;
        width: 100%;
        left: 0;
    }

    #toggle:checked~.navegation {
        display: block;
    }
}


@media (min-width: 375px) and (max-width: 640px) {
    .header {
        position: fixed;
        background-color: #2F3339;
    }

    header {
        width: 100%;
    }

    .header .logo {
        display: flex;
        align-items: center;
    }

    .header .logo h1 {
        font-size: 12px;
        margin-left: 15px;
    }

    .banner{
        margin-top: -20%;
    }
}