/* Custom styles for JUFEX Seguridad */

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

/* Selection color */
::selection {
    background-color: rgba(13, 148, 136, 0.3);
    color: #f1f5f9;
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation classes */
[data-animate] {
    opacity: 0;
}

[data-animate].animate {
    animation-fill-mode: both;
}

[data-animate="fade-up"].animate {
    animation: fadeInUp 0.7s ease forwards;
}

[data-animate="fade-right"].animate {
    animation: fadeInRight 0.7s ease forwards;
}

[data-animate="fade-left"].animate {
    animation: fadeInLeft 0.7s ease forwards;
}

/* Stagger delays */
[data-animate][data-delay="100"].animate {
    animation-delay: 0.1s;
}

[data-animate][data-delay="200"].animate {
    animation-delay: 0.2s;
}

[data-animate][data-delay="300"].animate {
    animation-delay: 0.3s;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Hamburger animation */
#bar1.open {
    transform: translateY(4px) rotate(45deg);
}

#bar2.open {
    opacity: 0;
}

#bar3.open {
    transform: translateY(-4px) rotate(-45deg);
}

/* Floating CTA pulse */
.floating-cta {
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 4px 30px rgba(13, 148, 136, 0.5), 0 0 0 0 rgba(13, 148, 136, 0.4);
    }
    70% {
        box-shadow: 0 4px 30px rgba(13, 148, 136, 0.5), 0 0 0 15px rgba(13, 148, 136, 0);
    }
    100% {
        box-shadow: 0 4px 30px rgba(13, 148, 136, 0.5), 0 0 0 0 rgba(13, 148, 136, 0);
    }
}

/* Gold gradient text utility */
.gold-gradient {
    background: linear-gradient(135deg, #d4af37, #f3cf55);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Focus styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

/* Select dropdown arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Image hover effect */
.group:hover img {
    transform: scale(1.03);
    transition: transform 0.6s ease;
}

/* Subtle pattern overlay for sections */
.section-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
    background-size: 40px 40px;
}
