@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');
*{
    margin: auto;
    padding: 10px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-optical-sizing: auto;
    text-shadow: #02784f 0.5px 0.5px 0.5px;
}

html{
    width: 100%;
}


header{
    position: fixed;
    top: 0%; left: 0%; right: 0;
    background: #06d675;
    box-shadow: 0.5px 10px #0a0a0a;
    padding: 0px 7%; 
    border-bottom: solid 1px #02a56c;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #02784f;
    padding: 10px 20px;
}

.logo {
    position:relative;
    margin-left: 0%;
    padding: 0%;
}

.logo img{
    width: 150px;
}

.menu {
    list-style: none;
    display: flex;
    align-items: center;
}

.menu li {
    position: relative;
}

.menu a {
    text-decoration: none;
    color: rgb(11, 11, 11);
    font-size: 18px;
    padding: 10px;
    display: block;
}

.menu li:hover > a {
    background-color: #0b0b0b;
    border-radius: 5px;
    border-bottom: #02784f solid 1px;
}

/* Submenú desplegable */
.submenu {
    display: none;
    position: relative;
    background-color: #b10d0d;
    top: 40px;
    left: 0;
    list-style: none;
    width: 30px;
    z-index: 10;
}

.submenu li {
    margin: 0;
    padding: 0;
}

.submenu a {
    padding: 10px;
    text-align: left;
}

.menu li:hover .submenu {
    display: block;

}

.menu-toggle {
    display: none;
    cursor: pointer;
    
}

.hamburger {
    width: 1px;
    height: 1px;
    background-color: rgb(9, 9, 9);
    position: absolute;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    width: 1px;
    height: 1px;
    background-color: rgb(134, 14, 14);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -10px;
}

.hamburger::after {
    top: 10px;
}

/*section banner*/

.banner-slider{

    width: 100%;
    max-height: 380px;
    position: relative;
    margin-top: 15px;
}
.banner{
    width: 85%;
	height: 400px;
	animation: banner 10s infinite linear alternate;
	background-size: 100% 100%;
	display: flex;
	justify-content: center;
	align-items: center;
    margin-top: 50px ;
    overflow: hidden;
    padding: 0%;
    border-radius: 4px;

}
@keyframes banner{
	0%, 20%{
		background-image: url("../img/portada.png");
	}
	25%, 45%{
		background-image: url("../img/portada.png");
	}
	50%, 70%{
		background-image: url("../img/portada.png");
	}
	75%, 100%{
		background-image: url("../img/portada.png");
	}
}

.leyenda{
    width: 88.5%;
    border-bottom: #02784f solid 1px;
    height: 10%;
    position: relative;
    
}


.texto-leyenda{
    display: flex;
    justify-content: center;
    font-size: 12px;
    text-shadow: #03915f 0.4px 0.4px 0.4px;
    height: 3rem;
}

.quienes-somos{
    display: flex;
    padding-top: 150px;
    padding-left: 0;
    text-align: center;
    text-shadow: #02a56c 0.4px 0.4px 0.4px;
    border-bottom: #02784f solid 1px;
}

.caja-1{
    display: flexbox;
    width: 100%;
    height:auto ;
}

.caja-img{
    width: 60%;
    margin-top: 2%;
    align-content: center;
}

.caja-img img{
    width: 80%;
    padding:0%;
    border-radius:4px;
}

.caja-texto{
    display: flex;
    width: 48%;
    text-align: justify;
    padding-bottom:3%;
    padding-top: 3%;
    
}

.vision-mision{
    display: flex;
    padding-top: 40px;
    padding-left: 0;
    text-align: center;
    text-shadow: #02a56c 0.4px 0.4px 0.4px
}

.caja-l{
    display: flexbox;
    width: 50%;
    height:auto ;
    justify-content: center;
    
}
.caja-l .caja-img3 img{
    display:flex;
    width: 65%;
}


.caja-l .caja-img2 img{
    display:flex;
    width: 41%;
}

.caja-l .caja-texto2{
    padding: 5%;
    width: 70%;
    text-align: justify;

}

footer{
    width: 100%;
    padding: 0%;
    margin: 0%;
    height: auto;
    border-top: solid #02784f 1px;
    border-radius: 0.3% ;
}

.form-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(245, 243, 243, 0.1);
    width: 100%;
    max-width: 400px;
}

h2 {
    margin-bottom: 20px;
    text-align: center;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 5px;
}

input {
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    padding: 10px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #218838;
}


@media only screen and (max-width: 760px) {

    header nav{
        background-color: rgba(255, 255, 255, 0.961);
    }

    .logo {
        margin-left: -50%;
    }
    nav .menu{
        margin-top: 12%;
        margin-left: -10%;
        width: 90%;
         
    }    
    .menu-toggle {
        display: block;
        background-color: #040404;   
    }

    .hamburger p{
        padding-top: 30px;
        margin-left: -12px;
    }


    /*banner*/
    .banner-slider{
        margin-top: 60%;
        padding: 0%;
        margin-left: 0;
        margin-right: 0%;
    }
    .banner{
        margin-top: 60%;
        margin-left:0% ;
        height:250px;
        width: 100%;
    }

    
    .quienes-somos{
        display: flex;
    }    

    .caja-img{
        width: 100%;
    }
    .caja-1 .caja-texto{
        width: 100%;
    }
    .vision-mision{
        margin-top: 0%;
        padding: 0;
        display: inline-block;
        width: 100%;

    }

    .caja-l{

        width: 110%;
        padding-left: 0%;
        margin-left: 0%;
    
    }
    .caja-texto2{
        display: flexbox;
        width: 10%;

    }
    .caja-r{
        display: inline-block;
        width: 100%;
    }
    .sub-cajas{
        display: flex;
        width: 100%;
        align-content: center;
        justify-content: center;
        padding-left: 0%;
        margin-bottom:0%;
    }

    .sub-cajas img {
        width: 350px;
        margin-bottom: 0%;
    }

    .caja-img2 {
        display: block;
        width: 100%;
        margin-left: -5% ;
    }
    footer{
        padding: 10px;
    }
    footer .form-container{
        width: 80%;
    }
}
