/* ===========================
RAIZ PURA
Landing
Autor: Agus Pascal para LandingPro
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

/* ===========================
BODY
=========================== */

body{

    font-family:'Poppins',sans-serif;

    background:#F5F5DC;

    color:#2F2F2F;

}

/* ===========================
HEADER
=========================== */

header{

    width:100%;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:25px 10%;

    background:#D8D8B8;

    position:fixed;

    top:0;

    left:0;

    z-index:1000;

    box-shadow:0 3px 10px rgba(0,0,0,.08);

}

.logo h2{

    color:#6B8E23;

    font-family:'Playfair Display', serif;

    font-size:32px;

}

nav ul{

    display:flex;

    list-style:none;

    gap:35px;

}

nav a{

    text-decoration:none;

    color:#333;

    font-weight:500;

    transition:.3s;

}

nav a:hover{

    color:#6B8E23;

}

/* ===========================
HAMBURGUESA
=========================== */

.hamburguesa{
    display:none;
    flex-direction:column;
    gap:5px;
    background:none;
    border:none;
    cursor:pointer;
    padding:5px;
}

.hamburguesa span{
    display:block;
    width:28px;
    height:3px;
    background:#3D5A1E;
    border-radius:3px;
    transition:.3s;
}

/* ===========================
HERO
=========================== */

.hero{

    min-height:100vh;

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:150px 10% 80px;

    gap:60px;

}

.contenido{

    flex:1;

}

.contenido h1{

    font-size:58px;

    font-family:'Playfair Display', serif;

    line-height:1.2;

    margin-bottom:30px;

}

.contenido p{

    font-size:19px;

    line-height:1.8;

    margin-bottom:40px;

    max-width:650px;

}

/* ===========================
BOTONES
=========================== */

.botones{

    display:flex;

    gap:20px;

    margin-bottom:40px;

}

.btn{

    background:#6B8E23;

    color:white;

    text-decoration:none;

    padding:18px 35px;

    border-radius:40px;

    transition:.3s;

    font-weight:600;

    display:inline-block;

}

.btn:hover{

    background:#56751B;

}

.btn-secundario{

    border:2px solid #6B8E23;

    color:#6B8E23;

    text-decoration:none;

    padding:18px 35px;

    border-radius:40px;

    transition:.3s;

    font-weight:600;

}

.btn-secundario:hover{

    background:#6B8E23;

    color:white;

}

/* ===========================
BENEFICIOS HERO
=========================== */

.beneficios-hero{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:15px;

    margin-bottom:35px;

    font-weight:500;

}

/* ===========================
CLIENTES
=========================== */

.clientes{

    font-size:20px;

    color:#D96C4A;

}

.clientes p{

    color:#555;

    font-size:15px;

    margin-top:10px;

}

/* ===========================
IMAGEN / CAROUSEL
=========================== */

.imagen{

    flex:1;

    display:flex;

    justify-content:center;

    align-items:center;

}

.carousel{
    position:relative;
    width:100%;
    max-width:550px;
    aspect-ratio:1/1;
    border-radius:30px;
    overflow:hidden;
    box-shadow:0 20px 50px rgba(0,0,0,.15);
}

.carousel-img{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    object-fit:cover;
    opacity:0;
    transition:opacity 1s ease;
}

.carousel-img.activa{
    opacity:1;
}

/* ===========================
SECTION TITLE
=========================== */

.section-title{

    font-family:'Playfair Display', serif;

    font-size:42px;

    text-align:center;

    margin-bottom:60px;

    color:#3D5A1E;

}

/* ===========================
BENEFICIOS SECTION
=========================== */

.beneficios{

    padding:100px 10%;

    background:#E8F0D8;

}

.beneficios-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:40px;

    max-width:1100px;

    margin:0 auto;

}

.beneficio-card{

    background:white;

    padding:45px 30px;

    border-radius:20px;

    text-align:center;

    box-shadow:0 10px 30px rgba(0,0,0,.06);

    transition:.3s;

}

.beneficio-card:hover{

    transform:translateY(-5px);

    box-shadow:0 15px 40px rgba(0,0,0,.1);

}

.beneficio-icono{

    font-size:48px;

    margin-bottom:20px;

}

.beneficio-card h3{

    font-size:20px;

    color:#3D5A1E;

    margin-bottom:15px;

}

.beneficio-card p{

    font-size:15px;

    color:#555;

    line-height:1.7;

}

/* ===========================
PRODUCTOS
=========================== */

.productos{

    padding:100px 10%;

    background:white;

}

.productos-grid{

    display:grid;

    grid-template-columns:repeat(5,1fr);

    gap:25px;

    max-width:1200px;

    margin:0 auto;

}

.producto-card{

    background:#FAFAF2;

    border-radius:20px;

    padding:25px 20px;

    text-align:center;

    box-shadow:0 8px 25px rgba(0,0,0,.06);

    transition:.3s;

    display:flex;

    flex-direction:column;

    cursor:pointer;

}

.producto-card:hover{

    transform:translateY(-5px);

    box-shadow:0 12px 35px rgba(0,0,0,.1);

}

.producto-card img{

    width:100%;

    aspect-ratio:1/1;

    object-fit:contain;

    border-radius:15px;

    margin-bottom:18px;
    background:#f0f0e8;

}

.producto-card h3{

    font-size:16px;

    color:#3D5A1E;

    margin-bottom:8px;

    flex:1;

}

.precio{

    font-size:20px;

    font-weight:600;

    color:#2F2F2F;

    margin-bottom:18px;

    display:block;

}

.btn-comprar{

    background:#6B8E23;

    color:white;

    text-decoration:none;

    padding:12px 20px;

    border-radius:40px;

    font-weight:600;

    font-size:14px;

    transition:.3s;

    display:inline-block;

}

.btn-comprar:hover{

    background:#56751B;

}

/* ===========================
HISTORIA
=========================== */

.historia{

    padding:100px 10%;

    background:#E8F0D8;

}

.historia-contenido{

    max-width:800px;

    margin:0 auto;

    background:white;

    padding:50px 60px;

    border-radius:20px;

    box-shadow:0 10px 30px rgba(0,0,0,.06);

}

.historia-contenido p{

    font-size:18px;

    line-height:2;

    color:#444;

    font-style:italic;

}

/* ===========================
TESTIMONIOS
=========================== */

.testimonios{

    padding:100px 10%;

    background:white;

}

.testimonios-grid{

    display:grid;

    grid-template-columns:repeat(5,1fr);

    gap:25px;

    max-width:1200px;

    margin:0 auto;

}

.testimonio-card{

    background:#FAFAF2;

    border-radius:20px;

    padding:25px 20px;

    text-align:center;

    box-shadow:0 8px 25px rgba(0,0,0,.06);

    transition:.3s;

}

.testimonio-card:hover{

    transform:translateY(-5px);

    box-shadow:0 12px 35px rgba(0,0,0,.1);

}

.testimonio-card img{

    width:100%;

    aspect-ratio:1/1;

    object-fit:cover;

    border-radius:15px;

    margin-bottom:18px;

}

.testimonio-estrellas{
    font-size:16px;
    margin-bottom:10px;
    display:block;
}

.testimonio-desc{

    font-size:14px;

    line-height:1.7;

    color:#555;

    margin-bottom:12px;

    font-style:italic;

}

.testimonio-cliente{

    font-size:13px;

    font-weight:600;

    color:#6B8E23;

}

/* ===========================
CONTACTO
=========================== */

.contacto{

    padding:80px 10%;

    background:#E8F0D8;

    text-align:center;

}

.contacto p{

    font-size:18px;

    margin-bottom:30px;

    color:#555;

}

/* ===========================
FOOTER
=========================== */

footer{

    background:#3D5A1E;

    color:white;

    text-align:center;

    padding:30px 10%;

    font-size:14px;

}

/* ===========================
MODAL
=========================== */

.modal-overlay{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.65);
    z-index:2000;
    justify-content:center;
    align-items:center;
    padding:30px;
}

.modal-overlay.abierto{
    display:flex;
}

.modal-contenido{
    background:white;
    border-radius:24px;
    max-width:700px;
    width:100%;
    display:flex;
    gap:30px;
    padding:30px;
    position:relative;
    box-shadow:0 25px 60px rgba(0,0,0,.3);
}

.modal-contenido img{
    width:280px;
    height:280px;
    object-fit:contain;
    border-radius:16px;
    flex-shrink:0;
    background:#f0f0e8;
}

.modal-contenido div{
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.modal-contenido h3{
    font-family:'Playfair Display', serif;
    font-size:24px;
    color:#3D5A1E;
    margin-bottom:16px;
}

.modal-contenido p{
    font-size:15px;
    line-height:1.8;
    color:#444;
}

.modal-cerrar{
    position:absolute;
    top:12px;
    right:18px;
    background:none;
    border:none;
    font-size:32px;
    cursor:pointer;
    color:#888;
    transition:.2s;
    line-height:1;
}

.modal-cerrar:hover{
    color:#333;
}

/* MODAL PRUEBA WHATSAPP */

.modal-prueba-contenido{
    max-width:400px !important;
    text-align:center !important;
    justify-content:center !important;
    padding:50px 40px !important;
}

.modal-prueba-contenido p{
    font-size:20px;
    font-weight:600;
    color:#3D5A1E;
    margin-bottom:10px;
}

.modal-prueba-cerrar{
    position:static !important;
    background:#6B8E23;
    color:white;
    border:none;
    padding:12px 40px;
    border-radius:40px;
    font-size:16px;
    font-weight:700;
    cursor:pointer;
    transition:.3s;
    font-family:'Poppins',sans-serif;
}

.modal-prueba-cerrar:hover{
    background:#56751B !important;
    color:white !important;
}

/* ===========================
RESPONSIVE
=========================== */

@media(max-width:900px){

    header{
        flex-direction:row;
        flex-wrap:wrap;
        gap:0;
        padding:15px 5%;
    }

    .hamburguesa{
        display:flex;
    }

    nav{
        width:100%;
        max-height:0;
        overflow:hidden;
        transition:max-height .4s ease;
    }

    nav.abierto{
        max-height:400px;
    }

    nav ul{
        flex-direction:column;
        gap:0;
        padding:15px 0 5px;
    }

    nav li{
        text-align:center;
    }

    nav a{
        display:block;
        padding:12px 0;
    }

    .hero{

        flex-direction:column;

        text-align:center;

        padding-top:220px;

    }

    .contenido h1{

        font-size:42px;

    }

    .botones{

        justify-content:center;

        flex-wrap:wrap;

    }

    .beneficios-hero{

        grid-template-columns:1fr;

    }

    .beneficios-grid{

        grid-template-columns:1fr;

    }

    .productos-grid{

        grid-template-columns:repeat(2,1fr);

    }

    .testimonios-grid{

        grid-template-columns:repeat(2,1fr);

    }

    .historia-contenido{

        padding:30px 25px;

    }

}

@media(max-width:550px){

    .productos-grid{

        grid-template-columns:1fr;

    }

    .testimonios-grid{

        grid-template-columns:1fr;

    }

}

@media(max-width:768px){
    .modal-contenido{
        flex-direction:column;
        align-items:center;
        text-align:center;
        padding:25px;
    }
    .modal-contenido img{
        width:200px;
        height:200px;
    }
}
