: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;
}

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

.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: 2;
}

.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;
}

/*SECTION DE PRESENTACION*/

.banner-presentation {
    position: relative;
    /* Necesario para el posicionamiento de la capa superpuesta */
    margin-top: 15%;
    background-image: url(../assets/FOTO\ MUTUAL\ \(ORIGINAL\).webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 500px;
    width: 100%;
    z-index: -1;
    /* Asegúrate de que esté detrás del contenido */
}

.banner-presentation::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Ajusta el color y la opacidad según tus necesidades */
    z-index: 1;
    /* Asegúrate de que esta capa esté por encima de la imagen */
}

.presentation {
    display: flex;
    position: relative;
    justify-content: center;
    text-align: center;
    gap: 15%;
    padding: 5%;
    z-index: 2;
    /* Asegúrate de que el contenido esté por encima de la capa de color */
}

.box-text {
    align-content: center;
    width: 33%;
}

.box-text h1 {
    color: white;
    font-weight: bold;
    font-size: 1.8rem;
    margin-bottom: 5%;
}

.box-text p {
    color: white;
    font-size: 1.2rem;
    display: flex;
    flex-direction: column;
}


.box-img img {
    filter: drop-shadow(0px 4px 4px rgba(244, 242, 242, 0.60));
    height: auto;
    width: 350px;
    animation: movimiento 5s ease-in-out infinite;

}


@keyframes movimiento {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(30px);
    }

    100% {
        transform: translateX(0);
    }
}


/*SECTION DE SERVICIOS*/

.services {
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 5% 0;
    background-color: #d9d9d9;
}

.sections-gral {
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

.text-section {
    text-align: center;
    margin-bottom: 3%;
}

.text-section h3 {
    font-size: 20px;
    color: #206C20;
}


.text-section p {
    font-size: 20px;
    font-weight: bold;
    margin-top: 1%;
}

.articulos-services {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 3%;
}

.center-services {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.fila-1 .service-article {
    flex: 1;
    max-width: calc(33.333% - 20px);
}

.fila-2 .service-article {
    flex: 1;
    max-width: calc(40% - 10px);
}

.service-article {
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

.service-article h3 {
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: bold;
}

.service-article a {
    text-decoration: none;
}

.service-article i {
    color: #206C20;
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.sections-gral button {
    height: 43px;
    width: 130px;
    border-radius: 10px;
    background-color: #206C20;
    color: white;
    border: none;
    cursor: pointer;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sections-gral button:hover {
    background-color: #0e950e;
}

/* SECTION SUCURSALES */
.boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    padding: 6rem 2rem;
    background:
        linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 50%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 50%),
        url(../assets/foto-fondo.webp);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    position: relative;
}

.box {
    width: 280px;
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9);
    margin: 1rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    transform: translateY(0);
}

.box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.box-content a {
    text-decoration: none;
}

.box-content a p:hover {
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.box-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.box:hover .box-image {
    transform: scale(1.05);
}

.box-content {
    padding: 1.5rem;
}

.box-content h3 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    color: #206C20;
    font-weight: 600;
    transition: color 0.3s ease;
}

.box:hover .box-content h3 {
    color: #2A8D2A;
}

.box-content p {
    margin: 0.5rem 0;
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.text-sucursal-primario {
    position: absolute;
    top: 2rem;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 2;
}

.text-sucursal-primario h3 {
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;
}

.text-sucursal-primario p {
    font-size: 1.25rem;
    font-weight: 500;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.text-sucursal-primario h3 u {
    text-decoration-color: #2A8D2A;
    text-decoration-thickness: 4px;
    text-underline-offset: 8px;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.box {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.box:nth-child(1) {
    animation-delay: 0.1s;
}

.box:nth-child(2) {
    animation-delay: 0.3s;
}

.box:nth-child(3) {
    animation-delay: 0.5s;
}

.box:nth-child(4) {
    animation-delay: 0.7s;
}

/*SECTION DEBITO*/
.debito {
    width: 90%;
    margin: 0 auto;
}

.debito h3 {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin-top: 5%;
}

.debito-container {
    height: 600px;
    width: 90%;
    display: flex;
    justify-content: center;
    align-content: center;
    border-radius: 10px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.debito img {
    width: 389px;
    height: 315px;
    border-radius: 10px;
}

.debito-text {
    display: flex;
    flex-direction: column;
    margin-top: 10%;
    margin-left: 10%;
}

.debito-text p {
    width: 80%;
    display: flex;
    flex-direction: column;
    margin-top: 6%;
    font-size: 20px;
    font-weight: bold;
}

.debito-text a {
    text-decoration: none;
}

.debito-text a button {
    height: 43px;
    width: 130px;
    border-radius: 10px;
    border: none;
    background-color: #206C20;
    color: white;
    margin-top: 5%;
}

.debito-text button:hover {
    background-color: #2A8D2A;
    cursor: pointer;
}
















/*SECTION CASA CENTRAL*/
.casa-central {
    background-color: #D9D9D9;
    height: 410px;
    width: 90%;
    display: flex;
    justify-content: center;
    align-content: center;
    border-radius: 10px;
    margin-left: 5%;
    margin-bottom: 5%;
    margin-top: 5%;
}

.casa-gral {
    display: flex;
}

.container-casatext {
    display: flex;
    flex-direction: column;
}

.container-casatext a {
    text-decoration: none;
}

.container-casatext p {
    width: 80%;
    display: flex;
    flex-direction: column;
    margin-top: 2%;
    margin-left: 10%;
    font-size: 16px;
    font-weight: bold;
}


.container-casatext button {
    height: 43px;
    width: 130px;
    border-radius: 10px;
    background-color: #206C20;
    color: white;
    border: none;
    margin-top: 2%;
    margin-left: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.container-casatext button:hover {
    background-color: #0e950e;
}

.container-casatext h2 {
    margin: 2% 0 0 10%;
    font-size: 24px;
    font-weight: bold;
}


.casa-img img {
    width: 472px;
    height: 410px;
    border-radius: 0 10px 10px 0;
}

/*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 only screen and (max-width: 480px) {
    /* Ajustes para pantallas pequeñas */
    .header .logo {
        font-size: 1.2em;
    }

    .header .navegation ul li a {
        font-size: 0.9em;
    }

    .btn-sistema {
        font-size: 0.8em;
        padding: 3px;
    }

    .presentation {
        flex-direction: column;
        gap: 2%;
        padding: 3%;
    }

    .box-text h1 {
        font-size: 1.5rem;
    }

    .box-img img {
        width: 280px;
    }

    .debito{
        margin-top: 10%;
        margin-bottom: -20%;
    }

    .debito-text a button {
        margin: 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 5%;
    }

    .debito-card img {
        width: 90%;
        height: auto;
        margin-top: -50% ;
    }

    .debito-text p {
        font-size: 20px;
        width: 100%;
        text-align: center;
        margin: 0 auto;
    }
}



@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-presentation {
        width: 100%;
    }

    .presentation {
        display: flex;
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }

    .box-text {
        display: flex;
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }

    .banner-presentation .box-text button {
        height: 60px;
        width: 160px;
        margin: 5% auto;
        font-size: 16px;
    }

    .container-casatext button {
        height: 60px;
        width: 160px;
        margin: 15% auto;
        font-size: 16px;
    }

    .box-img {
        width: 100%;
        height: auto;
    }


    .services {
        text-align: center;
        /* Centra el texto en todo el contenedor */
    }

    .articulos-services {
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Alinea los artículos al centro */
        gap: 20px;
        margin-top: 3%;
    }

    .center-services {
        flex-direction: column;
        /* Cambia la disposición a columna */
        align-items: center;
        /* Alinea los artículos al centro */
        gap: 20px;
        /* Espacio entre los artículos */
    }

    .fila-1 .service-article,
    .fila-2 .service-article {
        max-width: 90%;
        /* Ajusta el ancho al 90% para dar margen a los lados */
        margin-bottom: 20px;
        /* Espacio entre los artículos */
    }

    .boxes {
        padding: 4rem 1rem;
    }

    .box {
        width: 100%;
        max-width: 320px;
    }

    .text-sucursal-primario h3 {
        font-size: 2rem;
    }

    .text-sucursal-primario p {
        font-size: 1rem;
    }

    .casa-central {
        flex-direction: column;
        /* Cambia la dirección del flex a columna */
        height: auto;
        /* Ajusta la altura automáticamente */
    }

    .casa-img img {
        width: 100%;
        /* Ajusta el ancho de la imagen al 100% */
        height: auto;
        /* Ajusta la altura automáticamente */
        border-radius: 10px;
        /* Redondea los bordes en pantallas pequeñas */
    }

    .container-casatext {
        align-items: center;
        /* Centrar el texto horizontalmente */
        width: 100%;
        /* Asegura que el texto ocupe el 100% del ancho */
    }

    .container-casatext p,
    .container-casatext button,
    .container-casatext h2 {
        margin-left: 0;
        /* Elimina el margen izquierdo */
        text-align: center;
        /* Centra el texto */
    }


    .casa-gral {
        display: flex;
        flex-direction: column;
    }

    .casa-gral img {
        width: 100%;
        height: 300px;
        display: flex;
        justify-content: center;
        margin-top: 10%;
        border-radius: 0 0 10px 10px;
    }

    .casa-central {
        height: auto;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .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;
    }

    .banner-presentation {
        width: 100%;
        height: auto;
        margin-top: -20%;
    }

    .presentation {
        display: flex;
        justify-content: center;
        width: 100%;
        align-items: center;
    }

    .box {
        margin: 10% 0;
    }

    .box-img img {
        width: 100%;
    }

    .box-text {
        display: flex;
        justify-content: center;
        text-align: center;
        width: 90%;
    }

    .box-text button {
        margin: 50px auto;
    }

    .services {
        text-align: center;
        /* Centra el texto en todo el contenedor */
    }

    .articulos-services {
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Alinea los artículos al centro */
        gap: 20px;
        margin-top: 3%;
    }

    .center-services {
        flex-direction: column;
        /* Cambia la disposición a columna */
        align-items: center;
        /* Alinea los artículos al centro */
        gap: 20px;
        /* Espacio entre los artículos */
    }

    .fila-1 .service-article,
    .fila-2 .service-article {
        max-width: 90%;
        /* Ajusta el ancho al 90% para dar margen a los lados */
        margin-bottom: 20px;
        /* Espacio entre los artículos */
    }

    .casa-gral {
        display: flex;
        flex-direction: column;
    }

    .casa-gral img {
        width: 100%;
        height: 300px;
        display: flex;
        justify-content: center;
        margin-top: 10%;
        border-radius: 0 0 10px 10px;
    }

    .casa-central {
        height: auto;
        width: 100%;
        display: flex;
        justify-content: center;
    }

}

@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-presentation {
        width: 109.99%;
        height: auto;
        margin-top: -19%;
    }

    .presentation {
        display: flex;
        justify-content: center;
        width: 100%;
        align-items: center;
    }

    .box {
        margin: 20% 0;
    }

    .box-text {
        display: flex;
        justify-content: center;
        text-align: center;
        width: 90%;
    }

    .box-text h1 {
        font-size: 2rem;
        margin-bottom: 5%;
    }

    .box-text p {
        display: flex;
    }

    .box-text button {
        justify-content: center;
        align-content: center;
        align-items: center;
        display: flex;
        margin-left: 35%;
        margin-bottom: 10%;
    }

    .box-img img {
        width: 60%;
        height: 60%;
        display: flex;
        margin-left: 22%;
    }

    .services {
        text-align: center;
        /* Centra el texto en todo el contenedor */
        width: 109.99%;
    }

    .articulos-services {
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Alinea los artículos al centro */
        gap: 20px;
        margin-top: 3%;

    }

    .center-services {
        flex-direction: column;
        /* Cambia la disposición a columna */
        align-items: center;
        /* Alinea los artículos al centro */
        gap: 20px;
        /* Espacio entre los artículos */
    }

    .fila-1 .service-article,
    .fila-2 .service-article {
        max-width: 90%;
        /* Ajusta el ancho al 90% para dar margen a los lados */
        margin-bottom: 20px;
        /* Espacio entre los artículos */
    }

    .sections-gral button {
        margin-left: 35%;
    }



    .text-sucursal-primario h3 {
        color: white;
    }

    .boxes {
        justify-content: center;
        /* Centra el contenido en la fila */
        margin-right: -10%;
        padding: 30% 0;
    }

    .box {
        margin-top: 10%;
        margin-bottom: 10%;
        width: calc(45% - 10px);
        /* Ajusta el ancho para 2 cajas por fila */
    }

    .casa-gral {
        display: flex;
        flex-direction: column-reverse;
    }

    .casa-gral img {
        width: 100%;
        height: 300px;
        display: flex;
        justify-content: center;
        margin-bottom: 10%;
        margin-top: auto;
        top: 0;
        border-radius: 10px 10px 0 0 ;
    }

    .casa-central {
        height: auto;
        width: 100%;
        display: flex;
        justify-content: center;

    }

    .container-casatext p {
        width: 90%;
        font-size: 14px;
        text-align: center;
    }

    .container-casatext h2 {
        font-size: 20px;
    }
}