/*
#1C2E3C  rgba(28,46,60,1)     azul oscuro
#57A2DB  rgba(87,162,219,1)   azul claro 
#DADAD8  rgba(218,218,216,1)  gris claro
#F9E79F  rgba(249,231,159,1)  amarillo pastel

#233055	rgba(35, 48, 85, 1)
#32406a	rgba(50, 64, 106, 1)
#3f61a8	rgba(63, 97, 168, 1)
#F9E79F rgba(249,231,159,1)
#ffffff	rgba(255, 255, 255, 1)
*/
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
/*Para titulos*/
.mont{
    font-family: "Montserrat", serif;
    font-optical-sizing: auto;
}
/*Para textos*/
.lora{
    font-family: "Lora", serif;
    font-optical-sizing: auto;
}
*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Lora", serif;
    font-optical-sizing: auto;
}
#fondo{
    position: fixed;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../img2/logo-fondo.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    
}
html{
    scroll-behavior: smooth;
}
body{
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

/*****************************
        CABECERA
******************************/
header{
    height: 450px;
    display: flex;
    justify-content: space-around;
    background-image: url("../img2/logo-row.png");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}


/*****************************
        MENU NAVEGACION
******************************/
nav {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 20px 0;
  }
  
  nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
    align-items: center;
  }
  
  nav li {
    position: relative;
  }
  
  li a {
    text-decoration: none;
    padding: 15px;
    font-size: 1.4em;
    font-weight: bolder;
    color: #233055;
    font-family: "Montserrat", serif;
    font-optical-sizing: auto;
    box-shadow: 0px 10px 10px 5px #233055;
    transition: box-shadow 0.3s;
  }
  
  li a:hover {
    box-shadow: 0px 15px 15px 5px #3f61a8;
  }
  
  .submenu {
    display: none;
    position: absolute;
    top: calc(100% + 40px);
    left: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    z-index: 10;
    gap: 50px;
  }
  .submenu li a {
    text-decoration: none;
    padding: 15px;
    font-size: 1.4em;
    font-weight: bolder;
    color: #233055;
    font-family: "Montserrat", serif;
    font-optical-sizing: auto;
    box-shadow: 0px 10px 10px 5px #233055;
    transition: box-shadow 0.3s;
    background-color: white;
  }
  .submenu li a:hover{
    box-shadow: 0px 15px 15px 5px #3f61a8;
  }
  
  .btn-submenu.open .submenu {
    display: flex;
  }

/*****************************
        CONTENIDO
******************************/
main{
    display: flex;
    flex: 1;
    flex-direction: column;
    margin: 40px;
    gap: 60px;
}
h2{
    font-family: "Montserrat", serif;
    font-optical-sizing: auto;  
    margin-bottom: 10px;
    font-size: 2em;
    text-align: center;
    margin-bottom: 15px;
    color: #233055;
}
section p{
    font-family: "Lora", serif;
    font-optical-sizing: auto;
    text-align: justify;
    font-size: 18px;
    line-height: 1.7;
    color: #333;
}

#sobreNosotros p{
    font-size: 22px;
}

#caracteristicas{
    width: 80%;
    margin-right: auto;
    margin-left: auto;
    padding: 15px;
    box-shadow: 0px 10px 10px 10px rgba(35, 48, 85, 0.8);
    background-color: rgba(63, 97, 168, 0.4);

}

#comercios > div{
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 30px;
}
#comercios > div  div{
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 30%;
    padding: 20px;
}
#comercios > div  div:nth-child(1){
    box-shadow: 0px 10px 10px 10px rgba(35, 48, 85, 0.8);
    background-color: rgba(249,231,159,0.4);
}
#comercios > div  div:nth-child(3){
    box-shadow: 0px 10px 10px 10px rgba(35, 48, 85, 0.8);
    background-color: rgba(249,231,159,0.4);
}

.imgSec{
    width: 100%;
    height: 300px;
}

.hosteleria{
    display: flex;
    justify-content: space-around;
    margin-top: 40px;
    margin-bottom: 40px;
}
.hosteleria1{
    width: 50%;
    margin-right: auto;
    margin-left: auto;
    margin-top: 20px;
    padding: 30px;
    box-shadow: 0px 10px 10px 10px rgba(35, 48, 85, 0.8);
    background-color: rgba(249,231,159,0.4);
}
.hosteleria div{
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30%;
    padding: 20px;
}
.hosteleria div:nth-child(1){
    box-shadow: 0px 10px 10px 10px rgba(35, 48, 85, 0.8);
    background-color: rgba(249,231,159,0.4);
}
.hosteleria div:nth-child(3){
    box-shadow: 0px 10px 10px 10px rgba(35, 48, 85, 0.8);
    background-color: rgba(249,231,159,0.4);
}

#balanza > div{
    display: flex;
    justify-content: space-around;
    margin-top: 40px;
    margin-bottom: 40px;
}
#balanza > div div{
    display: flex;
    flex-direction: column;
    width: 30%;
    padding: 20px;
}
#balanza > div div:nth-child(1){
    justify-content: center;
    box-shadow: 0px 10px 10px 10px rgba(35, 48, 85, 0.8);
    background-color: rgba(249,231,159,0.4);
}
#balanza > div div:nth-child(2){
    justify-content: center;
}
#balanza > div div:nth-child(3){
    height: 50%;
    align-self: flex-end;
    box-shadow: 0px 10px 10px 10px rgba(35, 48, 85, 0.8);
    background-color: rgba(249,231,159,0.4);
}
#balanza h2 + p{
    margin-right: 15%;
    margin-left: 15%;
}
#balanza div + p,#balanza div + p + p{
    margin-right: 100px;
    margin-left: 100px;
    margin-bottom: 20px;
}

#etiquetado{
    width: 80%;
    margin-right: auto;
    margin-left: auto;
}
#etiquetado > div{
    display: flex;
    justify-content: space-around;
    margin-top: 40px;
    margin-bottom: 40px;
}
#etiquetado >div div{
    display: flex;
    flex-direction: column;
    width: 45%;
    padding: 20px;
}
#etiquetado > div div:nth-child(2){
    box-shadow: 0px 10px 10px 10px rgba(35, 48, 85, 0.8);
    background-color: rgba(249,231,159,0.4);
}
#etiquetado > div div:nth-child(1){
    justify-content: end;
}
#etiquetado p:last-child{
    margin-top: 30px;
}

#contacto{
    padding-top: 40px;
    border-top: 4px dotted #1C2E3C;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

#contacto div{
    width: 45%;
    padding: 20px;
    box-shadow: 0px 10px 10px 10px rgba(35, 48, 85, 0.8);
}
#contacto div:nth-child(2){
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 50%;
    background-color: rgba(63, 97, 168, 0.4);
}
#contacto a{
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}
/*****************************
        PIE DE PÁGINA
******************************/
footer{
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #233055;
    color: white;
    padding: 25px;
    font-size: 1.4em;

}


/*****************************
        DISEÑO RESPONSIVE
******************************/
@media (min-width: 800px) and (max-width: 1100px){

    header{
        height: 300px;
    }

    #comercios > div{
        flex-direction: column;
    }
    #comercios > div div{
        width: 80%;
    }

    .hosteleria1{
        width: 80%;
    }
    .hosteleria{
        flex-direction: column;
    }
    .hosteleria div{
        width: 80%;
        margin-right: auto;
        margin-left: auto;
    }

    #balanza > div{
        flex-direction: column;
    }
    #balanza > div div{
        width: 80%;
        margin-right: auto;
        margin-left: auto;
    }
    #etiquetado{
        width: 100%;
    }
    #etiquetado > div div{
        width: 50%;
        margin-right: auto;
        margin-left: auto;
    }

    #contacto{
        flex-direction: column;
        gap: 30px;
    }
    #contacto div{
        width: 80%;
    }

}

@media (min-width: 481px) and (max-width: 800px){
    header{
        height: 180px;
    }
    h2{
        font-size: 1.5em;
    }
    li a{
        font-size: 1.1em;
    }

    .submenu li a{
        font-size: 1.2em;
    }

    #comercios > div{
        flex-direction: column;
    }
    #comercios > div div{
        width: 80%;
    }

    .hosteleria1{
        width: 80%;
    }
    .hosteleria{
        flex-direction: column;
    }
    .hosteleria div{
        width: 80%;
        margin-right: auto;
        margin-left: auto;
    }

    #balanza > div{
        flex-direction: column;
    }
    #balanza > div div{
        width: 80%;
        margin-right: auto;
        margin-left: auto;
    }
    #balanza h2 + p{
        margin-right: 0;
        margin-left: 0;
    }
    #balanza div + p,#balanza div + p + p{
        margin-right: 0;
        margin-left: 0;
        margin-bottom: 20px;
    }
    #etiquetado{
        width: 100%;
    
    }
    #etiquetado >div{
        flex-direction: column;
    }
    #etiquetado > div div{
        width: 100%;
        margin-right: auto;
        margin-left: auto;
    }

    #contacto{
        flex-direction: column;
        gap: 30px;
    }
    #contacto div{
        width: 80%;
    }
    footer{
        font-size: 1.1em;
    }
    nav{
        justify-content: center;
    
    }
    ul{
        margin: 5px;
        padding: 20px;
        justify-content: center;
    }

}


@media (max-width: 481px){
    header{
        height: 100px;
    }
    h2{
        font-size: 1.3em;
    }
    li a{
        font-size: 1em;
        padding: 5px;
    }
    .submenu{
        gap: 15px;
        top: calc(100% + 10px);
    }
    .submenu li a{
        font-size: 0.8em;
        padding: 5px;
    }

    #comercios > div{
        flex-direction: column;
    }
    #comercios > div div{
        width: 80%;
    }

    .hosteleria1{
        width: 80%;
    }
    .hosteleria{
        flex-direction: column;
    }
    .hosteleria div{
        width: 80%;
        margin-right: auto;
        margin-left: auto;
    }

    #balanza > div{
        flex-direction: column;
    }
    #balanza > div div{
        width: 80%;
        margin-right: auto;
        margin-left: auto;
    }
    #balanza h2 + p{
        margin-right: 0;
        margin-left: 0;
    }
    #balanza div + p,#balanza div + p + p{
        margin-right: 0;
        margin-left: 0;
        margin-bottom: 20px;
    }
    #etiquetado{
        width: 100%;
    
    }
    #etiquetado >div{
        flex-direction: column;
    }
    #etiquetado > div div{
        width: 100%;
        margin-right: auto;
        margin-left: auto;
    }

    #contacto{
        flex-direction: column;
        gap: 30px;
    }
    #contacto div{
        width: 80%;
    }
    footer{
        font-size: 0.8em;
    }

    nav{
        justify-content: center;
    
    }
    nav ul{
        gap: 5px;
    }
    ul{
        margin: 5px;
        padding: 10px;
        justify-content: center;
    }


}