/* Base styles and custom animations para FV Seguros */
html {
  scroll-behavior: smooth;
}

/* Base states for intersection observer animations */
.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.fade-in {
  /* opacity base handles it */
}

.slide-up {
  transform: translateY(40px);
}

/* Active states added by Intersection Observer (main.js) */
.is-visible.fade-in {
  opacity: 1;
}

.is-visible.slide-up {
  opacity: 1;
  transform: translateY(0);
}

/* Navbar Hide/Show on scroll */
.nav-hidden {
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
}

.sticky.top-6 {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

/* Mobile Optimizations */
@media (max-width: 640px) {
    .fab-container {
        bottom: 1rem !important;
        right: 1rem !important;
        width: 3.5rem !important;
        height: 3.5rem !important;
    }

    .fab-trigger {
        width: 3.5rem !important;
        height: 3.5rem !important;
    }

    .fab-options {
        bottom: 4.5rem !important;
    }

    .fab-option {
        width: 3rem !important;
        height: 3rem !important;
    }

    .fab-label {
        right: 4rem !important;
        font-size: 0.7rem !important;
    }
}
