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

.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);
    z-index: 100000;
}

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

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

#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/ahorro-alcancia-monedas.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 */
}

/*CASAMIENTO*/

.health-section-2 {
    width: 100%;
    height: 552px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}

.image-container-2 {
    flex: 1;
    min-width: 300px;
}

.main-image-2 {
    width: 80%;
    height: auto;
    border-radius: 8px;
}

.content-2 {
    flex: 1;
    min-width: 300px;
    margin-left: 5%;
}

.content-2 h2 {
    color: #206C20;
    font-weight: lighter;
    margin-top: 0;
}

.subtitle-2 {
    font-size: 1.2em;
    font-weight: bold;
}

.line {
    border-top: 2px solid black;
    margin: 20px 0;
}

.content-2 p{
    margin-bottom: 4%;
}

/*RESIDENCIA ESTUDIANTIL*/
.health-section {
    width: 100%;
    min-height: 558px; /* Cambiado de height fijo a min-height */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    background-color: #F5F4F4;
    padding: 20px; /* Añadido padding para evitar que el contenido toque los bordes en móviles */
    box-sizing: border-box; /* Asegura que el padding no afecte el ancho total */
}

.image-container {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center; /* Centra la imagen en dispositivos móviles */
}

.main-image {
    width: 80%;
    max-width: 100%; /* Asegura que la imagen no exceda el ancho del contenedor */
    height: auto;
    border-radius: 8px;
}

.content {
    flex: 1;
    min-width: 300px;
    margin-right: 5%; /* Reducido de 10% a 5% */
    margin-left: 5%; /* Añadido margen izquierdo para simetría */
}

.content h2 {
    color: #206C20;
    font-weight: lighter;
    margin-top: 0;
}

.subtitle {
    font-size: 1.2em;
    font-weight: bold;
}

.line {
    border-top: 2px solid black;
    margin: 20px 0;
}

.content p {
    margin-bottom: 4%;
}


/*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{
        font-size: 1.8rem;
    }

    .health-section-2 {
        flex-direction: column;
        height: auto;
        margin-top: 4%;
    }

    .image-container-2,
    .content-2 {
        width: 90%;
        margin-left: 0;
    }

    .main-image-2 {
        width: 90%;
        margin-left: 5%;
    }

    .health-section {
        flex-direction: column;
        gap: 20px;
    }

    .image-container, .content {
        flex: none;
        width: 100%;
    }

    .main-image {
        width: 90%;
        margin-left: 0;
    }

    .content {
        margin-right: 0;
        margin-left: 0;
    }

    .banner-subsidio h3{
        font-size: 1.8rem;
    }

    .banner-subsidio p{
        width: 90%;
        font-size: 14px;
    }

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