/* ============================================
   SANTANA EXPEDITIONS - ESTILOS RESPONSIVE
   ============================================ */

/* Ocultar botón móvil en escritorio */
.nav-cta-mobile {
  display: none !important;
}

/* Tablet y móvil (max-width: 768px) */
@media (max-width: 768px) {
  /* El navbar se compacta: el logo baja a 40px y el padding a .5rem */
  :root {
    --nav-height: 58px;
  }

  .menu-toggle {
    display: block;
  }
  
  /* El botón «Reservar Ahora» solo se ve con el menú abierto. Se ata al checkbox
     porque el menú ya no usa la clase .active. */
  .menu-check:checked ~ .nav-links .nav-cta-mobile {
    display: block !important;
    margin-top: 1rem;
    width: 100%;
    background: var(--forest);
    color: #fff;
    border: none;
    padding: 0.7rem;
    border-radius: var(--radio);
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    cursor: pointer;
    text-transform: uppercase;
  }
  
  .nav-links {
    position: fixed;
    /* Se alinea con la barra: --nav-height es 58 px en móvil. Antes eran 70 px
       fijos, que dejaban una franja de la página asomando por arriba. */
    top: var(--nav-height);
    left: -100%;
    width: 80%;
    max-width: 320px;
    /* dvh tiene en cuenta la barra del navegador del móvil; vh se queda como
       respaldo para navegadores antiguos. */
    height: calc(100vh - var(--nav-height));
    height: calc(100dvh - var(--nav-height));
    background: var(--bg-card);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    transition: left .3s ease;
    border-right: 2px solid var(--border-light);
    z-index: 99;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    /* Si el contenido es más alto que la pantalla, se puede desplazar */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* La apertura la controla el checkbox, en style.css:
     .menu-check:checked ~ .nav-links { left: 0 !important; }
     Antes era .nav-links.active, pero el menú ya no usa esa clase. */

  .nav-links li {
    width: 100%;
  }
  
  .nav-links a {
    display: block;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-light);
  }
  
  .nav-cta {
    display: none;
  }
  
  nav {
    padding: 0.7rem 1rem;
  }
  
  section {
    padding: 2rem 1rem;
  }
  
  /* ===== HERO FORM COMPACTO PARA MÓVIL ===== */
  .hero-content {
    padding: 0.5rem 0.8rem;
    max-width: 100%;
  }
  
  .hero-eyebrow {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    font-style: italic;
  }
  
  /* Tamaños legibles: el original bajaba el titular a 1.3rem y el subtítulo a
     0.7rem (unos 11 px), por debajo de lo cómodo para leer en un teléfono. */
  .hero-title {
    font-size: clamp(1.75rem, 7vw, 2.2rem);
    margin-bottom: 0.5rem;
    line-height: 1.15;
  }
  
  .hero-sub {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
  }
  
  .hero-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    padding: 0.75rem !important;
    border-radius: var(--radio-suave) !important;
    background: var(--bg-card) !important;
  }
  
  /* ESTILOS DEL PRIMER FORMULARIO (HERO) - FUNCIONA PERFECTO */
  .hero-form select,
  .hero-form input,
  .hero-form .btn-primary {
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    padding: 0 12px !important;
    font-size: 16px !important;
    border-radius: 8px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  
  .hero-form select,
  .hero-form .btn-primary {
    line-height: 42px !important;
  }
  
  .hero-form input {
    line-height: normal !important;
  }
  
  .hero-form input[type="date"] {
    line-height: normal !important;
  }
  
  .hero-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 12px !important;
    appearance: none !important;
  }
  
  .hero-form input::placeholder {
    font-size: 14px !important;
    line-height: normal !important;
  }
  
  .hero-form .btn-primary {
    background: var(--forest) !important;
    color: #fff !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-top: 4px !important;
    cursor: pointer !important;
  }
  
  .hero-form .btn-primary:hover {
    background: var(--forest-mid) !important;
    transform: translateY(-1px);
  }
  
  .hero-badges {
    gap: 0.5rem !important;
    margin-top: 0.75rem !important;
    justify-content: center !important;
  }
  
  .hero-badge {
    font-size: 0.65rem !important;
    gap: 0.25rem !important;
  }
  
  .badge-dot {
    width: 5px !important;
    height: 5px !important;
  }
  
  .puntos-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  footer {
    padding: 1rem;
    flex-direction: column;
    text-align: center;
  }
  
  .mochima-banner {
    padding: 1rem;
    gap: 0.8rem;
    text-align: center;
    justify-content: center;
  }
  
  .mochima-title {
    font-size: 1.1rem;
  }
  
  .social-proof {
    display: none;
  }
  
  .toast-notification {
    width: 90%;
    bottom: 80px;
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
  }
  
  .floating-buttons {
    /* EL ÚNICO SITIO donde se coloca esta caja en móvil.
       Antes ponía `bottom: 15px`, que dejaba los botones DENTRO de la barra
       inferior (105 px de alto con la barra de gestos del iPhone): el de WhatsApp
       quedaba detrás y no se veía.
       Ahora se sube por encima de la barra, cuya altura real mide ui-helpers.js.
       110 px es solo el respaldo si ese script no corre. */
    bottom: calc(var(--barra-alto, 110px) + 16px + env(safe-area-inset-bottom, 0px));
    right: 15px;
    gap: 8px;
    /* Por debajo del <nav> (100), para que el velo del menú los cubra */
    z-index: 80;
  }
  
  .floating-btn {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
  
  .floating-btn::before {
    display: none;
  }
  
  .wa-fab svg {
    width: 20px;
    height: 20px;
  }
}

/* ============================================
   MÓVIL PEQUEÑO (hasta 480px)
   ============================================ */
@media (max-width: 480px) {
  .hero-form {
    gap: 0.4rem !important;
    padding: 0.6rem !important;
  }
  
  .hero-form select,
  .hero-form input,
  .hero-form .btn-primary {
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    padding: 0 10px !important;
    font-size: 16px !important;
  }
  
  .hero-form select,
  .hero-form .btn-primary {
    line-height: 38px !important;
  }
  
  .hero-form input {
    line-height: normal !important;
  }
  
  .hero-form .btn-primary {
    margin-top: 2px !important;
  }
  
  .hero-form input::placeholder {
    font-size: 13px !important;
  }
  
  .hero-badges {
    gap: 0.4rem !important;
    margin-top: 0.6rem !important;
  }
  
  .hero-badge {
    font-size: 0.6rem !important;
  }
  
  .section-title {
    text-align: center;
    font-size: clamp(1.2rem, 4vw, 1.4rem);
  }
  
  .divider {
    margin: 0.6rem auto 0.8rem;
    width: 40px;
  }
  
  .paquetes-grid,
  .servicios-grid {
    grid-template-columns: 1fr;
  }
  
  .porque-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }
  
  .testimonios-grid {
    grid-template-columns: 1fr;
  }
  
  .pack-footer {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
    text-align: center;
  }
  
  .pack-footer .btn-outline {
    width: 100%;
  }
  
  .nav-links {
    width: 85%;
    padding: 1rem;
  }
}

/* ============================================
   DESKTOP PEQUEÑO (769px - 1024px)
   ============================================ */
@media (min-width: 769px) and (max-width: 1024px) {
  section {
    padding: 3rem 2rem;
  }
  
  .puntos-grid {
    gap: 2rem;
  }
  
  .paquetes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   MÓVIL LANDSCAPE (horizontal)
   ============================================ */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: 65px;
  }
  
  .hero-content {
    padding: 0.5rem 1rem;
  }
  
  .hero-title {
    font-size: 1.2rem;
  }
  
  .hero-form {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.4rem !important;
  }
  
  .hero-form select,
  .hero-form input,
  .hero-form .btn-primary {
    height: 38px !important;
    min-height: 38px !important;
    font-size: 16px !important;
  }
  
  .hero-form select,
  .hero-form .btn-primary {
    line-height: 38px !important;
  }
  
  .hero-form input {
    line-height: normal !important;
  }
  
  .hero-form .btn-primary {
    grid-column: span 2 !important;
  }
  
  .hero-badges {
    justify-content: flex-start;
  }
}

/* ============================================
   CORRECCIÓN ESPACIO EXTRA EN MÓVIL
   ============================================ */

@media (max-width: 768px) {
  #hero {
    padding-top: 56px !important;
    min-height: auto !important;
    margin-top: 0 !important;
  }
  
  .hero-content {
    padding-top: 0.5rem !important;
    margin-top: 0 !important;
  }
  
  nav {
    padding: 0.5rem 1rem !important;
  }
  
  body {
    padding-top: 0 !important;
  }
  
  #puntos-banner {
    margin-top: 0;
    padding: 0.6rem 1rem;
  }
}

@media (max-width: 480px) {
  #hero {
    padding-top: 52px !important;
  }
  
  .hero-content {
    padding: 0.25rem 0.6rem !important;
  }
}

/* ============================================
   CORRECCIÓN FORMULARIO DE RESERVA EN MÓVIL
   AHORA USA LOS MISMOS PARÁMETROS QUE EL HERO FORM
   ============================================ */

@media (max-width: 768px) {
  /* Contenedor del formulario de reserva */
  #reserva-wrap {
    padding: 2rem 1rem !important;
  }
  
  #reserva-wrap .section-label {
    font-size: 0.9rem !important;
  }
  
  #reserva-wrap .section-title {
    font-size: 1.3rem !important;
  }
  
  #reserva-wrap .section-sub {
    font-size: 0.8rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  #reserva-wrap .divider {
    margin: 0.8rem auto 1rem !important;
  }
  
  /* Contenedor del formulario - MISMA ESTRUCTURA QUE HERO-FORM */
  .reserva-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
  
  /* El formulario de reserva pasa a una sola columna en móvil.
   Se eliminaron las reglas que forzaban height: 42px !important: con la
   etiqueta encima, un campo de altura fija se corta. */
  .reserva-form {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    max-width: 100% !important;
  }

  .btn-big {
    width: 100% !important;
    margin-top: 0.6rem !important;
  }
/* Social links */
  .social-links {
    gap: 0.8rem !important;
    margin-top: 1.5rem !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }
  
  .social-link {
    font-size: 0.7rem !important;
    padding: 6px 10px !important;
  }
}

@media (max-width: 480px) {
  /* Las reglas que forzaban height: 38px !important se eliminaron: con la
     etiqueta encima del campo, una altura fija corta el contenido. */
  .reserva-form {
    gap: 0.9rem !important;
  }

  .campo-reserva label {
    font-size: 0.68rem !important;
  }
}