@font-face {
    font-family: 'Material Symbols Round';
    font-style: normal;
    src: url(../FONTS/MaterialSymbolsRounded[FILL\,GRAD\,opsz\,wght].woff2) format('woff');
}

@font-face {
    font-family: 'Archivo';
    src: url(../FONTS/Archivo-VariableFont_wdth\,wght.ttf);
}

@font-face {
    font-family: 'OpenSans';
    src: url(../FONTS/OpenSans-Italic-VariableFont_wdth\,wght.ttf);
}

.material-symbols-round {
    font-family: 'Material Symbols Round';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;  /* Preferred icon size */
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    margin-right: 0.2vh;
    color:rgb(0, 84, 48);
}

*{
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html{
    scroll-behavior: smooth;
}

body{
    margin: 0;
}

h1{font-size: 7vw; margin: 0;}
h2{font-size: 2em; margin-top: 0; text-align: center;}
p{font-size: 1.2em}
ul{list-style: none;}
ul.bullets{list-style: disc; font-size: 1.1em;} /*aviso legal*/
a{text-decoration: none;}
ol li::marker{font-weight: bold;} /*marcador del ol en aviso legal en negrita*/

button{
    font-size: 1,25em;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 15px;
    border: 2px solid rgb(0, 84, 48);
    color: white;
    background-color: rgb(0, 84, 48);
    transition: background-color .4s, border-color .4s;
}

button:hover{
    background-color: rgb(9, 103, 51);
    border: 2px solid rgb(9, 103, 51);
}

.container{
    max-width: 1600px;
    margin: auto;
}

/*para el aviso legal*/

.bold{
    font-weight: bold;
}

.bold a{
    color: black;
}

.bold a:hover{
    color:rgb(0, 84, 48);
}
/**/

header{
    background-color: rgb(245,245,245);
}

header .container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.logo{
    margin: 4vh;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.logo-img{
    width: 30%;
    height: auto; 
}

.logo-nombre{
    font-size: 4vw;
    white-space: nowrap;
    color: rgb(0, 84, 48);
    font-family:'Archivo';
    font-weight: 900;
    margin: 2vh;
}

.menu{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    width: 100%;
    margin-top: 0;
}

.menu > li{
    text-align: center;
    margin: 1vh;
    position: relative; /* Elemento padre de submenu */
    display: flex;
    justify-content: center;
}

.nav-link{
    color: black;
    font-weight: bold;
    white-space: nowrap;
}

.nav-link:hover{
    color: rgb(0, 84, 48);
}

.submenu {
    margin: 0;
    padding: 0;
    display: none;
    position: absolute;
    top: 100%;
    width: 80vw;
    background-color:lightgray;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.submenu > li > a {
    padding: 1.5vh 4vh;
    color: black;
    text-align: center;
    display: block;
    white-space: nowrap;
    transition: background-color 0.3s;
}

.submenu > li > a:hover {
    background-color: rgb(175, 174, 174);
}

.menu > li:hover .submenu {
    display: block;
    z-index: 1000;
    opacity: 1;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#banner{
    background-image: linear-gradient(
        0deg, 
        rgba(0,0,0,0.2),
        rgba(0,0,0,0.2)
    ) 
    ,url(../IMG/palets-madera.jpg);
    background-size: cover;
    height: 30vh;
    width: auto;
    text-align: center;
    white-space: nowrap;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgb(255, 255, 255);
    background-position: center center;
}

#sobre-nosotros{
    display:flex;
}

#sobre-nosotros .container{
    text-align: center;
    padding: 15vh 12px;
}

#sobre-nosotros p{
    margin-right: 2vw;
}

#sobre-nosotros button{
    margin: 20px 0px;
}

#nuestros-productos{
    background-color:rgb(1, 73, 42);
    color: white;
    text-align: center;
}

#nuestros-productos .container{
    padding: 80px 12px;
}

#nuestros-productos h3{
    color: rgb(255, 255, 255);
    font-weight: bold;
    font-size: 2.5em;
    text-shadow: 2px 2px 10px rgba(0,0,0,1);
}

#nuestros-productos a:hover h3{
    color: rgb(200, 200, 200);
}

#nuestros-productos .desktop-img{
    display: none;
}

.huecos, .gran-formato, .perforados, .termo, .otros{
    background-color: rgb(245,245,245);
    height: 16vh;
    width: auto;
    margin: 2vh 1vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
}

.huecos{
    background-image: url(../IMG/HD.png);
    background-size: contain;
    background-size: 43vh;
    background-repeat: no-repeat;
    background-position: center center;
}

.perforados{
    background-image: url(../IMG/PT10.png);
    background-size: contain;
    background-size: 45vh;
    background-repeat: no-repeat;
    background-position: center center;
}

.termo{
    background-image: url(../IMG/T19.png);
    background-size: contain;
    background-size: 33vh;
    background-repeat: no-repeat;
    background-position: center center;
}

.gran-formato{
    background-image: url(../IMG/HT332012.png);
    background-size: contain;
    background-size: 30vh;
    background-repeat: no-repeat;
    background-position: center center;
}

.otros{
    background-image: url(../IMG/botelleros.png);
    background-size: contain;
    background-size: 35vh;
    background-repeat: no-repeat;
    background-position: center center;
}

#contacto .container{
    padding: 10vh 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#contacto ul{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
}

#contacto ul li{
    display: flex;
    justify-content: center;
    margin: 1vh 0;
    white-space: nowrap;
}

#contacto ul .direccion{
    margin: 3vh 0;
}

.txt{
    text-align: left;
}

.bold{
    font-weight: bold;
}

.avisoLegal{
    padding: 3vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.titulo-aviso-legal{
    margin-bottom: 0;
}

.avisoLegal p{
    text-align: left;
    font-size: 1.1em;
}

.avisoLegal>p{
    padding-inline-start: 30px;
}

.avisoLegal ol{
    margin-top: 0;
    display: flex;
    flex-direction: column;
}

footer{
    width: 100%;
    background-color: lightgray;
    padding: 2vw;
}

footer a{
    font-size: 4vw;
    color: black;

}

footer a:hover{
    color:rgb(0, 84, 48);
}

footer p{
    font-size: 4vw;
}

@media (min-width: 780px){
    header{
        position: fixed;
        width: 100%;
        top: 0%;
    }

    header .container{
        max-width: initial;
        flex-direction: row;
        justify-content: space-between;
        height: 100px;
    }

    .logo{
        margin: 1vw 1vw 1vw 3vw;
    }

    .logo-img{
        width: 8.5vw;
        height: auto; 
    }
    
    .logo-nombre{
        font-size: 1.75vw;
        font-family: "Archivo";
        white-space: nowrap;
        color: rgb(0, 84, 48);
        font-weight: 900;
        margin-left: 0;
        margin-right: 0;
    }
    
    .menu{
        flex-direction: row;
        justify-content: center;
        align-items: center;
        margin: 0 3vw 0 0;
    }

    .menu > li{
        margin: 0 1.4vw;
        font-size: 1.5vw;
    }

    .submenu{
        width: auto;
    }

    .submenu > li > a {
        padding: 1vh 1.5vw;
        font-size: 19px;
    }

    #banner{
        margin-top: 100px;
        padding: 10vh;
        height: 70vh;
    }

    /*margen para el aviso legal también y que no quede debajo del header*/
    .avisoLegal{
        margin-top: 120px;
    }

    .avisoLegal{
        padding: 3vh 5vw;
    }

    .avisoLegal p{
        text-align: justify;
    }

    #banner h1{
        font-size: 4.5vw;
        font-weight: 700;
    }

    #sobre-nosotros{
        height: auto;
        box-sizing: auto;
        justify-content: center;
        align-items: center;
    }

    #sobre-nosotros .container{
        display: flex;
        justify-content: center;
        align-items: center;
        padding:10vh 0vh;
    }

    #sobre-nosotros .img-container{
        background-image: url(../IMG/esta-guapa.JPG);
        background-size: contain;
        background-repeat: no-repeat;
        height: 380px;
        width: 625px;
        margin: 40px;
    }

    .sobre-nosotros-txt{
        width: 50%;
        max-width: 600px;
        padding-left: 5.2vw;
        padding-right: 0.7vw;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: initial;
        font-size: 18px;
    }

    #sobre-nosotros h2{
        margin: 0;
        padding: 0;
        text-align: left;
        white-space: nowrap;
    }

    #sobre-nosotros button{
        margin: 10px 0px;
        font-size: 19px;
    }

    #nuestros-productos{
        background-color: rgb(29, 88, 62);
        font-size: 18px;
    }

    #nuestros-productos .container{
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    #nuestros-productos .productos{
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #nuestros-productos .productos > div{
        width: 25vw;
        height: 25vh;
        background-image: none;
        background-color: white;
    }

    #nuestros-productos .desktop-img{
        display: block;
        height: auto;
    }

    .desktop-img{
        width: 12vw;
        transition: width .3s;
    }

    #nuestros-productos a{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    #nuestros-productos a:hover .desktop-img{
        width: 15vw;
    }

    #nuestros-productos h3{
        font-family: 'OpenSans';
        padding: 0;
        white-space: nowrap;
        color: rgb(58, 57, 57);
        font-size: 2vw;
        margin: 0;
        text-shadow: none;
    }
    
    #nuestros-productos a:hover h3{
        color: rgb(58, 57, 57);
    }
    
    #contacto{
        font-size: 20px;
    }

    #contacto .container{
        flex-direction: row;
        justify-content: center;
    }
    
    #contacto .cuadro-contacto{
        width: 50%;
        max-width: 600px;
        margin-top: 5vh;
        padding-left: 5vw;
        padding-right: 0.7vw;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }

    #contacto .img-container{
        scroll-margin-top: 100px;
        background-image: url(../IMG/DSC00592.JPG);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center center;
        height: 50vh;
        width: 50vw;
        margin: 10vh 2vw;
    }

    #contacto h2{
        margin: 0;
        text-align: left;
    }

    #contacto ul{
        display: initial;
        text-align: left;
        padding: 1vw 2vw 2vw;
        padding-left: 0;
        margin: 0;
    }

    #contacto ul li{
        justify-content: flex-start;
        width: auto;
        margin: 1.5vh 0;
    }

    .bold br{
        display: none;
    }

    .material-symbols-round{
        font-size: 2vw;
    }
    
    footer{
        padding: 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    footer a{
        margin-left: 3vw;
        font-size: 1.1em;
    }

    footer p{
        margin: 0 3vw 0 0;
        font-size: 1.1em;
    }

}