/* CONTENEDOR GENERAL (tarjeta con fondo) */
.historico-timeline-card {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px;
    border-radius: 40px;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    background-image: url('http://sitedev.imfluid.cl/wp-content/uploads/2025/12/06747504786bc6f3385e2e4b4959d072a471fe39-1-1-scaled.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ===== DESKTOP TIMELINE ===== */
.timeline-wrapper {
    position: relative;
    width: 100%;
}

.myTimeline {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    top: 205px;
    left: 0;
    width: 300%;
    height: 2px;
    background-color: #fff;
    z-index: 1;
}

.timeline-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #fff;
    z-index: 5;
}

.tm-content {
    height: 210px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0 15px;
}

.tm-icon {
    width: 45px;
    margin: 0 auto 20px;
    display: block;
}

.tm-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    min-height: 48px;
    display: flex;
    align-items: flex-end;
    text-align: center;
}

.tm-desc {
    font-size: 11px;
    opacity: 0.8;
    line-height: 1.4;
    min-height: 40px;
}

.tm-axis-area {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    z-index: 10;
}

.tm-dot {
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 15;
}

.tm-year {
    border: 1px solid #fff;
    border-radius: 20px;
    padding: 4px 20px;
    font-size: 12px;
    margin-top: 10px;
    color: #fff;
}

/* ===== FLECHAS ALINEADAS A LA LÍNEA ===== */
.tm-arrow {
    color: #fff !important;
    top: 265px !important;
    z-index: 20;
    margin-top: 0 !important;
    height: 12px !important;
    display: flex;
    align-items: center;
    transform: translateY(-50%);
}

.tm-arrow::after {
    content: '' !important;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.tm-prev::after {
    border-right: 9px solid #fff;
}

.tm-next::after {
    border-left: 9px solid #fff;
}

.tm-prev {
    left: -32px !important;
}

.tm-next {
    right: -32px !important;
}

.tm-bullets {
    position: relative !important;
    margin-top: 30px !important;
}

.swiper-pagination-bullet {
    background: #fff !important;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    width: 25px !important;
    border-radius: 10px !important;
}

/* ===== MOBILE / TABLET (VERSIÓN VERTICAL) ===== */
@media (min-width: 1024px) {
    .v-stk-timeline-wrapper {
        display: none !important;
    }
}

@media (max-width: 1023px) {
    .historico-timeline-card {
        width: 90% !important;
        margin: 0 auto !important;
    }

    .timeline-wrapper {
        display: none;
    }

    .v-stk-timeline-wrapper {
        width: 100%;
        padding: 40px 0;
    }

    .v-stk-main-column {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .v-stk-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        margin-bottom: 45px;
        color: #fff;
    }

    .v-stk-txt-box {
        height: auto;
        margin-bottom: 15px;
        padding: 0 15px;
    }

    .v-stk-icon {
        width: 45px;
        margin: 0 auto 10px;
        display: block;
    }

    .v-stk-title {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 5px;
    }

    .v-stk-desc {
        font-size: 11px;
        opacity: 0.8;
        line-height: 1.4;
    }

    .v-stk-axis {
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        width: 100%;
    }

    .v-stk-dot {
        width: 16px;
        height: 16px;
        background-color: #fff;
        border-radius: 50%;
        z-index: 10;
    }

    .v-stk-axis::before {
        content: '';
        position: absolute;
        top: -15px;
        width: 2px;
        height: 15px;
        background: #fff;
    }

    .v-stk-item:first-child .v-stk-axis::before {
        display: none;
    }

    .v-stk-year {
        border: 1px solid #fff;
        border-radius: 20px;
        padding: 4px 20px;
        font-size: 12px;
        margin-top: 10px;
        color: #fff;
    }
}