@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

#wrapper_tracking {
    margin: 0;
    font-size: 1rem !important;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

#wrapper_tracking .logo {
    font-size: 2.5rem;
    font-weight: bold;
    color: #31087B;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    text-align: center
}

#wrapper_tracking .logo span {
    margin: 0 auto
}

.form {
    width: 100%;
    display: flex;
    flex-direction: column
}

.form .input[type="text"] {
    width: 100%;
    flex: 1;
    box-sizing: border-box;
    background: white;
    border: none;
    padding: 15px 20px;
    border-radius: 7px;
    margin-top: 15px;
    box-shadow: #2c1f28 0px 3px 10px -5px;
    border-inline: 2px solid transparent
}

.form .login-button {
    display: block;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    background: linear-gradient(75deg, #31087B 0%, #31087B 100%);
    color: white;
    padding: 15px;
    margin: 20px auto;
    border-radius: 5px;
    box-shadow: rgba(133, 189, 215, 0.8784313725) 0px 20px 10px -15px;
    border: none;
    transition: all 0.2s ease-in-out
}

#wrapper_tracking {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
}

#tracking-results,
#tracking-error {
    display: none;
    padding: 15px 20px;
    border-radius: 6px;
    font-weight: 500;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#tracking-results:not(.err) {
    background-color: #fff9db;
    color: #5b4400;
    border: 1px solid #ffeeba;
    border-left: 5px solid #ffc107;
    line-height: 0.75rem;
}

#tracking-error,
#tracking-results.err {
    background-color: #ffd7d2;
    color: #5c0000;
    border: 1px solid #ff6d6d;
    border-left: 5px solid #f13232;
}

#tracking-results.err a {
    align-items: center;
    text-decoration: none;
    appearance: none;
    background-color: #8f3c3c;
    border: 1px solid #dbdbdb;
    border-radius: .375em;
    box-shadow: none;
    box-sizing: border-box;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-size: 1rem;
    height: 2.5em;
    justify-content: center;
    line-height: 1.5;
    padding: calc(.5em - 1px) 1em;
    position: relative;
    text-align: center;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: top;
    white-space: nowrap;
}

#tracking-results.err a:active {
    border-color: #ffffff;
    outline: 0;
}

#tracking-results.err a:hover {
    color: #9b1c1c;
    background-color: #ffffff;
}

#tracking-results .icon {
    margin-right: 8px;
    font-size: 1.2em;
}

.progress-container {
    position: relative;
    padding-top: 20px;
    display: none;

}

.progress-bar,
.progress {
    position: absolute;
    top: 38px;
    left: 0;
    height: 4px;
    z-index: 0;
}

.progress-bar {
    width: 100%;
    background-color: #e0e0e0;
}

.progress {
    background-color: #e91e63;
    transition: width 0.4s ease;
    z-index: 1;
    overflow: hidden
}

.progress::after {
    content: '';
    width: 40%;
    height: 100%;
    background: #ff6b9c;
    position: absolute;
    top: 0;
    left: 0;
    box-sizing: border-box;
    animation: animloader1 2s linear infinite
}

.steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.tracking-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 5px;
}

.step-circle {
    width: 36px;
    height: 36px;
    background-color: #e91e63;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 4px solid #fff;
    box-shadow: 0 0 0 2px #fff;
    position: relative;

}

.pulsa {
    position: relative;
    border: 4px solid #d31755;

}

.pulsa::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #e91e63;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.6;
    animation: pulse-ring 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

.tracking-item.inactive .step-circle {
    background-color: #e0e0e0;
    color: #757575;
}

.loader {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: block;
    margin: 15px auto;
    position: relative;
    background: #e91e63;
    box-shadow: -24px 0 #cc1854, 24px 0 #a01241;
    box-sizing: border-box;
    animation: shadowPulse 2s linear infinite
}

#tracking-loading {
    display: none
}

.step-label {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.3;
    color: #333;
}

.step-label span {
    display: block;
}

.step-label .fecha {
    font-size: 11px;
}

.step-label .fecha,
#tracking-results .fecha {
    margin-top: 4px;
    color: #3f3f3f;
    background: #f0f0f0;
    padding: 2px 10px;
    border-radius: 4px;
    display: inline-block;
}

#tracking-results .fecha {
    font-size: 0.90rem;
}

@media (max-width: 768px) {
    .steps {
        flex-direction: column;
        padding-left: 10px;
    }

    #tracking-results:not(.err) {
        line-height: 1.5rem;
    }

    .tracking-item {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
        margin-bottom: 25px;
        flex: auto;
    }

    .step {
        margin-right: 15px;
    }

    .step-label {
        margin-top: 0;
        padding-top: 8px;
    }

    .progress-bar,
    .progress {
        top: 40px;
        left: 28px;
        width: 4px !important;
        height: 100%;
    }

    .progress-bar {
        height: calc(100% - 50px);
        margin-left: 4px;
    }

    .progress {
        height: 60%;
        margin-left: 4px;
        width: 4px !important;
    }

    .progress::after {
        animation: animloaderVertical 2s linear infinite !important
    }
}

@keyframes shadowPulse {
    33% {
        background: #FFF;
        box-shadow: -24px 0 #FA2FB5, 24px 0 #FFF
    }

    66% {
        background: #FA2FB5;
        box-shadow: -24px 0 #FFF, 24px 0 #FFF
    }

    100% {
        background: #FFF;
        box-shadow: -24px 0 #FFF, 24px 0 #FA2FB5
    }
}

@keyframes animloader1 {
    0% {
        left: 0;
        transform: translateX(-100%)
    }

    100% {
        left: 100%;
        transform: translateX(0%)
    }
}



@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        opacity: 0.6;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes animloaderVertical {
    0% {
        top: 0;
        transform: translateY(-100%);
    }

    100% {
        top: 100%;
        transform: translateY(0%);
    }
}