@keyframes moverDerecha {
    0%, 100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(10px);
    }
}

.mc-move-right-return {
    animation: moverDerecha 2s ease-in-out infinite;
}


.levitando {
    display: inline-block;
    font-size: 64px;
    animation: flotar 3.5s ease-in-out infinite;
}

@keyframes flotar {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}



.levitando::before {
    content: '';
    position: absolute;
    width: 60%;
    height: 15px;
    background: rgba(0, 0, 0, 0.2);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    filter: blur(4px);
    animation: sombraFlotante 3.5s ease-in-out infinite;
}

@keyframes sombraFlotante {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.6;
        bottom: 0;
    }
    50% {
        transform: translateX(-50%) scale(0.8);
        opacity: 0.3;
        bottom: -15px;
    }
}



@keyframes item-expand-right {
    0% {
        width: 2rem;
    }

    6% {
        width: 2rem;
    }

    8% {
        width: 100%;
    }

    90% {
        width: 100%;
    }

    92% {
        width: 2rem;
    }

    100% {
        width: 2rem;
    }
}

@keyframes item-scale-max {
    0% {
        opacity: 0;
        scale: 0;
    }

    10% {
        opacity: 0;
        scale: 0;
    }

    12% {
        opacity: 1;
        scale: 1;
    }

    80% {
        opacity: 1;
        scale: 1;
    }

    82% {
        opacity: 0;
        scale: 0;
    }

    100% {
        opacity: 0;
        scale: 0;
    }
}

@keyframes animationRocket {
    0% {
        transform: translateX(-10rem) translateY(10rem);
    }

    15% {
        transform: translateX(0) translateY(0);
    }

    95% {
        transform: translateX(0) translateY(0);
    }

    100% {
        transform: translateX(10rem) translateY(-10rem);
    }
}

.animation-rocket-fly {
    animation: animationRocket 10s ease-in-out infinite;
}


@keyframes recorridoCometa {
    /*from { offset-distance: 0%; }*/
    /*to   { offset-distance: 100%; }*/

    0% { offset-distance: 0%; }
    10% { offset-distance: 0%; }
    80% { offset-distance: 100%; }
    100% { offset-distance: 100%; }
}

.cometa-volando {
    offset-path: path("M0,0   C100,200 200,-200 300,0     C400,200 500,-200 600,0");
    animation: recorridoCometa 10s linear infinite;
}





/* ===========================
   SEGUIMIENTO DE SERVICIO
   (la posición de las líneas la calcula el JS
   según la orientación: horizontal o vertical)
   =========================== */

.seguimiento-servicio {
    --circulo: 90px;

    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 35px 50px;
    background: #fff;
    border-radius: 35px;
    overflow: hidden;
}

.paso-servicio {
    position: relative;
    z-index: 2;
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
}

.linea-base,
.linea-progreso {
    position: absolute;
    top: calc(35px + var(--circulo) / 2 - 2.5px);
    left: 7%;
    height: 5px;
    border-radius: 20px;
}

.linea-base {
    width: 86%;
    background-image: radial-gradient(circle, #9eafb8 2px, transparent 3px);
    background-size: 14px 5px;
}

.linea-progreso {
    width: 0;
    background: #0db99b;
    transition: width 1500ms ease, height 1500ms ease;
}

.linea-progreso.sin-animacion {
    transition: none;
}

.circulo-estado {
    width: var(--circulo);
    height: var(--circulo);
    margin: auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #edf3f5;
    color: #557486;
    font-size: calc(var(--circulo) * .36);
    position: relative;
    flex-shrink: 0;
    transition: all .4s ease;
}

.check-estado {
    display: none;
    position: absolute;
    right: -4px;
    bottom: 0;
    width: calc(var(--circulo) * .34);
    height: calc(var(--circulo) * .34);
    min-width: 22px;
    min-height: 22px;
    border-radius: 50%;
    background: #00bd91;
    color: white;
    border: 3px solid white;
    align-items: center;
    justify-content: center;
    font-size: calc(var(--circulo) * .15);
}

/* PASOS YA SUPERADOS */

.paso-servicio.completado .circulo-estado {
    color: #078f7c;
    background: #ddfbf5;
}

.paso-servicio.completado .check-estado {
    display: flex;
}

/* PASO ACTUAL */

.paso-servicio.actual .circulo-estado {
    color: #087e70;
    background: #bcfff3;
    border: 2px solid #32d5bd;
    transform: scale(1.08);
    box-shadow:
        0 0 0 calc(var(--circulo) * .15) rgba(30, 210, 180, .09),
        0 0 0 calc(var(--circulo) * .3) rgba(30, 210, 180, .04);
}

.paso-servicio.actual .nombre-estado {
    color: #079b82;
}

/* PENDIENTES */

.paso-servicio.pendiente .circulo-estado {
    background: #edf3f5;
    color: #557486;
}

.nombre-estado {
    margin-top: 18px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    color: #102f4a;
    overflow-wrap: break-word;
}

.fecha-estado {
    margin-top: 16px;
}

.fecha-estado,
.hora-estado {
    font-size: 16px;
    color: #587588;
}

/* LAPTOP */

@media (max-width: 1199px) {
    .seguimiento-servicio {
        --circulo: 70px;
        padding: 30px 24px;
        border-radius: 28px;
    }

    .nombre-estado {
        margin-top: 16px;
        font-size: 15px;
    }

    .fecha-estado {
        margin-top: 10px;
    }

    .fecha-estado,
    .hora-estado {
        font-size: 14px;
    }
}

/* TABLET */

@media (max-width: 991px) {
    .seguimiento-servicio {
        --circulo: 54px;
        gap: 4px;
        padding: 26px 14px;
        border-radius: 24px;
    }

    .nombre-estado {
        margin-top: 14px;
        font-size: 13px;
    }

    .fecha-estado {
        margin-top: 8px;
    }

    .fecha-estado,
    .hora-estado {
        font-size: 12px;
    }
}

/* MÓVIL: línea de tiempo vertical */

@media (max-width: 767px) {
    .seguimiento-servicio {
        --circulo: 52px;
        flex-direction: column;
        gap: 0;
        padding: 24px 20px;
        border-radius: 22px;
    }

    .paso-servicio {
        display: grid;
        grid-template-columns: var(--circulo) auto 1fr;
        grid-template-areas:
            "circulo nombre nombre"
            "circulo fecha  hora";
        column-gap: 16px;
        align-items: center;
        padding: 10px 0;
        text-align: left;
    }

    .circulo-estado {
        grid-area: circulo;
        margin: 0;
    }

    .nombre-estado {
        grid-area: nombre;
        align-self: end;
        margin-top: 0;
        font-size: 15px;
    }

    .fecha-estado {
        grid-area: fecha;
        align-self: start;
        margin-top: 4px;
    }

    .hora-estado {
        grid-area: hora;
        align-self: start;
        margin-top: 4px;
    }

    .fecha-estado,
    .hora-estado {
        font-size: 13px;
    }

    .linea-base,
    .linea-progreso {
        top: 0;
        left: calc(20px + var(--circulo) / 2 - 2.5px);
        width: 5px;
        height: 0;
    }

    .linea-base {
        background-size: 5px 14px;
    }

    .paso-servicio.actual .circulo-estado {
        box-shadow:
            0 0 0 6px rgba(30, 210, 180, .09),
            0 0 0 12px rgba(30, 210, 180, .04);
    }
}

@media (max-width: 380px) {
    .seguimiento-servicio {
        --circulo: 44px;
        padding: 20px 16px;
    }

    .paso-servicio {
        column-gap: 12px;
    }

    .nombre-estado {
        font-size: 14px;
    }
}
