/* Home — optimización móvil (hero, pestañas, secciones) */

@media (max-width: 767px) {
  /* Hero: más alto y contenido con aire respecto al header y las pestañas */
  section.relative.isolate.h-\[640px\] {
    height: auto;
    min-height: clamp(480px, 88vh, 620px);
  }

  .home-hero-inner-wrap {
    align-items: flex-end;
    padding-top: 4.75rem;
    padding-bottom: 6.75rem;
  }

  .home-hero-content {
    width: 100%;
    max-width: 100%;
  }

  #hero-title {
    white-space: nowrap;
    font-size: clamp(1.35rem, 6.5vw, 2.75rem);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #hero-subtitle {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .home-hero-cta {
    font-size: 0.875rem;
  }

  /* Overlay más oscuro en móvil para legibilidad */
  .home-hero-bg #hero-overlay-main {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.45) 40%,
      rgba(0, 0, 0, 0.65) 100%
    ) !important;
  }

  /* Header del hero más compacto */
  header .site-header-bar {
    height: 60px;
    gap: 0.25rem;
  }

  header .site-header-bar > a {
    margin-right: 0.5rem !important;
  }

  .home-hero-nav {
    gap: 0;
  }

  /* Pestañas: scroll horizontal, pegadas al bloque blanco de abajo */
  .home-tabs-enter {
    bottom: 0;
    margin: 0;
  }

  #home-tabs-wrap {
    padding-bottom: 0 !important;
    margin-bottom: 0;
    align-items: flex-end;
  }

  .home-tabs-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    padding-bottom: 0;
    gap: 0;
    align-items: flex-end;
  }

  .home-tabs-scroll::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    flex-shrink: 0;
    scroll-snap-align: start;
    white-space: nowrap;
    margin-bottom: 0;
  }

  .tab-btn--idle {
    padding: 0.45rem 0.85rem;
    font-size: 0.8125rem;
    gap: 0.4rem;
  }

  .tab-btn--active {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    gap: 0.45rem;
    border-radius: 0.5rem 0.5rem 0 0;
    box-shadow: none;
    margin-bottom: 0;
  }

  .tab-btn__icon--img {
    width: 18px;
    height: 18px;
  }

  .tab-btn i.tab-btn__icon {
    font-size: 1rem !important;
  }

  /* Bloque de tours pegado a las pestañas activas */
  .home-catalog-section {
    margin-top: 0 !important;
    padding-top: 0;
  }

  .home-catalog-section .tab-panel-title {
    padding-top: 1.25rem;
  }

  .home-catalog-section .tab-panel-title {
    padding-top: 1.25rem;
  }

  /* Contenido bajo el hero */
  .home-catalog-section > .max-w-\[1150px\],
  section.bg-white > .max-w-\[1150px\].mx-auto {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .tab-panel-title,
  .home-section-title.text-\[34px\] {
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 1.25rem;
  }

  #home-trust-title {
    font-size: 1.375rem;
    margin-bottom: 1.25rem;
  }

  /* Carruseles destinos / programas */
  .home-carousel-btn--side {
    width: 2.125rem;
    height: 2.125rem;
  }

  .home-carousel-btn--prev {
    left: 0.65rem;
  }

  .home-carousel-btn--next {
    right: 0.65rem;
  }
}

@media (max-width: 380px) {
  section.relative.isolate.h-\[640px\] {
    min-height: 460px;
  }

  .home-hero-inner-wrap {
    padding-bottom: 6.25rem;
  }

  .tab-btn--idle {
    padding: 0.4rem 0.65rem;
    font-size: 0.75rem;
  }

  .tab-btn--active {
    padding: 0.45rem 0.75rem;
    font-size: 0.8125rem;
  }

  .tab-btn span,
  .tab-btn {
    gap: 0.3rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  #hero-title {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
  }

  .tab-btn--idle {
    padding: 0.5rem 2rem;
    font-size: 1rem;
  }

  .tab-btn--active {
    padding: 0.4rem 2.5rem;
    font-size: 1.0625rem;
  }
}
