@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    text-decoration: none;
    list-style: none;
    scroll-behavior: smooth;
    scroll-padding-top: 2rem;
}

:root{
    --main-color: #88B04B;
    --second-color: #FFF8E1;
    --thirt-color: #A3D9FF;
}

section{
    padding: 100px 100px;
}

header{
    background-color: #edecea ;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 100px;
    position: fixed;
    top: 0;
    z-index: 1000;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
}

.logo{
    font-size: 1.2rem;
    font-weight: 600;
    color: #000;
}

.logo span{
    color: var(--main-color);
}

#menu-icon{
    font-size: 2rem;
    cursor: pointer;
    display: none;
}

nav ul{
    position: relative;
    display: flex;
}

nav a{
    font-size: 1rem;
    color: #000;
    padding: 10px 15px;
    font-weight: 500;
}

nav a:hover{
    color: var(--main-color);
}

.home{    
    width: 100%;
    min-height: 100vh;
    background-image: url('../images/kefir-principal.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
}

.home-text h1{
    font-size: 2.7rem;
}

.home-text span{
    color: var(--main-color);
}

.home-text p{
    font-size: 0.9rem;
    margin: 0.4rem 0  1.8rem;
    width: 80%;
}

.home-text a{
    background-color: var(--main-color);
    color: #fff;
    padding: 10px 14px;
    border-radius: 0.3rem;
}

.home-text a:hover{
    background-color: #8fc53d;
}

/* NOSOTROS */
.about
{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.about-img{
    background-image: url(../images/nosotros.jpg);
    background-position: right;
    background-size: cover;
    background-repeat: no-repeat;
    width: 90%;
    height: 450px;
    border-radius: 10px;
}

.about-text span{
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--main-color);
}

.about-text p{
    font-size: 0.93rem;
    margin: 0.5rem 0 1.4rem;
}

.about-text a{
    background-color: var(--main-color);
    color: #fff;
    padding: 10px 14px;
    border-radius: 0.3rem;
}

.about-text a:hover{
    background-color: #8fc53d;
}

/* Beneficios */

.benefit{
    background-color: #edecea;
}

.heading{
    text-align: center;
}

.heading span{
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--main-color);
}

.benefit-container{
    display: grid;
    align-items: center;
    grid-template-columns: repeat(auto-fit, minmax(300px, auto));
    gap: 5rem;
    margin-top: 2rem;
}

.benefit-container .box{
    text-align: center;
}

.benefit-container .box .bx{
    font-size: 5rem;
    padding: 1rem;
    background-color: #fff;
    border-radius: 0.5rem;
    color: var(--main-color);
}

.benefit-container h3{
    margin: 1rem 0 0.5rem;
}

.benefit-container p{
    font-size: 0.9rem;
}


/* Productos */
.shop-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, auto));
    gap: 3rem;
    margin-top: 2rem;
}

.shop-container .box{
    position: relative;
    box-shadow: 1px 4px  4px rgb(0, 0, 0, 0.1);
    border-radius: 44px 4px 4px 4px;
}

.box .box-img{
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 44px 4px 0 0;
}

.box .box-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.box .box-img img:hover{
    transform: scale(1.1);
    transition: 0.5s;
}
    
.title-price{
    display: flex;
    justify-content: space-between;
    padding: 12px;
}

.title-price h3{
    font-size: 1rem;
    font-weight: 600;
}

.box span{
    font-size: 1.1rem;
    font-weight: 500;
    padding-left: 12px;
    color: var(--main-color);
}

.stars .bx{
    color: var(--main-color);
}

.box .bx-cart{
    color: #fff;
    background-color: var(--main-color);
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 7px;
    font-size: 1.2rem;
    border-radius: 4px 0 4px 0;
}

.box .bx-cart:hover{
    background-color: #8fc53d;
}

/*Contactanos*/

.contact{
    background-color: #edecea;
}

.contact-container{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-info{
    flex: 1 1 20rem;
}

.contact-form{
    flex: 1 1 20rem;
    display: flex;
    justify-content: center;
}

.contact-info h2{
    font-size: 1.2rem;
    color: var(--main-color);
}

.contact-info p{
    margin: 0.5rem 0 1rem;
}

.address{
    display: flex;
    flex-direction: column;
}

.address i{
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 20px;
}

.address span{
    font-size: 1rem;
    margin-left: 1rem;
}

.social{
    margin-top: 1rem;
}

.social a{
    font-size: 24px;
    color: var(--main-color);
    margin-right: 1rem;
}

.social a:hover{
    color: #8fc53d;
}

.contact-form form{
    width: 100%;
    display: flex;
    flex-direction: column;
}

form input,
textarea{
    width: 100%;
    padding: 17px;
    border-radius: 0.5rem;
    outline: none;
    margin-bottom: 1rem;
    border: 2px solid var(--main-color);
    box-shadow: 0 4px 4px 2px rgb(14, 55, 54 / 15%);
}

form input::placeholder,
textarea::placeholder{
    color: var(--main-color);
}

form textarea{
    resize: none;
    height: 150px;
}

form .btn{
    max-width: 100px;
    background-color: var(--main-color);
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
    border: none;
}

form .btn:hover{
    background-color: #8fc53d;
}

/*Footer*/

footer{
    padding: 20px;
    text-align: center;
}



@media (max-width: 1201px) {
    header{
        padding: 18px 13% ;
    }
    
    section{
        padding: 100px 13%;
    }
  }

  
@media (max-width: 1040px) {
    header{
        padding: 11px 4%;
    }

    section{
        padding: 100px 4%;
    }
    
    #menu-icon{
        display: initial;
    }

    nav{
        position: absolute;
        top: -600px;
        left: 0;
        right: 0;
    }

    header .active{
        top: 100%;
    }

    nav ul{        
        display: flex;
        flex-direction: column;
        background-color: #edecea;
        box-shadow: 0 4px 4px rgb(0 0 0 /10%);
        text-align: center;
        transition: 0.2 ease;
    }

    nav a{
        display: block;
        padding: 1.5rem;
    }

    nav a:hover {
        background-color: var(--main-color);
        color: #fff;
    }


}


  /* Estilos para tabletas */
@media (max-width: 768px) {
    
    .about {
        grid-template-columns: 1fr;  /* Hace que se acomode todo en una columna */
        grid-template-rows: auto auto;  /* La imagen ocupa su espacio automáticamente, el texto ocupa el espacio restante */
        text-align: center;
    }
    .about-img{
        
        width: 100%;
        height: 450px;
    }
    
}
  
  /* Estilos para teléfonos pequeños */
  @media (max-width: 480px) {
    
}
