/* ============================================
   WHY US INTERACTIVE - Línea de tiempo vertical
   ============================================ */

/* Sección principal */
.why-us-interactive {
    padding: 100px 0;
    background: linear-gradient(135deg, #1f2941 0%, #2f3e65 45%, #3f4c7c 100%);
    position: relative;
    overflow: hidden;
}

/* Patrón de fondo animado */
.why-us-interactive::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 55%),
        radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 45% 45%, rgba(255, 255, 255, 0.05) 0%, transparent 58%);
    animation: floatPattern 22s ease-in-out infinite;
}

@keyframes floatPattern {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    35% { transform: translate(-25px, -18px) rotate(1deg); }
    70% { transform: translate(22px, -12px) rotate(-1deg); }
}

/* Header de la sección */
.why-us-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.why-us-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
    animation: fadeInDown 0.8s ease;
}

.title-line {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    margin-bottom: 10px;
}

.title-highlight {
    display: block;
    color: #fff;
    font-weight: 700;
    text-shadow: 2px 2px 18px rgba(0, 0, 0, 0.25);
    position: relative;
}

.title-highlight::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #ffd700, #fff, #ffd700);
    border-radius: 2px;
    animation: shimmer 2.4s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.8; transform: translateX(-50%) scaleX(1); }
    50% { opacity: 1; transform: translateX(-50%) scaleX(1.18); }
}

.why-us-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.2rem;
    margin-top: 20px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* Línea de tiempo vertical */
.trust-timeline {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 20px 20px 90px;
    z-index: 2;
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 48px;
    width: 4px;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, #ffd700, #fff);
    box-shadow: 0 0 22px rgba(255, 215, 0, 0.45);
    border-radius: 2px;
    transition: height 0.4s ease;
}

.timeline-step {
    position: relative;
    display: flex;
    gap: 32px;
    margin-bottom: 44px;
    padding: 28px 32px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.6s ease, background 0.6s ease, box-shadow 0.6s ease;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.timeline-step.is-revealed {
    opacity: 1;
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 215, 0, 0.55);
}

.timeline-step.is-active {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 215, 0, 0.75);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.22);
}

.timeline-step.is-active .step-marker {
    transform: translateY(-6px);
    box-shadow: 0 20px 46px rgba(255, 215, 0, 0.45);
}

.step-marker {
    position: relative;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700, #f6b63f);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #1b2545;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.03em;
    box-shadow: 0 18px 38px rgba(255, 215, 0, 0.35);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.step-marker::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.45);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.timeline-step.is-revealed .step-marker::before {
    opacity: 1;
}

.step-marker::after {
    content: '';
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.6));
}

.step-number {
    font-family: 'Montserrat', sans-serif;
}

.step-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.step-title {
    margin: 0;
    font-size: clamp(1.45rem, 3vw, 1.9rem);
    font-weight: 700;
    color: #ffffff;
}

.step-description {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
}

.step-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.feature-tag {
    background: rgba(255, 255, 255, 0.16);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(4px);
    color: #ffffff;
    letter-spacing: 0.02em;
    transition: background 0.4s ease, border-color 0.4s ease;
}

.timeline-step.is-revealed .feature-tag {
    background: rgba(255, 215, 0, 0.22);
    border-color: rgba(255, 215, 0, 0.5);
    color: #fffdf4;
}

/* Indicador de progreso */
.trust-progress {
    margin-top: 70px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.progress-bar {
    width: 320px;
    height: 8px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    margin: 0 auto 20px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #fff7c2);
    border-radius: 4px;
    width: 0;
    transition: width 0.5s ease;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.55);
}

.progress-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.cards-revealed {
    color: #ffd700;
    font-weight: 700;
    font-size: 1.2rem;
    display: inline-block;
}

.cards-revealed.pop {
    animation: popScale 0.3s ease;
}

@keyframes popScale {
    0% { transform: scale(1); }
    50% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

/* Animaciones principales */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsivo */
@media (max-width: 992px) {
    .trust-timeline {
        padding-left: 72px;
    }

    .timeline-line {
        left: 38px;
    }

    .timeline-step {
        gap: 24px;
        padding: 26px 28px;
    }

    .step-marker {
        width: 60px;
        height: 60px;
    }

    .step-marker::after {
        left: -26px;
        width: 20px;
    }

    .progress-bar {
        width: 280px;
    }
}

@media (max-width: 768px) {
    .why-us-interactive {
        padding: 80px 0;
    }

    .trust-timeline {
        padding: 10px 10px 10px 60px;
    }

    .timeline-line {
        left: 28px;
    }

    .timeline-step {
        padding: 24px 24px 24px 22px;
        gap: 18px;
    }

    .step-marker {
        width: 54px;
        height: 54px;
        font-size: 1.05rem;
    }

    .step-marker::after {
        left: -22px;
        width: 18px;
    }

    .step-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 580px) {
    .trust-timeline {
        padding: 0 8px 0 40px;
    }

    .timeline-line {
        left: 18px;
    }

    .timeline-step {
        flex-direction: column;
        gap: 12px;
        padding: 22px 20px;
    }

    .step-marker {
        margin-bottom: 6px;
    }

    .step-marker::after {
        display: none;
    }

    .progress-bar {
        width: 240px;
    }
}
