.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}


.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }


.animate-fade-down {
    opacity: 0;
    transform: translateY(-30px);
    animation: fadeDown 0.8s ease forwards;
}

.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s !important; }
.delay-2 { animation-delay: 0.4s !important; }
.delay-3 { animation-delay: 0.6s !important; }
.delay-4 { animation-delay: 0.8s !important; }

@keyframes fadeDown {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}


.vehicle-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-md);
    background: radial-gradient(
        800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(227, 25, 55, 0.06),
        transparent 40%
    );
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.vehicle-card:hover::before {
    opacity: 1;
}


.vehicle-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.1),
        transparent
    );
    transition: left 0.6s ease;
}

.vehicle-card:hover .vehicle-card-image::after {
    left: 100%;
}


.btn-primary,
.btn-search,
.btn-whatsapp,
.btn-schedule {
    position: relative;
    overflow: hidden;
}

.btn-primary::after,
.btn-search::after,
.btn-whatsapp::after,
.btn-schedule::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:active::after,
.btn-search:active::after,
.btn-whatsapp:active::after,
.btn-schedule:active::after {
    width: 300px;
    height: 300px;
}


.step-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-card:hover {
    transform: translateY(-5px);
}


.payment-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, transparent, rgba(227,25,55,0.2), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.payment-card:hover::before {
    opacity: 1;
}


.branch-card:hover .branch-map iframe {
    filter: grayscale(50%) invert(90%) contrast(90%);
}


.footer-social a:hover {
    animation: socialBounce 0.6s ease;
}

@keyframes socialBounce {
    0% { transform: translateY(0); }
    30% { transform: translateY(-8px); }
    50% { transform: translateY(-4px); }
    70% { transform: translateY(-6px); }
    100% { transform: translateY(-3px); }
}


.gallery-thumb {
    transition: all 0.3s ease;
}

.gallery-thumb:hover {
    transform: scale(1.05);
}


.contact-card:hover .contact-card-icon {
    animation: iconPulse 0.6s ease;
}

@keyframes iconPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}


@keyframes gradientShimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero-content h1 .text-gradient {
    background-size: 200% auto;
    animation: gradientShimmer 3s linear infinite;
}




html.pt-exit body {
    transition: transform 0.35s cubic-bezier(0.4, 0, 1, 1),
                opacity 0.35s cubic-bezier(0.4, 0, 1, 1);
    transform: translateX(var(--pt-x, -100px));
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
}


html.pt-enter body {
    transform: translateX(var(--pt-x, 100px));
    opacity: 0;
}

html.pt-enter-active body {
    transition: transform 0.5s cubic-bezier(0, 0, 0.2, 1),
                opacity 0.5s cubic-bezier(0, 0, 0.2, 1);
    transform: translateX(0) !important;
    opacity: 1 !important;
}


.filter-cat-btn {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-cat-btn:active {
    transform: scale(0.95);
}


.counting {
    display: inline-block;
}


.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.03) 25%,
        rgba(255,255,255,0.06) 50%,
        rgba(255,255,255,0.03) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}


.modal {
    animation: modalEnter 0.3s ease forwards;
}

@keyframes modalEnter {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


.parallax-slow {
    will-change: transform;
}


.glow-follow {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(227,25,55,0.06), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: left 0.3s ease, top 0.3s ease;
}
