/**************************/
/* BELOW 1440px (Smaller desktops) */
/**************************/
@media (max-width: 90em) {
  html {
    font-size: 61%;
  }

  .hero {
    max-width: 120rem;
  }

  .order-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.6rem;
  }

  .gallery-item img {
    width: 100%;
    height: 100%;
  }

  .order-left-box {
    gap: 2rem;
  }

  .main-img {
    width: 100rem;
  }

  .slide {
    flex: 0 0 100%; /* ocupa 100% del contenedor */
    height: 600px;
    max-width: 100%;
  }
}

@media (max-width: 80em) {
  html {
    font-size: 60%;
  }

  .container {
    max-width: 100rem;
  }

  .main-img {
    width: 90rem;
  }

  .slide {
    height: 580px;
    max-width: 100%;
  }
}

@media (max-width: 63em) {
  html {
    font-size: 59%;
  }

  .container {
    max-width: 70rem;
  }

  .hero-description {
    max-width: 50rem;
  }

  .hero-description p {
    padding-top: 6rem;
    font-size: 2.8rem;
    line-height: 1.5;
  }

  .main-img {
    width: 80rem;
  }

  .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1200;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    height: 60px; /* altura del header */
    padding: 0; /* elimina padding grande */

    background-color: rgba(255, 255, 255, 0.8); /* opacidad inicial */
    transition: transform 0.4s ease, opacity 0.4s ease;
  }

  .nav-container {
    display: flex;
    justify-content: space-between; /* logo izquierda, toggle derecha */
    align-items: center;
    width: 100%;
    padding: 0 1rem; /* margen lateral mínimo */
  }

  .logo {
    height: 40px;
    margin: 0;
    padding: 0;
  }

  .menu-toggle {
    display: block;
    position: absolute; /* relativo al .header */
    right: 2rem; /* margen lateral */
    top: 50%; /* punto medio vertical del header */
    transform: translateY(-50%); /* lo centra exactamente */
    font-size: 2.5rem;
    z-index: 1300;
    cursor: pointer;
  }

  .main-nav-list {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
    background-color: rgba(255, 255, 255, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    padding-top: 60px; /* espacio para header */
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    z-index: 1100;
  }

  .main-nav-list.active {
    transform: translateY(0);
    opacity: 1;
  }

  .main-nav-link {
    font-size: 2rem;
    color: var(--brown);
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 0.3s, color 0.3s;
  }

  .main-nav-link:hover {
    color: var(--orange);
    transform: scale(1.05);
  }

  .section-hero {
    padding-top: 60px; /* espacio igual a la altura del header */
  }

  .slide {
    height: 430px;
    max-width: 100%;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}

@media (max-width: 40em) {
  .contact-btn-box {
    flex-direction: column;
  }

  .contact-btn-box .btn {
    text-align: center;
    align-self: center;
  }

  .hero-text-box {
    padding: 0 6rem;
  }

  .hero-title-secondary span {
    font-size: 6.8rem;
  }

  .hero-title {
    transform: scale(0.95);
  }
  .hero-description p {
    font-size: 2.5rem;
  }

  .main-img {
    width: 70rem;
  }

  .slide {
    height: 280px;
  }
}

@media (max-width: 33em) {
  .slide {
    height: 250px;
  }
}

@media (max-width: 27em) {
  .hero-title {
    transform: scale(0.75);
  }

  .hero {
    padding: 0 10rem;
  }

  .hero-description {
    padding: 0 2.8rem;
  }

  .hero-description p {
    font-size: 2.1rem;
  }

  .main-img {
    width: 50rem;
  }
}
