@font-face {
  font-family: 'Breathing';
  src: url('/fonts/Breathing.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@layer utilities {
  [id] {
    scroll-margin-top: 5rem; /* equivalente a scroll-mt-20 */
  }
}

/* Estilo inicial para elementos que se animarán */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px); /* Desplazamiento inicial (opcional) */
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Clase que se añadirá al hacer scroll */
.animate-slide-up {
  opacity: 1;
  transform: translateY(0);
}

#hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Optimización adicional para prevenir flashes */
#hero-video-element {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

#hero-video-element.loaded {
  opacity: 1;
}

@media (orientation: landscape) and (max-width: 1024px) {
  .h-mobile-landscape {
    height: 110vh !important;
  }
}

@media (orientation: landscape) and (max-width: 1024px) {
  .navbar {
    height: 48px !important; /* Ajusta el valor según lo que necesites */
    min-height: 48px !important;
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
  }
  #header {
    margin-top: 0px !important; /* Igual a la nueva altura del navbar */
  }
}
