/* ========================================
   SECCIÓN MENÚ
======================================== */

.section-menu {
  width: 100%;

  padding:
    4rem
    var(--page-padding-mobile);

  background-color: var(--color6);

  text-align: center;
}


/* ========================================
   CONTENEDOR GENERAL
======================================== */

.container-general-menu {
  width: 100%;
  max-width: var(--max-width);

  margin: 0 auto;

  display: flex;
  flex-direction: column;

  gap: 3rem;
}


/* ========================================
   BLOQUE DE TEXTO
======================================== */

.container-menu {
  width: 100%;

  display: flex;
  flex-direction: column;

  align-items: center;
}


.section-menu h5 {
  margin-bottom: 1rem;

  color: var(--color4);

  font-size: 0.9rem;
  font-weight: 700;

  text-align: center;
}


.section-menu h1 {
  max-width: 330px;

  margin: 0 auto 1.5rem;

  color: var(--color5);

  font-size: clamp(2rem, 8vw, 2.6rem);
  font-weight: 400;
  line-height: 1.05;

  text-align: center;
}


.section-menu p {
  max-width: 540px;

  margin: 0 auto 2rem;

  color: var(--color5);

  font-size: 1rem;
  line-height: 1.65;

  text-align: left;
}


/* ========================================
   BOTÓN
======================================== */

.container-button-menu {
  display: flex;
  justify-content: center;
}


.btn-menu-1 {
  width: 100%;
  max-width: 250px;
  min-height: 48px;

  padding: 0.8rem 1.4rem;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background-color: var(--color2);

  border-radius: 6px;

  color: var(--color8);

  font-size: 0.9rem;
  font-weight: 700;

  text-shadow: 1px 1px rgba(0, 0, 0, 0.2);

  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}


.btn-menu-1:hover {
  background-color: var(--color9);
  transform: translateY(-2px);
}


/* ========================================
   TARJETAS
======================================== */

.contenedor-info-menu {
  width: 100%;

  display: grid;
  grid-template-columns: 1fr;

  gap: 1rem;
}


.card-comida {
  position: relative;

  width: 100%;
  max-width: 420px;
  height: 180px;

  margin: 0 auto;

  overflow: hidden;

  border-radius: 8px;
}


.card-comida::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.55),
      rgba(0, 0, 0, 0.08)
    );

  pointer-events: none;
}


.card-comida img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.4s ease;
}


.card-comida:hover img {
  transform: scale(1.04);
}


/* ========================================
   TEXTO SOBRE TARJETAS
======================================== */

.card-titulo {
  position: absolute;

  left: 1rem;
  right: 1rem;
  bottom: 1rem;

  z-index: 1;
}


.card-titulo h3 {
  margin: 0;

  color: var(--color8);

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

  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.15;

  text-align: center;

  text-shadow: 1px 2px 3px rgba(0, 0, 0, 0.5);
}


/* ========================================
   TABLET
======================================== */

@media screen and (min-width: 768px) {

  .section-menu {
    padding:
      5rem
      var(--page-padding-tablet);
  }


  .container-general-menu {
    gap: 4rem;
  }


  .section-menu h5 {
    font-size: 1rem;
  }


  .section-menu h1 {
    max-width: 600px;

    font-size: 2.8rem;
  }


  .section-menu p {
    max-width: 650px;

    font-size: 1.05rem;
    line-height: 1.75;
  }


  .contenedor-info-menu {
    grid-template-columns: repeat(2, 1fr);

    gap: 1.5rem;
  }


  .card-comida {
    max-width: none;

    height: 200px;
  }

}


/* ========================================
   DESKTOP
======================================== */

@media screen and (min-width: 1024px) {

  .section-menu {
    min-height: 80vh;

    padding:
      6rem
      var(--page-padding-desktop);

    display: flex;
    align-items: center;
  }


  .container-general-menu {
    flex-direction: row-reverse;

    align-items: center;
    justify-content: space-between;

    gap: clamp(4rem, 8vw, 8rem);
  }


  /* Tarjetas a la izquierda */

  .contenedor-info-menu {
    flex: 1;

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

    gap: 1.2rem;
  }


  .card-comida {
    height: 170px;
  }


  /* Texto a la derecha */

  .container-menu {
    flex: 1;

    max-width: 540px;

    align-items: flex-end;
  }


  .section-menu h5 {
    width: 100%;

    margin-bottom: 1.5rem;

    font-size: 1rem;

    text-align: right;
  }


  .section-menu h1 {
    width: 100%;
    max-width: 100%;

    margin: 0 0 1.8rem;

    font-size: clamp(2.8rem, 3.6vw, 3.6rem);
    line-height: 1.05;

    text-align: right;
  }


  .section-menu p {
    max-width: 100%;

    margin: 0 0 2rem;

    font-size: 1.05rem;
    line-height: 1.7;

    text-align: right;
  }


  .container-button-menu {
    width: 100%;

    justify-content: flex-end;
  }

}