/* Custom Styles for Alojamiento Site */

/* Custom Fonts */
@font-face {
  font-family: 'Archivo';
  src: url('../ty/Archivo-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Archivo';
  src: url('../ty/Archivo-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Apply custom font to entire site */
body {
  font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus visible for accessibility */
*:focus-visible {
  outline: 2px solid #000000;
  outline-offset: 2px;
}

/* Button hover effects */
.module-prev:hover,
.module-next:hover {
  transform: translateY(-50%) scale(1.1);
  background-color: white !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

#prev-slide:hover,
#next-slide:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background-color: white !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Slider specific styles */
.slide {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.slide.active {
  display: block;
  opacity: 1;
  position: relative;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Slider indicators */
.indicator {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.indicator:hover {
  background-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.indicator.active {
  background-color: white;
  border-color: rgba(0, 0, 0, 0.5);
  transform: scale(1.3);
}

/* Active navigation link */
.nav-link.active {
  color: #000000;
  font-weight: 600;
}

/* Image lazy loading effect */
img {
  transition: opacity 0.3s ease-in-out;
}

img[loading="lazy"] {
  opacity: 0;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Custom animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Lightbox improvements */
#lightbox-modal img {
  max-height: 80vh;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Print styles */
@media print {
  header,
  footer,
  .no-print {
    display: none !important;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .bg-blue-600 {
    background-color: #1e3a8a;
  }
  
  .text-gray-600 {
    color: #000;
  }
}

/* Mobile menu transition */
#mobile-menu {
  transition: all 0.3s ease-in-out;
  max-height: 0;
  overflow: hidden;
}

#mobile-menu.show {
  max-height: 500px;
}
