.carousel-track {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.carousel-card {
    scroll-snap-align: start;
}

.dot.active {
    background-color: white;
}

.hero-bg {
    background-color: #0f2038;
}

#hero-parallax-bg {
    position: absolute;
    inset: 0;
    background-image: url(/img/bg_ppr.png);
    background-size: cover;
    background-position: center;
    z-index: 0;
    will-change: transform;
}

#hero-bg-1, #hero-bg-2, #hero-bg-3 {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    will-change: transform;
    opacity: 0;
}

#hero-bg-1 { background-image: url(/img/autos_new.avif); }
#hero-bg-2 { background-image: url(/img/empresarial.avif); }
#hero-bg-3 { background-image: url(/img/gastos_medicos.jpeg); }

#hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to right, #0f2038 0%, #0f2038 45%, rgba(15, 32, 56, 0.4) 65%, rgba(15, 32, 56, 0.1) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Hero rotating texts */
#hero-texts {
    position: relative;
    margin-bottom: 2rem;
}

.hero-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
}

#hero-text-0 {
    position: relative;
    opacity: 1;
}

#navbar {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

#navbar.nav-hidden {
    transform: translateY(-100%);
}

#navbar.nav-scrolled {
    background-color: rgba(15, 32, 56, 0.85);
    backdrop-filter: blur(8px);
}

.gradient-bg {
    background: linear-gradient(135deg, #0c1c34 0%, #0c1c34 100%);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    animation: pulse-whatsapp 2s infinite;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    color: white;
    font-size: 32px;
}

.whatsapp-float.visible {
    opacity: 1;
    pointer-events: all;
}
