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

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

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

html{
    scroll-behavior: smooth;
}

body{
    margin: 0;
}

h1{font-size: 2.7em;margin: 0;}
h2{font-size: 2em; margin-top: 0; text-align: center;}
p{font-size: 1.2em}
ul{list-style: none;}
a{text-decoration: none;}

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

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

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: 0px;
}

.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;
    opacity: 0;
    position: absolute;
    top: 100%;
    width: 80vw;
    background-color:lightgray;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.submenu > li > a {
    padding: 1vh 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.35),
        rgba(0,0,0,0.35)
    ) 
    ,url(../IMG/palets-3.jpg);
    background-size: cover;
    height: 25vh;
    width: inherit;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgb(255, 255, 255);
    background-position: center center;
}

#categoria-ladrillos{
    margin-bottom: 6vh;
}
#categoria-ladrillos .container{
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 3vh;
}

.nombre-ladrillo{
    display: flex;
    justify-content: center;
    align-items: center;
}

.nombre-ladrillo h3{
    text-align: left;
    font-size: 0.9em; 
    font-family: "OpenSans"; 
    text-transform: uppercase;
    margin: 0 10% 0 0;
}

h3>span{
    font-size: 1.2em;
}

.icon{
    font-family: "Material Symbols Round";
    font-size: 2.5vw;
    color:rgb(0, 84, 48);
}

h3.non-ten-foto{
    margin: 1.8vh 0;
}

.nombre-ladrillo img{
    width: 45%;
    height: auto;
}

/*Tabla*/
table{
    background-color: rgb(245, 245, 245);
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    width: 90%;
    font-size: 0.8em;
    height: auto;
    border-collapse: collapse;
    box-shadow: 0px 8px 11px rgba(0, 0, 0, 0.3);
}

.muy-pegada-foto{
    margin-top: 1vh;
}

thead{
    background-color: rgb(1, 73, 42);
    color: white;
}

td, th{
    padding: 1vh;
}


/*Sección otros productos*/
#nuestros-productos{
    background-color:rgb(1, 73, 42);
    color: white;
    text-align: center;
}

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

#nuestros-productos a{
    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: 3vh 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;
}

/*footer*/
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: 50vh;
    }

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

    #categoria-ladrillos{
        margin: 10vh 0 20vh 0;
    }

    #categoria-ladrillos .container{
        margin-top: 10vh;
    }
    
    .nombre-ladrillo{
        width: 50%;
        max-width: 65%;
        justify-content: space-between;
        align-items: center;
    }

    .rasillon{
        margin-top: 5vw;
        justify-content: flex-end;
    }

    h3.non-ten-foto{
       margin-bottom: 5vh;
    }

    .nombre-ladrillo h3{
        font-size: 1.6vw;
        margin-right: 0;
        text-align: left;
        white-space: nowrap;
        position: relative;
        translate: -25% 0;
    }

    .nombre-ladrillo .translate-left{
        position: relative;
        translate: -40% 0;
    }

    .nombre-ladrillo img{
        width: 30vw;
        height: auto;
        position: relative;
        translate: -30% 0;
    }

    table{
        width: 65%;
        font-size: 1.25vw;
        height: auto;
        border-collapse: collapse;
        box-shadow: 0px 8px 11px rgba(0, 0, 0, 0.3);
    }

    .muy-pegada-foto{
        margin-top: 2vh;
    }
    
    td, th{
        padding: 2vh;
    }

    #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);
    }
    
    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;
        
    }
}