@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --padding-container: 100px 0;
    --color-title: #825A38;
}

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: #F4E1C1; /* Color claro que complementa los tonos cálidos */
    border-radius: 10px;
  }
  
  ::-webkit-scrollbar-thumb {
    background: #9B5D3D; /* El color medio, uno de tus tonos */
    border-radius: 10px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: #825A38; /* El color 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;
    color: #fff;
}

.hero__logo {
    position: absolute;
    bottom: 10px; /* Ajusta la distancia desde abajo */
    right: 30px; /* Ajusta la distancia desde la derecha */
    width: 320px; /* Ajusta el tamaño del logo */
    height: auto;
    z-index: 2; /* Asegura que esté por encima del fondo */
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #825A38;
    background-size: cover;
    clip-path: polygon(0 0, 100% 0, 100% 48%, 0 92%);
    z-index: -1;
}


/* 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: #fff;
    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: #825A38;
    justify-self: center;
    color: #fff;
    text-decoration: none;
    padding: 13px 30px;
    border-radius: 32px;
}

/* About */

.about {
    text-align: center;
}

.about__header {
    display: flex;
    align-items: center; /* Alinea la imagen y el texto verticalmente */
    gap: 1rem; /* Espacio entre la imagen y el texto */
    margin-bottom: 20px;
}

.about__logo {
    width: 80px; /* Tamaño pequeño de la imagen */
    height: auto;
}

.subtitle {
    color: var(--color-title);
    font-size: 2rem;
    margin-bottom: 25px;
}

.about__paragraph {
    line-height: 1.7;
}

.about__main {
    display: flex; /* Usamos flexbox para alineación */
    justify-content: space-around; /* Espacio entre los iconos */
    align-items: flex-start; /* Alineación en la parte superior de cada ícono */
    gap: 1em; /* Espacio entre los artículos */
    padding-top: 50px;
}

.about__icons {
    display: flex;
    flex-direction: column; /* Alinea los iconos y los títulos verticalmente */
    justify-content: center; /* Centra los elementos dentro del artículo */
    align-items: center; /* Alinea los iconos y títulos en el centro */
    text-align: center;
    width: 260px;
}

.about__icon {
    width: 40px; /* Ajusta el tamaño de los iconos si es necesario */
    margin-bottom: 20px; /* Espacio entre el icono y el título */
}
.about__icon_compu{
    width: 50px; /* Ajusta el tamaño de los iconos si es necesario */
    margin-bottom: 20px; /* Espacio entre el icono y el título */
}

/*Productos*/

.productos {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.productos__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas */
    gap: 20px;
    width: 100%;
}

.producto {
    position: relative;
    border-radius: 10px;
    padding: 20px;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

/* Ocultamos la imagen original */
.producto img {
    display: none;
}

/* Animación al pasar el mouse */
.producto:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Usamos la imagen como fondo */
.producto::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.9;
    z-index: -1;
}

/* Aplicamos la imagen */
.producto:nth-child(1)::before { background-image: url("../img/Almendras.jpeg"); }
.producto:nth-child(2)::before { background-image: url("../img/castañas_caju.jpeg"); }
.producto:nth-child(3)::before { background-image: url("../img/avellanas.jpg"); }
.producto:nth-child(4)::before { background-image: url("../img/hongosDisecados.jpg"); }
.producto:nth-child(5)::before { background-image: url("../img/banana chips.jpg"); }
.producto:nth-child(6)::before { background-image: url("../img/cranberries.jpg"); }

.producto h3 {
    font-size: 30px;
    font-weight: bold;
}

.producto p {
    font-size: 14px;
}

/* 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 */
.hacer-pedido {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    background: #825A38;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.hacer-pedido:hover {
    background: #9B5D3D;
}

@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%;
    }
  }
  
/*Proposito*/

.proposito {
    background: linear-gradient(to bottom, #825a381a, rgba(130, 90, 56, 0.3));
    padding: 60px 20px;
    text-align: center;
    margin-top: 50px;
}

.proposito__contenido {
    max-width: 800px;
    margin: auto;
}

.proposito h2 {
    font-size: 32px;
    color: #825A38;
    margin-bottom: 20px;
}

.proposito p {
    font-size: 18px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
}
/* Knowledge */

.knowledge {
    background-color: #e5e5f7;
    background-image: radial-gradient(#f74444 0.5px, transparent 0.5px), radial-gradient(#f04848 0.5px, #e5e5f7 0.5px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    overflow: hidden;
}

.knowledge__container{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
    align-items: center;
}

.knowledge__picture{
    max-width: 500px;
}

.knowledge__paragraph{
    line-height: 1.7;
    margin-bottom: 15px;
}

.knowledge__img{
    width: 100%;
    display: block;
}

/* price */

.price{
    text-align: center;
}

.price__table{
    padding-top: 60px;
    display: flex;
    flex-wrap: wrap;
    gap: 2.5em;
    justify-content: space-evenly;
    align-items: center;
}

.price__element{
    background-color: #e5e5f7;
    text-align: center;
    border-radius: 10px;
    width: 330px;
    padding: 40px;
    --color-plan: #696871;
    --color-price: #1D293F;
    --bg-cta: #fff;
    --color-cta: #5454d4;
    --color-items: #696871;
}

.price__element--best{
    width: 370px;
    padding: 60px 40px;
    background-color: #FF7143;
    --color-plan: rgb(255 255 255 / 75%);
    --color-price: #fff;
    --bg-cta: #9F3919;
    --color-cta: #FFF;
    --color-items: #fff;
}


.price__name{
    color: var(--color-plan);
    margin-bottom: 15px;
    font-weight: 300;
}

.price__price{
    font-size: 2.5rem;
    color: var(--color-price);
}

.price__items{
    margin-top: 35px;
    display: grid;
    gap: 1em;
    font-weight: 300;
    font-size: 1.2rem;
    margin-bottom: 50px;
    color: var(--color-items);
}

.price__cta{
    display: block;
    padding: 20px 0;
    border-radius: 10px;
    text-decoration: none;
    background-color: var(--bg-cta);
    font-weight: 600;
    color: var(--color-cta);
    box-shadow: 0 0 1px rgba(0, 0, 0, .5);
}

/* Questions */

.questions{
    text-align: center;
}

.questions__container{
    display: grid;
    gap: 2em;
    padding-top: 50px;
    padding-bottom: 100px;
}

.questions__padding{
    padding: 0;
    transition: padding .3s;
    border: 1px solid #5454D4;
    border-radius: 6px;
}

.questions__padding--add{
    padding-bottom: 30px;
}

.questions__answer{
    padding: 0 30px 0;
    overflow: hidden;
}

.questions__title{
    text-align: left;
    display: flex;
    font-size: 20px;
    padding: 30px 0 30px;
    cursor: pointer;
    color: var(--color-title);
    justify-content: space-between;
}

.questions__arrow{
    border-radius: 50%;
    background-color: var(--color-title);
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: flex-end;
    margin-left: 10px;
    transition:  transform .3s;
}

.questions__arrow--rotate{
    transform: rotate(180deg);
}

.questions__show{
    text-align: left;
    height: 0;
    transition: height .3s;
}

.questions__img{
    display: block;
}

.questions__copy{
    width: 60%;
    margin: 0 auto;
    margin-bottom: 30px;
}


/*FOOTER*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
}

.container_footer {
    max-width: 1200px;
    margin: 0 auto;
}

.footer {
    background-color: #825A38;
    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;
    }

/*
    .about__main{
        gap: 2em;
    }

    .about__icons:last-of-type{
        grid-column: 1/-1;
    }
*/
    @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;
    }

    .testimony__container{
        grid-template-columns: 30px 1fr 30px;
    }

    .testimony__body{
        grid-template-columns: 1fr;
        grid-template-rows: max-content max-content;
        gap: 3em;
        justify-items:center ;
    }


    .testimony__img{
        width: 200px;
        height: 200px;
        
    }

    .questions__copy{
        width: 100%;
    }

    .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%;
        */
    }
}
