:root {
    --verde: #556B2F;
    --verde-oscuro: #263A24;
    --alfalfa: #7A9E3A;
    --crema: #F4F1E6;
    --beige: #D8C9A3;
    --texto: #252525;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #F4F1E6;
}

/* -------------- */
/*   contenedor   */
/* -------------- */

.container{
    max-width: 90rem;
    margin: 0 auto;
}

main{
    background-color: #ffffff;
}

/* ---------- */
/*   header   */
/* ---------- */

header {
  margin-left: 2.5%;
  position: fixed;
  top: 0;
  width: 95%;
  height: 100px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  background-color: #F4F1E6;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0px;
}

header h1{
    color: #263A24;
}

header a{
    text-decoration: none;
    color: #fff;
    background-color: #263A24;
    display: inline-block;
    padding: 0.7rem 1.7rem;
    text-transform: uppercase;
    border-radius: 3rem;
    font-size: 0.8rem;
    transition: all .4s ease-in-out;
}

header a:hover{
    transform: scale(1.1);
    background-color: #334d31;
}

/* ---------- */
/*   BANNER   */
/* ---------- */

.banner{
    margin-top: 100px;
    width: 95%;
    background-image: linear-gradient(100deg, #00000079 , #0000003d), url('Captura\ de\ pantalla\ \(87\).png');
    height: 40rem;
    border-radius: 30px;
    margin-left: auto;
    margin-right: auto;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.contenido-banner{
    max-width: 80rem;
    margin: 0 auto;
    padding: 20rem 0;
}

.contenido-banner p{
    color: #a7a7a7;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.contenido-banner h2{
    color: #fff;
    font-size: 3rem;
    font-weight: 500;
    line-height: 1.2;
}

.contenido-banner a{
    margin-top: 2rem;
    text-decoration: none;
    color: #fff;
    background-color: #314117;
    display: inline-block;
    padding: 1rem 3rem;
    text-transform: uppercase;
    border-radius: 3rem;
}

/* ------------- */
/*   PRODUCTOS   */
/* ------------- */

#publicaciones {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 0;
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.card {
    background: #ffffff;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.438);
    border-bottom: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.10);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card > img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

.card-body {
    padding: 22px;
}

.card-body h3 {
    color: #263A24;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.card-body p {
    max-width: 300px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.card-body span {
    display: block;
    color: #556B2F;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 15px 0;
}

.card-body p:last-child {
    color: #556B2F;
    font-weight: 600;
}

/* Celular*/
@media (max-width: 480px) {
    header img{
        width: 110px;
    }

    header h1{
        display: none;
    }

    header a{
        text-align: center;
        width: 140px;
    }

    .banner{
        background-image: linear-gradient(100deg, #000000c5 , #00000020), url('alfalfa-movil.jpg');
    }

    .contenido-banner{
        max-width: 30rem;
        margin: 0 auto;
        padding: 20rem 1rem;
    }

    .contenido-banner p{
        color: #a7a7a7;
        font-size: 1.3rem;
        margin-bottom: .1rem;
        font-weight: 500;
    }

    .contenido-banner h2{
        color: #fff;
        font-size: 2rem;
        font-weight: 500;
        line-height: 1.2;
    }

    .contenido-banner a{
        margin-top: 1rem;
        text-decoration: none;
        color: #fff;
        background-color: #314117;
        display: inline-block;
        padding: .8rem 1.6rem;
        text-transform: uppercase;
        border-radius: 3rem;
    }

    .gallery {
        width: 95%;
        height: 250px !important;
        gap: 0.5rem;
    }

    .footer{
        margin-top: 30px !important;
    }

}

/* Tablet */
@media (min-width: 600px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
}

/* Computadora */
@media (min-width: 1000px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
    }

    .contenido-banner a{
        transition: all .4s ease-in-out;
    }

    .contenido-banner a:hover{
        transform: scale(1.1);
        background-color: #2b461a;
    }
}


/*galery de img's*/

.gallery {
    width: 95%;
    max-width: 1600px;
    height: 500px;

    margin: 0 auto 3rem;

    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 1rem;
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Imagen central */
.gallery-img-3 {
    grid-column: 2;
    grid-row: 1 / 3;
}

/* Izquierda */
.gallery-img-1 {
    grid-column: 1;
    grid-row: 1;
    border-top-left-radius: 10px;
}

.gallery-img-4 {
    grid-column: 1;
    grid-row: 2;
    border-bottom-left-radius: 10px;
}

/* Derecha */
.gallery-img-2 {
    grid-column: 3;
    grid-row: 1;
    border-top-right-radius: 10px;
}

.gallery-img-5 {
    grid-column: 3;
    grid-row: 2;
    border-bottom-right-radius: 10px;
}

/* ****** */
/* footer */
/* ****** */

.footer {
  margin-top: 300px;
  position: relative;
  width: 100%;
  background: #263A24;
  min-height: 100px;
  padding: 20px 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.social-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin: 10px 5px;
  flex-wrap: wrap;
}

.icon-elem {
  list-style: none;
}

.icon {
  color: white;
  font-size: 32px;
  display: inline-block;
  margin: 0 10px;
  transition: 0.5s;
}

.icon:hover {
  transform: translateY(-10px);
}

.menuu {
  display: flex;
  justify-content: center;
  position: relative;
  align-items: center;
  margin: 10px 0;
  flex-wrap: wrap;
}

.menu-elem {
  list-style: none;
}
.menu-icon {
  color: white;
  font-size: 20px;
  display: inline-block;
  text-decoration: none;
  margin: 5px 10px;
  opacity: 0.5;
  transition: 0.3s;
}

.menu-icon:hover {
  opacity: 1;
}

.text {
  color: white;
  text-align: center;
  margin-top: 15px;
  margin-bottom: 10px;
  font-size: 14px;
}