/* ============================================
   🚨 FIX GAP HERO - IPHONE 16 PRO MAX
   ============================================ */

/* 1️⃣ Body sin padding superior */
body {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* 2️⃣ Navbar siempre pegado arriba */
.navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
}

/* 3️⃣ Hero sin margin, solo padding */
.hero {
  margin-top: 0 !important;
  padding-top: 72px !important;
}

/* 4️⃣ Mobile: ajustar todo */
@media (max-width: 768px) {
  .navbar {
    min-height: 60px !important;
  }
  
  .hero {
    padding-top: 60px !important;
  }
}

/* 5️⃣ iPhone específico: sin env() */
@supports (-webkit-touch-callout: none) {
  .hero {
    padding-top: 60px !important;  /* ✅ Fijo, sin cálculos dinámicos */
  }
}/* ============================================
   🔧 RESPONSIVE FIX MÍNIMO - SOLO HERO
   NO TOCA: Navbar, Carousel, Footer, nada más
   ============================================ */

/* 1️⃣ HERO: Asegurar que las imágenes se vean */
.hero {
  position: relative !important;
  width: 100vw !important;
  height: 100vh !important;
  overflow: hidden !important;
}

.hero-gallery {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.hero-slide {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

/* Asegurar que las imágenes de fondo se vean */
.hero-image,
.hero-image-mobile {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-size: cover !important;
  background-position: center !important;
}

/* Desktop: mostrar hero-image */
@media (min-width: 769px) {
  .hero-image {
    display: block !important;
  }
  .hero-image-mobile {
    display: none !important;
  }
}

/* Mobile: mostrar hero-image-mobile */
@media (max-width: 768px) {
  .hero-image {
    display: none !important;
  }
  .hero-image-mobile {
    display: block !important;
  }
}

/* 2️⃣ HERO TEXT: Posicionamiento limpio */
.hero-text-float {
  position: absolute !important;
  z-index: 10 !important;
  color: white !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) !important;
}

/* Desktop: texto abajo izquierda */
@media (min-width: 1024px) {
  .hero-text-float {
    bottom: 8% !important;
    left: 5% !important;
    max-width: 560px !important;
    text-align: left !important;
  }
}

/* Tablet: texto centrado abajo */
@media (min-width: 769px) and (max-width: 1023px) {
  .hero-text-float {
    bottom: 8% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    max-width: 500px !important;
    text-align: center !important;
    padding: 0 2rem !important;
  }
}

/* Mobile: texto centrado abajo con más padding */
@media (max-width: 768px) {
  .hero-text-float {
    bottom: 10% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 90% !important;
    max-width: 420px !important;
    text-align: center !important;
    padding: 0 1rem !important;
  }
  
  .hero-title {
    font-size: clamp(1.6rem, 5.5vw, 2.4rem) !important;
    line-height: 1.2 !important;
  }
  
  .hero-subtitle {
    font-size: clamp(0.95rem, 3.5vw, 1.15rem) !important;
    line-height: 1.5 !important;
  }
  
  .hero-buttons {
    flex-direction: column !important;
    gap: 0.75rem !important;
    width: 100% !important;
  }
  
  .hero-buttons .btn {
    width: 100% !important;
    max-width: 280px !important;
    margin: 0 auto !important;
  }
}

/* 3️⃣ FLECHAS HERO: Asegurar visibilidad */
.hero-arrow {
  z-index: 100 !important;
  pointer-events: auto !important;
}

.hero-arrow-prev {
  left: 1rem !important;
}

.hero-arrow-next {
  right: 1rem !important;
}

/* 4️⃣ PREVENIR OVERFLOW HORIZONTAL GLOBAL */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

* {
  box-sizing: border-box !important;
}

/* 5️⃣ MOBILE EXTRA: Ajustar height en iOS */
@supports (-webkit-touch-callout: none) {
  .hero {
    height: -webkit-fill-available !important;
  }
}

/* END FIX MÍNIMO */
/* ============================================
   🎯 FIX ESPECÍFICO IPAD PRO (1024x1366)
   Botones del hero demasiado largos
   ============================================ */

/* iPad Pro y tablets similares (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  
  /* 1️⃣ Botones del hero con ancho máximo */
  .hero-buttons {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1rem !important;
    width: 100% !important;
    max-width: 400px !important;
    margin: 0 auto !important;
  }
  
  .hero-buttons .btn {
    width: 100% !important;
    max-width: 320px !important;
    padding: 0.85rem 1.8rem !important;
    font-size: 0.95rem !important;
    text-align: center !important;
    white-space: nowrap !important;
  }
  
  /* 2️⃣ Hero text centrado en tablets */
  .hero-text-float {
    bottom: 10% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    max-width: 500px !important;
    text-align: center !important;
    padding: 0 2rem !important;
  }
  
  /* 3️⃣ Títulos ajustados */
  .hero-title {
    font-size: 2.4rem !important;
    margin-bottom: 1rem !important;
  }
  
  .hero-subtitle {
    font-size: 1.1rem !important;
    margin-bottom: 1.5rem !important;
  }
}

/* iPad Pro en horizontal (landscape) - ajuste adicional */
@media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
  .hero-buttons .btn {
    max-width: 280px !important;
    padding: 0.75rem 1.5rem !important;
  }
  
  .hero-text-float {
    max-width: 480px !important;
  }
}

/* iPad Air y tablets medianas (820px - 912px) */
@media (min-width: 820px) and (max-width: 912px) {
  .hero-buttons {
    max-width: 380px !important;
  }
  
  .hero-buttons .btn {
    max-width: 300px !important;
  }
}

/* END FIX IPAD PRO */
/* ============================================
   🔧 FIX HERO BOTONES - DIMENSIONES MEDIAS
   (1280px - 1500px - DevTools abierto)
   ============================================ */

@media (min-width: 1280px) and (max-width: 1500px) {
  
  /* 1️⃣ Contenedor de texto hero */
  .hero-text-float {
    bottom: 8% !important;
    left: 5% !important;
    max-width: 480px !important;
    padding: 0 1rem !important;
  }
  
  /* 2️⃣ Título hero más compacto */
  .hero-title {
    font-size: 2.2rem !important;
    margin-bottom: 0.8rem !important;
    line-height: 1.2 !important;
  }
  
  /* 3️⃣ Subtítulo hero más compacto */
  .hero-subtitle {
    font-size: 1.1rem !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.5 !important;
  }
  
  /* 4️⃣ Botones hero - layout vertical compacto */
  .hero-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.8rem !important;
    align-items: flex-start !important;
    width: 100% !important;
    max-width: 320px !important;
  }
  
  /* 5️⃣ Botones individuales - tamaño controlado */
  .hero-buttons .btn {
    width: 100% !important;
    max-width: 280px !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 0.85rem !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  
  /* 6️⃣ Span dentro de botones */
  .hero-buttons .btn span {
    display: inline-block !important;
    max-width: 100% !important;
  }
}

/* ============================================
   🔧 FIX EXTRA - PANTALLAS MUY ANCHAS
   (Para casos extremos > 2000px)
   ============================================ */

@media (min-width: 2000px) {
  .hero-text-float {
    bottom: 10% !important;
    left: 8% !important;
    max-width: 700px !important;
  }
  
  .hero-title {
    font-size: 4rem !important;
  }
  
  .hero-subtitle {
    font-size: 1.5rem !important;
  }
  
  .hero-buttons .btn {
    max-width: 320px !important;
    padding: 1rem 2.2rem !important;
    font-size: 1rem !important;
  }
}