/* ===== NON-CRITICAL CSS - assets/css/non-critical.css ===== */

/* Gallery styles - Diferido */
.gallery-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 0;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.gallery-scroll::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  flex: 0 0 280px;
  scroll-snap-align: center;
  cursor: pointer;
  transition: transform 0.4s ease, opacity 0.4s ease;
  transform: scale(0.85);
  opacity: 0.7;
  background: transparent;
  border: none;
  position: relative;
}

.gallery-item.active {
  transform: scale(1);
  opacity: 1;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
}

.gallery-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
  opacity: 0.9;
}

/* Video testimonials - Diferido */
.video-testimonial {
  aspect-ratio: 9/16;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  position: relative;
}

.video-testimonial:hover {
  transform: scale(1.02);
}

.video-testimonial .overlay {
  border-radius: inherit;
  transition: inherit;
}

/* Packages animations - Diferido */
.package-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.package-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.feature-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fd5b30;
  color: white;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
}

/* Enhanced hover effects - Diferido */
.intro-video-container:hover .play-button {
  background: white;
  transform: translate(-50%, -50%) scale(1.1);
}

/* Wave divider - Diferido */
.wave-divider {
  position: relative;
  background: white;
  color: #f8fafc;
  height: 100px;
}

/* Gradient backgrounds - Diferido */
.gradient-bg {
  background: linear-gradient(135deg, #3c0a6d 0%, #6d23b6 50%, #fd5b30 100%);
}

/* Mobile lang selector - Diferido */
.mobile-lang-selector {
  border-top: 1px solid #f1f5f9;
  padding: 1rem 1.5rem;
  background: #f8fafc;
}

/* Header content transition - Diferido */
.header-content {
  transition: all 0.3s ease;
}

/* Damaged effect - Diferido */
.damaged-effect {
  filter: sepia(1) contrast(1.2) brightness(0.8);
  position: relative;
}

/* Lazy loading image transitions */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* FAQ animations - Diferido */
.faq-question {
  transition: all 0.3s ease;
}

.faq-question:hover {
  background-color: #f8fafc;
}

.faq-answer {
  transition: all 0.3s ease;
}

/* Enhanced desktop CTA - Diferido */
.sticky-cta-desktop:hover {
  transform: scale(1.1);
  animation: none;
}

/* Responsive adjustments - Diferido */
@media (max-width: 400px) {
  #gallery-prev, #gallery-next {
    display: none;
  }
  
  .gallery-item {
    flex: 0 0 250px;
  }
}

/* Print styles - Diferido */
@media print {
  .sticky-cta,
  .sticky-cta-desktop {
    display: none;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .gallery-item,
  .package-card,
  .video-testimonial,
  .sticky-cta-desktop {
    transition: none;
    animation: none;
  }
  
  html {
    scroll-behavior: auto;
  }
}