
: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%;
    height: 50%x;
    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: 0;
}

.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/asistente\ atendiendo.jpg);
    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 */
}

/*SECTION SLOGAN*/

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

.gral-contact{
    margin: 5% 5%;
    display: flex;
}

.gral-contact p{
    font-size: 1.6rem;
    margin: 5% 0 0 5%;
    text-align: center;
}


/*CONTACTOS*/
.contact-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 0;
    text-align: center;
}

.contact-section h3 {
    font-size: 2.5rem;
    text-align: center;
    color: var(--secondary-color);
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.branch-card {
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease;
}

.branch-card a img {
    width: 100%;
    margin-top: 5%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}


.branch-card a img:hover {
    transform: scale(1.05);
}

.branch-card h2 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.4rem;
    margin: 5 auto;
}

.branch-card p {
    margin: 10px 0;
}

.branch-card a {
    color: var(--primary-color);
    text-decoration: none;
}

.branch-card a:hover {
    text-decoration: underline;
}


/*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;
    }

    .gral-contact, p{
        display: flex;
        flex-direction: column;
        font-size: 1.4rem;
    }

    .banner h1{
        font-size: 2rem;
    }

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

    .branches-grid {
        grid-template-columns: 1fr;
    }

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

    .redes {
        margin-top: 15px;
    }

    .gral-contact p{
        font-size: 1.2rem;
        width: 100%;
        margin: 0 auto;
        padding-top: 8%;
    }

    .gral-contact img{
        width: 70%;
        height: auto;
        margin: 0 auto;
    }

    .branch-card h2{
        font-size: 1.4rem;
    }
}


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