/* ==========================================================================
   INKA WAYS — ADAPTABILIDAD RESPONSIVE PREMIUM (375px a 1920px+)
   Garantiza que ninguna sección se corte, desborde o se vea apretada
   ========================================================================== */

/* --- 1. TABLETS & PANTALLAS MEDIANAS (<= 1024px) --- */
@media (max-width: 1024px) {
  .nav-desktop {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .diverse-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .diverse-main-image {
    height: 380px;
  }

  .asymmetric-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 280px;
    gap: 1.5rem;
  }

  .gallery-item-1 { grid-column: 1 / 2; grid-row: 1 / 2; }
  .gallery-item-2 { grid-column: 2 / 3; grid-row: 1 / 2; }
  .gallery-item-3 { grid-column: 1 / 2; grid-row: 2 / 3; }
  .gallery-item-4 { grid-column: 2 / 3; grid-row: 2 / 3; }

  .why-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

/* --- 2. TABLETS VERTICALES & MÓVILES (<= 768px) --- */
@media (max-width: 768px) {
  :root {
    --header-height: 72px;
    --section-padding-y: 4rem;
    --section-padding-x: 1.25rem;
  }

  /* Animaciones suaves al scroll en móviles */
  [data-animate] {
    transition-duration: 0.65s;
    transform: translateY(24px);
  }
  [data-animate="fade-left"],
  [data-animate="fade-right"] {
    transform: translateY(24px);
  }
  [data-animate].is-in-view {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
  }

  /* Header Móvil */
  .brand-symbol {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .brand-tagline {
    font-size: 0.55rem;
  }

  /* Hero Adaptado a Pantallas Móviles */
  .hero-section {
    min-height: 100svh;
    padding: 6.5rem 1rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-title-main {
    font-size: clamp(2.75rem, 12vw, 4.5rem);
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
  }

  .hero-subtitle {
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
  }

  .hero-description {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    gap: 0.85rem;
  }

  .hero-cta-group .btn {
    width: 100%;
    padding: 0.9rem 1.5rem;
  }

  .hero-scroll-indicator {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: 2rem;
  }

  .scroll-line-track {
    height: 32px;
  }

  /* Sección: Un Mundo Diverso por Descubrir */
  .diverse-grid {
    gap: 2.5rem;
  }

  .diverse-main-image {
    height: 260px;
  }

  .diverse-floating-badge {
    position: static;
    margin-top: 1.25rem;
    max-width: 100%;
    padding: 1.25rem;
    transform: none !important;
  }

  .diverse-text-highlight {
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-size: 1.05rem;
  }

  /* Sección: Galería Asimétrica en Móvil */
  .gallery-header {
    margin-bottom: 2.5rem;
  }

  .asymmetric-gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
    gap: 1.25rem;
  }

  .gallery-item-1,
  .gallery-item-2,
  .gallery-item-3,
  .gallery-item-4 {
    grid-column: 1 / 2;
    grid-row: auto;
  }

  .gallery-item-overlay {
    padding: 1.25rem;
  }

  .gallery-item-title {
    font-size: 1.1rem;
  }

  .gallery-item-arrow {
    opacity: 1;
    transform: translateX(0);
    width: 28px;
    height: 28px;
  }

  /* Sección: Diseñamos Viajes Exclusivos (¡Solución para no cortar texto!) */
  .exclusive-banner {
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: var(--radius-md);
  }

  .exclusive-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .exclusive-content-overlay {
    position: relative;
    inset: auto;
    background: linear-gradient(180deg, rgba(11, 14, 13, 0.88) 0%, rgba(11, 14, 13, 0.96) 100%);
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .exclusive-quote {
    font-size: 1.45rem;
    margin-bottom: 1.25rem;
    line-height: 1.3;
  }

  .exclusive-desc {
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 1.75rem;
  }

  /* Sección: Lugares Mágicos (Cusco & Collage Adaptable) */
  .magical-grid {
    gap: 2.5rem;
  }

  .magical-collage {
    height: 300px;
    position: relative;
    width: 100%;
  }

  .collage-img-1 {
    width: 65%;
    height: 220px;
    top: 0;
    left: 0;
  }

  .collage-img-2 {
    width: 58%;
    height: 190px;
    bottom: 0;
    right: 0;
  }

  /* Sección: ¿Por Qué Elegir Perú? */
  .why-peru-intro {
    margin-bottom: 2.5rem;
  }

  .why-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .why-card {
    padding: 2rem 1.5rem;
  }

  /* Sección: Machu Picchu Video Showcase (Sin cortes) */
  .video-showcase-container {
    border-radius: var(--radius-md);
  }

  .video-poster-wrapper {
    min-height: 380px;
    height: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .video-poster-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .video-showcase-overlay {
    position: relative;
    inset: auto;
    padding: 3rem 1.25rem;
    background: linear-gradient(180deg, rgba(11, 14, 13, 0.6) 0%, rgba(11, 14, 13, 0.88) 100%);
  }

  .play-video-btn {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
  }

  .play-video-btn svg {
    width: 24px;
    height: 24px;
  }

  .video-showcase-title {
    font-size: 1.45rem;
    line-height: 1.3;
  }

  .video-showcase-desc {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  /* Sección de Contacto */
  .contact-details-list {
    margin: 2rem 0;
    gap: 1.5rem;
  }

  .contact-icon-box {
    width: 42px;
    height: 42px;
  }

  .contact-form-card {
    padding: 1.75rem 1.25rem;
    border-radius: var(--radius-md);
  }

  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px; /* Evita auto-zoom en iPhone */
    padding: 0.85rem 1rem;
  }

  /* Footer & Certificaciones */
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .certifications-badges {
    gap: 1rem;
    flex-direction: column;
  }

  .cert-badge-item span {
    font-size: 0.75rem !important;
    text-align: center;
  }

  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }

  /* Botón WhatsApp */
  .whatsapp-float-container {
    bottom: 1.25rem;
    right: 1.25rem;
  }

  .whatsapp-btn {
    width: 52px;
    height: 52px;
  }

  .whatsapp-btn svg {
    width: 28px;
    height: 28px;
  }

  .whatsapp-tooltip {
    display: none;
  }

  /* Páginas Legales */
  .page-hero {
    padding: 6.5rem 0 2.5rem;
  }

  .page-hero-title {
    font-size: 1.85rem;
  }

  .legal-card {
    padding: 2rem 1.25rem;
    border-radius: var(--radius-md);
  }

  .legal-card h2 {
    font-size: 1.35rem;
    margin-top: 2rem;
  }
}

/* --- 3. MÓVILES PEQUEÑOS & ULTRA ESTRECHOS (<= 640px y <= 390px) --- */
@media (max-width: 640px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .site-header {
    padding: 0.6rem 0.85rem;
  }

  .header-inner {
    gap: 0.5rem;
  }

  .header-actions {
    gap: 0.6rem;
  }

  .header-actions .lang-switcher {
    padding: 0.25rem 0.45rem;
    gap: 0.2rem;
  }

  .header-actions .lang-btn {
    padding: 0.15rem 0.35rem;
  }

  .header-actions .lang-code {
    display: none;
  }

  .mobile-drawer {
    width: 100%;
    max-width: 100vw;
    padding: 1.25rem 1.25rem 2rem;
  }

  .mobile-drawer-close {
    width: 42px;
    height: 42px;
    font-size: 1.35rem;
  }

  .nav-mobile-link {
    font-size: 1.15rem;
  }

  .container {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
}

@media (max-width: 390px) {
  :root {
    --section-padding-x: 0.85rem;
  }

  .hero-title-main {
    font-size: 2.35rem;
  }

  .hero-subtitle {
    font-size: 1.15rem;
  }

  .btn {
    padding: 0.8rem 1.15rem;
    font-size: 0.72rem;
  }

  .exclusive-quote {
    font-size: 1.25rem;
  }

  .video-showcase-title {
    font-size: 1.25rem;
  }

  .magical-collage {
    height: 260px;
  }

  .collage-img-1 {
    width: 70%;
    height: 180px;
  }

  .collage-img-2 {
    width: 65%;
    height: 160px;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .brand-tagline {
    display: none;
  }

  .mobile-toggle {
    width: 42px;
    height: 42px;
  }
}

/* --- 4. MÓVILES ULTRA COMPACTOS (<= 360px: iPhone SE 1, Galaxy Fold cover, etc.) --- */
@media (max-width: 360px) {
  :root {
    --section-padding-x: 0.75rem;
  }

  .hero-title-main {
    font-size: 2.05rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .hero-description {
    font-size: 0.88rem;
  }

  .hero-cta-group {
    max-width: 100%;
  }

  .btn {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }

  .brand-symbol {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }

  .brand-name {
    font-size: 0.88rem;
  }

  .nav-mobile-link {
    font-size: 1.05rem;
  }

  .contact-form-card {
    padding: 1.25rem 0.85rem;
  }

  .footer-arch-frame {
    height: 280px;
  }
}

