@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --padding-container: 100px 0;
    --color-title: #efddc9;
}

body {
    font-family: 'Poppins', sans-serif;
    text-transform: capitalize;
}

/*Barra de scroll*/
/* Personaliza la barra de desplazamiento en navegadores basados en Webkit */
::-webkit-scrollbar {
    width: 12px; /* Ancho de la barra de desplazamiento */
    height: 12px; /* Altura para barras horizontales */
}

::-webkit-scrollbar-track {
    background: #EFDDC9; /* El tono más claro para el track */
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #81A969; /* Color verde intermedio, complementa bien con los tonos de tu sitio */
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #314528; /* El tono más oscuro para el hover */
}
    

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: var(--padding-container);
}

.hero {
    width: 100%;
    height: 100vh;
    min-height: 600px;
    max-height: 800px;
    position: relative;
    display: grid;
    grid-template-rows: 100px 1fr;
    text-align: center;
    color: #efddc9;
    background-color: #81A969; /*color de fondo */
}

.hero__title {
    font-size: 3.5rem;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeIn 1s ease-in-out forwards;
}

.hero__paragraph {
    font-size: 1.2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1.2s ease-in-out forwards;
}

.cta {
    display: inline-block;
    background-color: #314528;
    color: #efddc9;
    text-decoration: none;
    padding: 13px 30px;
    border-radius: 32px;
    font-weight: bold;
    margin-top: 20px;
    transition: transform 0.3s ease-in-out, background-color 0.3s;
}

.cta:hover {
    background-color: #EFDDC9;
    color: #314528;
    transform: scale(1.05);
}

/* Animaciones */
@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Nav */

.nav {
    --padding-container: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav__title {
    font-weight: 300;
}

.nav__logo {
    display: flex;
    align-items: center; /* Alinear verticalmente con el menú */
}

.nav__logo-img {
    width: 300px; /* Ajusta el tamaño según necesites */
    height: auto;
}

.nav__link {
    margin-left: auto;
    padding: 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 2em;
}

.nav__items {
    list-style: none;
}

.nav__links {
    color: #efddc9;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease-in-out;
}

.nav__links:hover {
    transform: scale(1.1);
}

.nav__menu {
    margin-left: auto;
    cursor: pointer;
    display: none;
}

.nav__img {
    display: block;
    width: 30px;
}


.nav__close {
    display: var(--show, none);
}


/* Hero container */

.hero__container {
    max-width: 800px;
    --padding-container: 0;
    display: grid;
    grid-auto-rows: max-content;
    align-content: center;
    gap: 1em;
    padding-bottom: 100px;
    text-align: center;
}

.hero__title {
    font-size: 3rem;
}

.hero__paragraph {
    margin-bottom: 20px;
}

.cta {
    display: inline-block;
    background-color: #314528;
    justify-self: center;
    color: #fff;
    text-decoration: none;
    padding: 13px 30px;
    border-radius: 32px;
}

/* About */

/* Quienes somos */
.about {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 50px 0;
}

/* Imagen */
.about__image {
    width: 35%;
    max-width: 500px;
    animation: fadeInLeft 1s ease-in-out;
}

/* Contenido */
.about__content {
    width: 65%;
    animation: fadeInRight 1s ease-in-out;
}

.subtitle {
    color: var(--color-title);
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.about__paragraph {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #333;
}

/* Sección de iconos */
.about__main {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
}

.about__icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 260px;
}

.about__icon {
    width: 60px;
    height: 60px;
    background-color: #81A969;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.about__icon img {
    width: 40px;
}

.about__icons:hover .about__icon {
    transform: scale(1.1);
}

/* Animaciones */
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Media Query para pantallas pequeñas */
@media screen and (max-width: 768px) {
    .about {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .about__image {
        width: 60%;  /* Aumenta el ancho de la imagen en pantallas pequeñas */
        max-width: 400px;
        margin-bottom: 20px;  /* Espacio entre la imagen y el contenido */
    }

    .about__content {
        width: 100%;
    }

    .about__main {
        flex-direction: column;
        gap: 20px;
    }

    .about__icons {
        width: 100%;
        justify-content: center;
    }

    .about__icon {
        width: 50px;
        height: 50px;
    }
}


/*Productos*/
.productos {
    text-align: center;
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
}

.subtitle {
    color: #314528;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 30px;
}

.productos__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.producto {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.producto:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.producto img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    filter: brightness(70%);
    transition: filter 0.3s ease;
}

.producto:hover img {
    filter: brightness(90%);
}

.producto__info {
    position: absolute;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 100%;
    padding: 15px;
    text-align: center;
}

.producto h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.producto p {
    font-size: 0.9rem;
    margin: 2px 0;
}

/* Botón "Hacer Pedido" */
.hacer-pedido {
    margin-top: 30px;
    padding: 12px 25px;
    font-size: 1.2rem;
    color: white;
    background: #81A969;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.hacer-pedido:hover {
    background: #314528;
}
@media (max-width: 992px) {
    .productos__grid {
      grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablets */
    }
  }
  
  @media (max-width: 600px) {
    .productos__grid {
      grid-template-columns: 1fr; /* 1 columna en celulares */
    }
  
    .producto {
      height: auto; /* para que se adapte al contenido en pantallas chicas */
      padding: 15px;
    }
  
    .producto h3 {
      font-size: 24px;
    }
  
    .producto p {
      font-size: 13px;
    }
  
    .hacer-pedido {
      width: 100%;
    }
  }
/* Estilo de selección */
.producto.seleccionado {
    border: 3px solid #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

/* Botón de hacer pedido (segunda definición, unificada) */
.hacer-pedido {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    background: #314528;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.hacer-pedido:hover {
    background: #81A969;
}

/*Proposito*/
.proposito {
    background-color: #EFDDC9;
    padding: 60px 20px;
    text-align: center;
    margin-top: 50px;
}

.proposito__contenido {
    max-width: 800px;
    margin: auto;
}

.proposito h2 {
    font-size: 32px;
    color: #314528;
    margin-bottom: 20px;
}

.proposito p {
    font-size: 18px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
}

/*Core de la empresa*/
.core {
    text-align: center;
    padding: 40px 20px;
    background-color: #EFDDC9;
    color: #314528;
    margin-bottom: 70px;
}

.core-title {
    font-size: 32px;
    font-weight: bold;
    color: #314528;
}

.core-subtitle {
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 20px;
    border-bottom: 2px solid #81A969;
}

.core-container {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    padding-left: 20px;
}

.core-line {
    position: absolute;
    left: 10px;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: #314528;
}

.core-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
}

.core-dot {
    width: 12px;
    height: 12px;
    background-color: #81A969;
    border-radius: 50%;
    position: relative;
    left: 4px;
    flex-shrink: 0;
}

.core-item-title {
    font-size: 20px;
    font-weight: bold;
    margin-left: 20px;
}

.core-item-text {
    font-size: 16px;
    margin-left: 20px;
    text-align: left;
    max-width: 600px;
}


/*FOOTER*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
}

.container_footer {
    max-width: 1200px;
    margin: 0 auto;
}

.footer {
    background-color: #81A969;
    padding: 40px 0;  /*Tamaño footer*/
}

.footer_row {
    display: flex;
    flex-wrap: wrap;
}

.footer_links {
    width: 25%;
    padding: 0 15px;
}

.footer_links h4 {
    font-size: 20px;
    color: #ffffff;
    margin-top: 25px;
    font-weight: 500;
    border-bottom: 2px solid #ffffff;
    padding-bottom: 5px;
    display: inline-block;
}

.footer_links ul {
    margin-top: 15px; /* Separa la lista del título */
}

.footer_links ul li a {
    font-size: 18px;
    text-decoration: none;
    color: #ffffff;
    display: block;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.footer_links ul li a:hover {
    color: #FFFFFF;
    padding-left: 6px;
}

.social_link {
    margin-top: 15px; /* Separa los iconos del título */
}

.social_link a {
    font-size: 20px; /* Ajusta el tamaño de los iconos */
    margin-right: 10px; /* Agrega espacio entre los iconos */
    display: inline-block;
    min-height: 40px;
    width: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 10px 10px 0;
    text-align: center;
    line-height: 40px;
    border-radius: 50px;
    color: #FFFFFF;
    transition: all .5 ease;
}

.social_link a:hover{
    background-color: #9B5D3D;
}

.footer-mail {
    color: #FFFFFF;
    font-size: 16px;
    margin-top: 10px;
    margin-left: 10px;
}
/* Media queries */

@media (max-width: 991px) {
    .footer_links {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }
}

@media (max-width:800px){
    .nav__menu{
        display: block;
    }

    .nav__link--menu{
        position: fixed;
        background-color: #000;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        z-index: 100;
        opacity: 0;
        pointer-events: none;
        transition: .7s opacity;
    }

    .nav__link--show{
        --show: block;
        opacity:1 ;
        pointer-events: unset;
    }

    .nav__close{
        position: absolute;
        top: 30px;
        right: 30px;
        width: 30px;
        cursor: pointer;
    }

    .hero__title{
        font-size: 2.5rem;
    }


    @media (max-width: 768px) {
        .about__main {
            display: flex;
            flex-direction: column; /* Los elementos se apilan uno encima del otro */
            align-items: center; /* Centra los artículos */
            padding-top: 20px; /* Ajusta el padding si es necesario */
        }

        .about__icons {
            width: 100%; /* Hacer que cada artículo ocupe todo el ancho disponible */
            text-align: center; /* Centrar el texto */
            margin-bottom: 20px; /* Agregar espacio entre los artículos */
        }

        .about__icon {
            width: 30px; /* Ajusta el tamaño de los iconos para pantallas pequeñas */
        }
    }

    .knowledge__container{
        grid-template-columns: 1fr;
        grid-template-rows: max-content 1fr;
        gap: 3em;
        text-align: center;
    }

    .knowledge__picture{
        grid-row: 1/2;
        justify-self: center;
    }


    .footer__container{
        flex-wrap: wrap;
    }

    .nav--footer{
        width: 100%;
        justify-items: center;
    }

    .nav__link--footer{
        width: 100%;
        justify-content: space-evenly;
        margin: 0;
    }

    .footer__form{
        width: 100%;
        justify-content: space-evenly;
    }

    .footer__input{
        flex: 1;
    }

}

@media (max-width:600px){
    .hero__title{
        font-size: 2rem;
    }

    .hero__paragraph{
        font-size: 1rem;
    }

    .subtitle{
        font-size: 1.8rem;
    }

    .price__element{
        width: 90%;
    }

    .price__element--best{
        width: 90%;
        /* padding: 40px; */
    }

    .price__price{
        font-size: 2rem;
    }

    .testimony{
        --padding-container: 60px 0;
    }

    .testimony__container{
        grid-template-columns: 28px 1fr 28px;
        gap: .9em;
    }

    .testimony__arrow{
        width: 100%;
    }

    .testimony__course{
        margin-top: 15px;
    }

    .questions__title{
        font-size: 1rem;
    }

    .footer__title{
        justify-self: start;
        margin-bottom: 15px;
    }

    .nav--footer{
        padding-bottom: 60px;
    }

    .nav__link--footer{
        justify-content: space-between;
    }

    .footer__inputs{
        flex-wrap: wrap;
    }

    .footer__input{
        flex-basis: 100%;
        margin: 0;
        margin-bottom: 16px;
    }

    .footer__submit{
        margin-right: auto;
        margin-left: 0;
        
        /* 
        margin:0;
        width: 100%;
        */
    }
}
