:root{
    --blue: #0955a5; 
}
html{
    font-size: 16px;
    font-family: system-ui;
    scroll-behavior: smooth;
}
body{
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-height: 150vh;
}
a{
    color: inherit;
    text-decoration: none;
}
img{
    width: 100%;
}
.flex{
    display: flex;
    flex-wrap: wrap;
}
.margin{
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}
.center{
    text-align: center;
}
.right{
    text-align: right;
}
.shadow{
    text-shadow: 0px 0px 10px rgba(0,0,0,0.4);
}
header{
    padding: 5px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    color: white;
    z-index: 2;
    transition: 0.5s all;
}
header.contrast{
    background-color: white;
    color: black;
}
header .logo{
    width: 30%;
    text-align: center;
}
header .logo img{
    width: 30%;
}
header p{
    margin: 0;
}
header.contrast p{
    display: none;
}
header .menu{
    width: 70%;
    padding-top: 15px;
}
header .action i{
    font-size: 1.5rem;
    cursor: pointer;
}
header .action i:hover{
    transform: scale(1.1);
}
header ul{
    padding: 0;
    margin: 0;
    overflow: hidden;
    height: 0;
}
header ul li{
    list-style: none;
    margin: 1rem 0;
}
header.show ul{
    height: inherit;
}
header.show p{
    display: inherit;
}
header.show{
    background-color: white;
    color: black;
}
.hero{
    background-image: url(img/wallpaper_waifu2x_photo_noise1_scale.png);
    background-size: cover;
    background-position: center;
    color: white;
    text-shadow: 0px 0px 15px black;
    transition: 0.2s background-position linear;
}
.hero .filter{
    padding: 15rem 0;
    backdrop-filter: brightness(0.8);
    height: 100vh;
    box-sizing: border-box;
}
.hero h1{
    font-size: min(10vw, 60px);
}
.nosotros{
    /* background-image: url(img/alimentos-op.png); */
    background-size: 200px;
    padding: 3rem 0;
    background-attachment: fixed;
}
.nosotros p{
    /* backdrop-filter: blur(8px) brightness(1.3); */

    border-radius: 1rem;
}
.nosotros .cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    gap: 20px;
}

.nosotros .card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: min(25%, 100%);
    flex: 1 1 25%;
    min-width: 250px;
    transition: transform 0.3s ease;
    text-align: center;
    gap: 20px; 
    overflow: hidden;
    background-size: cover;
    color: white;
    text-shadow: 0px 0px 8px rgba(0,0,0,1);
    background-position: center;
}

.nosotros .card:hover {
    transform: translateY(-5px);
}

.nosotros .card h3 {
    margin-top: 0;
    /* color: #003366; */
    margin: 20px 0;
}

.nosotros .card p {
    font-size: 0.95rem;
    padding: 1rem;
}
.nosotros .content{
    background-color: rgba(255,255,255,0.6);
    padding: 1rem 0;
    backdrop-filter: blur(10px);
}
.nosotros .card .imagen{
    background-size: cover;
    height: 220px;
}
.nosotros .card:nth-child(1){
    background-image: url(img/maquinaria.jpg);
}
.nosotros .card:nth-child(2){
    background-image: url(img/desempeno.jpg);
}
.nosotros .card:nth-child(3){
    background-image: url(img/asesoria.jpg);
}
.nosotros .card:nth-child(4){
    background-image: url(img/innovacion.jpg);
}
iframe{
    width: 100%;
    height: 50vh;
}
.map{
 width: 100%;
}
.conversion{
    text-align: center;
    width: 100%;
}
.materias{
    background-image: url(img/pan.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-bottom: 20rem;
}
.materias .container{
    padding: 1rem 0;
    background-color: rgba(212, 169, 95, 0.8);
    color: white;
    backdrop-filter: blur(2px);
}
.producto h3{
    text-decoration: underline var(--blue);
}
.productos .card{
    width: min(25%, 100%);
    flex: 1 1 25%;
    min-width: 250px;
    background-size: cover;
    background-position: center;
    padding: 8rem 1rem;
}
.productos h1{
    text-align: center;
    color: white;
    text-shadow: 0px 0px 15px rgba(0,0,0,0.8);
}
.productos .card:nth-child(1){
    background-image: url(img/hornos.jpg);
}
.productos .card:nth-child(2){
    background-image: url(img/estantes.jpg);
}
.productos .card:nth-child(3){
    background-image: url(img/marmitas.jpg);
}
footer{
    background-color: var(--blue);
    color: white;
    padding: 1rem 0;
}
button{
    background-color: var(--blue);
    color: white;
    padding: 0.5rem 0.5rem;
    border: 1px solid white;
    margin: 1rem 0;
    font-size: 1.1rem;
    border-radius: 10px;
    cursor: pointer;
}
.instalacion{
    background-image: url(img/cocina.jpg);
    background-size: cover;
    background-position: center;
    color: white;
    text-shadow: 0px 0px 15px rgba(0,0,0,0.8);
    text-align: center;
    box-sizing: border-box;
    padding: 25lvh 0;
}
.instalacion h1{
    font-size: 2rem;
}
.construccion{
    
    background-image: url(img/build.jpg);
    background-size: cover;
    color: white;
    text-shadow: 0px 0px 15px rgba(0,0,0,0.8);
}
.construccion .filter{
    padding: 5rem 0;
    backdrop-filter: brightness(0.8);
}
body.construccion{
    background-image: url();
    background-color: white;
}
body.construccion .hero{
    background-image: url(img/build.jpg);
    background-size: cover;
}
body.construccion .hacemos{
    background-image: url(img/bakery.webp);
    background-size: cover;
    background-position: center 0;
}
body.construccion .hacemos .filter{
    padding: 12rem 0;
}
body.construccion .proceso{
    background-image: url(img/process.jpg);
    background-size: cover;
    background-position: center 0;
}
body.construccion .proceso .filter{
    padding: 6rem 0;
}
body.construccion .tipos{
    background-image: url(img/model.jpg);
    background-size: cover;
    background-position: center 0;
}
body.construccion .tipos .filter{
    padding: 10rem 0;
}
@media only screen and (min-width: 600px) {
    header img{
        max-width: 60px;
        transition: 0.5s all;
    }
    header.contrast img{
        max-width: 40px;
    }
    .producto{
        width: 33.3%;
        box-sizing: border-box;
        padding: 0.5rem;
    }
    .producto img{
        height: 200px;
        width: auto;
    }
    .producto p{
        text-align: justify;
    }
    .materias{
        padding-bottom: 0;
        padding-right: 50%;
    }
    .materias .container{
        backdrop-filter: blur(5px);
    }

}