/* Custom Animations for Pioneros México Landing Page */

/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Delay modifiers */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Micro-Animations */
@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(10px, -20px) scale(1.05); }
    66% { transform: translate(-15px, 15px) scale(0.95); }
    100% { transform: translate(0, 0) scale(1); }
}

.animate-float {
    animation: float 20s ease-in-out infinite;
}

@keyframes slow-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-slow-rotate {
    animation: slow-rotate 15s linear infinite;
}

/* Magnetic Hover for Buttons */
.magnetic-btn {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.magnetic-btn:hover {
    transform: scale(1.05);
}

/* Solid White Header - always visible */
.header-glass {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 89, 154, 0.1);
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

/* Parallax Background Movement (CSS-only approach) */
.parallax-topo {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* =============== Sendero Timeline =============== */
.sendero-timeline {
    position: relative;
    padding: 1rem 0;
}

/* Static background line */
.sendero-line-track {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(0, 89, 154, 0.1);
    border-radius: 9999px;
    left: 19px;
    z-index: 0;
}

/* Animated progress fill */
.sendero-line-progress {
    position: absolute;
    top: 0;
    width: 3px;
    height: 0;
    border-radius: 9999px;
    left: 19px;
    background: #ff8b2c;
    transition: height 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

@media (min-width: 768px) {
    .sendero-line-track,
    .sendero-line-progress {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Marker animation */
.sendero-marker {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.5s ease,
                border-color 0.5s ease;
    z-index: 10;
    position: relative;
}

.sendero-marker.reached {
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(0, 89, 154, 0.1),
                0 8px 24px rgba(0, 89, 154, 0.15);
    border-color: #00599a !important;
}

/* Card reveal */
.sendero-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sendero-card.visible {
    opacity: 1;
    transform: translate(0, 0) !important;
}

@media (min-width: 768px) {
    .sendero-card.dir-left {
        transform: translateX(-50px);
    }
    .sendero-card.dir-right {
        transform: translateX(50px);
    }
}
