/* JUCUM Movilizacion — Custom Styles
   Dramatic, high-impact humanitarian landing page
   ================================================================= */

/* ---- Hero Background ---- */
.hero-bg {
    background: linear-gradient(135deg, rgba(0, 45, 98, 0.8) 0%, rgba(17, 24, 39, 0.9) 100%),
                url('../img/hero.webp') center/cover no-repeat;
    background-attachment: scroll;
}

/* Ken Burns slow zoom effect on hero */
.hero-ken-burns {
    background: url('../img/hero.webp') center/cover no-repeat;
    animation: ken-burns 25s ease infinite alternate;
}

@keyframes ken-burns {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-bg-fallback {
    background: linear-gradient(135deg, #002D62 0%, #111827 100%);
}

/* ---- Hero entrance animations ---- */
.hero-fade-down {
    opacity: 0;
    transform: translateY(-30px);
    animation: hero-enter-down 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-fade-up {
    opacity: 0;
    transform: translateY(40px);
    animation: hero-enter-up 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes hero-enter-down {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-enter-up {
    to { opacity: 1; transform: translateY(0); }
}

.hero-delay-1 { animation-delay: 0.2s; }
.hero-delay-2 { animation-delay: 0.4s; }
.hero-delay-3 { animation-delay: 0.6s; }

/* ---- Gradient text animation ---- */
@keyframes gradient-shift {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

/* ---- Ticker scrolling marquee ---- */
.ticker-scroll {
    animation: ticker-scroll 30s linear infinite;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---- CTA Legendario Button ---- */
.cta-legendario {
    background: linear-gradient(90deg, #EA580C 0%, #D97706 100%);
    transition: all 0.3s ease;
}

.cta-legendario:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(234, 88, 12, 0.5);
}

/* ---- Glass Card ---- */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ---- Progress Bar ---- */
.progress-bar-fill {
    transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(90deg, #22C55E 0%, #16A34A 40%, #EA580C 100%);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

/* ---- Diagonal Clip ---- */
.clip-diagonal {
    clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
}

/* ---- Toast Notification ---- */
#toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #002D62;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s, visibility 0.3s;
    font-weight: bold;
    border-left: 5px solid #EA580C;
}

#toast.show {
    visibility: visible;
    bottom: 50px;
    opacity: 1;
}

/* ---- Sticky Mobile CTA ---- */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.sticky-cta.visible {
    transform: translateY(0);
}

/* ---- Fade-in animations (replaces AOS) ---- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Counter number styling ---- */
.counter-number {
    font-variant-numeric: tabular-nums;
}

/* ---- Pulse animation for urgency ---- */
@keyframes pulse-fast {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.animate-pulse-fast {
    animation: pulse-fast 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ---- Progress bar shimmer effect ---- */
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ---- Countdown digits ---- */
.countdown-digit {
    min-width: 3.5rem;
}

@media (min-width: 640px) {
    .countdown-digit {
        min-width: 5rem;
    }
}

/* ---- Hide sticky CTA on desktop ---- */
@media (min-width: 768px) {
    .sticky-cta {
        display: none !important;
    }
}

/* ---- Text selection ---- */
::selection {
    background: #EA580C;
    color: white;
}
