.Reserva-Hora {
    position: relative;
    width: 100%;
    height: auto;
    margin: 0 auto;    
}

/* Asegurar que la sección sea el contenedor de referencia */
.Reserva-Hora {
    position: relative;
    width: 100%; /* Ocupa el ancho total disponible */
}

/* Contenedor del efecto: Ancho total y centrado vertical/posicionado arriba */
.elem-efect {
    display: flex;
    position: absolute;
    width: 100%;
    height: 40px; /* Espacio vertical para alojar el elemento de 15px y la línea */
    display: flex;
    align-items: center;
    overflow: hidden;
    top: -40px;     
}

/* Línea horizontal sobre la cual se desplaza el elemento */
.elem-efect::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, #1A76D1, #2563eb, #10b981, #f59e0b, #1A76D1);
    background-size: 200% 100%;
    animation: animarLinea 4s ease-in-out infinite alternate;
}

/* Elemento de 15px x 15px que se mueve de izquierda a derecha y viceversa */
.elem-efect::after {
    content: '';
    position: absolute;
    top: calc(50% - 10px);
    left: 0;
    width: 20px;
    height: 20px;   
    /*animation: moverYTransformar 5s ease-in-out infinite alternate;*/    
    animation: moverYTransformar 18s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
    border: 2px solid var(--color-base-Blanco);
}

/* Animación de cambio de color continuo de la línea */
@keyframes animarLinea {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* Animación de desplazamiento (0 a 100%), cambio de color y de forma */
@keyframes moverYTransformar {
    /* Paso 0: 0% */
    0% {
        left: calc(0% - (0px * 0.20)); /* left: 0px; */
        background-color: #1A76D1; /* Azul base */
        border-radius: 50%; /* Círculo */
        clip-path: none;
        transform: rotate(0deg);
    }
    
    /* Paso 1: 10% */
    10% {
        left: calc(10% - (20px * 0.10));
        background-color: #2563eb;
        border-radius: 0%; /* Cuadrado */
        clip-path: none;
        transform: rotate(0deg);
    }

    /* Paso 2: 20% (Triángulo) */
    20% {
        left: calc(20% - (20px * 0.20));
        background-color: #06b6d4;
        border-radius: 0%;
        clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
        transform: rotate(0deg);
    }

    /* Paso 3: 30% (Rombo) */
    30% {
        left: calc(30% - (20px * 0.30));
        background-color: #10b981; /* Verde */
        border-radius: 0%; 
        clip-path: none;
        transform: rotate(45deg);
    }

    /* Paso 4: 40% (Anillo) */
    40% {
        left: calc(40% - (20px * 0.40));
        background-color: #FF0000;
        border-radius: 0%;
        clip-path: polygon(evenodd, 0% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 0%, 25% 25%, 25% 75%, 75% 75%, 75% 25%, 25% 25%);
        transform: rotate(90deg);
    }

    /* Paso 5: 50% (Estrella) */
    50% {
        left: calc(50% - (20px * 0.50));
        background-color: #000000;
        border-radius: 0%;
        clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
        transform: rotate(290deg);
    }

    /* Paso 6: 60% (Ovalo) */
    60% {
        left: calc(60% - (20px * 0.60));        
        background-color: #8b5cf6;
        border-radius: 50%;
        clip-path: none;
        transform: scaleX(1.5) scaleY(0.75) rotate(0deg);
    }

    /* Paso 7: 70% (Cross) */
    70% {
        left: calc(70% - (20px * 0.70));
        background-color: #ec4899; /* Rosa Intenso */
        border-radius: 0%;
        /* Polígono de 12 puntos para definir la cruz */
        clip-path: polygon(
            35% 0%, 65% 0%, 
            65% 35%, 100% 35%, 
            100% 65%, 65% 65%, 
            65% 100%, 35% 100%, 
            35% 65%, 0% 65%, 
            0% 35%, 35% 35%
        );
        transform: scale(1) rotate(0deg);
    }

    /* Paso 8: 80% (Hexágono) */
    80% {
        left: calc(80% - (20px * 0.80));
        background-color: #f97316;
        border-radius: 0%;
        clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
        transform: rotate(180deg);
    }

    /* Paso 9: 90% (Hoja / Gota) */
    90% {
        left: calc(90% - (20px * 0.90));
        background-color: #f59e0b;
        border-radius: 50% 0% 50% 0%;
        clip-path: none;
        transform: rotate(90deg);
    }

    /* Paso 10: 100% (Círculo final) */
    100% {
        left: calc(100% - 20px);
        background-color: #e11d48;
        border-radius: 50%;
        clip-path: none;
        transform: rotate(360deg);
    }
}


.Reserva-Hora::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 115%;
    background-image: url('../img/servicios.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: -1;
    object-fit: cover;
    top: -20px;
}

.Reserva-Hora #regForm {
    background-color: var(--color-base-Blanco);
    margin: 20px auto;
    /*font-family: Raleway;*/
    padding: 0px 20px 20px 20px;
    border-radius: 7px;
    box-shadow: 0px 0px 10px 1px var(--color-base-Negro);
    display: block;
    position: relative;
    overflow: hidden;    
}

.Reserva-Hora .titulo-Reserva-Hora {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0px 0px 0px 0px;
    padding: 12px;
    background: var(--color-base-Azul);
    border-radius: 0px 0px 7px 7px;
    border-bottom: 0px solid var(--color-base-Azul);
}

.Reserva-Hora .titulo-Reserva-Hora i,
.Reserva-Hora .titulo-Reserva-Hora p {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    margin: 0;
    margin-right: 10px;
    padding: 0;
    font-size: 16px;
    color: var(--color-base-Blanco);
}



@media only screen and (min-width: 0px) and (max-width: 475px) {
    .Reserva-Hora {
        height: auto;
    }

    .Reserva-Hora::before {
        top: -70px;
        height: 120%;
    }

    .Reserva-Hora #regForm {
        width: 95%;
        /*background: rgb(179, 205, 254);*/
    }

    .Reserva-Hora .form-wrapper .form-container .tab-content {
        margin-top: 0;
    }

    .Reserva-Hora .form-wrapper .form-container .tab-content .form-group {
        flex-direction: column;
    }

    .Reserva-Hora .form-wrapper .form-container .tab-content .form-group .form-intro {
        flex-direction: column;
        
    }

    .Reserva-Hora .form-wrapper .form-container .tab-content .form-group .form-intro img {
        justify-self: center;
    }

    .Reserva-Hora .form-wrapper .form-container .tab-content .form-group .form-intro .div-RH {
        width: 100%;
        height: 1.5px;
        margin: 10px 20px;
    }

    
}

@media only screen and (min-width: 475px) and (max-width: 576px) {

    .Reserva-Hora #regForm {
        width: 90%;
        /*background: rgb(58, 58, 58);*/
    }

    .Reserva-Hora .formulario-reserva-hora .tab .Intro-Reserva-Hora {
        flex-direction: row;
    }

    .Reserva-Hora .formulario-reserva-hora .tab .Intro-Reserva-Hora img {
        justify-self: center;
    }

    .Reserva-Hora .formulario-reserva-hora .tab .Intro-Reserva-Hora .div-RH {
        width: 2px;
        height: 160px;
        margin: 5px 20px;
    }

}

@media only screen and (min-width: 576px) and (max-width: 767px) {

    .Reserva-Hora #regForm {
        width: 90%;
        /*background: goldenrod;*/
    }

    .Reserva-Hora .formulario-reserva-hora .tab .Intro-Reserva-Hora {
        flex-direction: row;
    }

    .Reserva-Hora .formulario-reserva-hora .tab .Intro-Reserva-Hora img {
        justify-self: center;
    }

    .Reserva-Hora .formulario-reserva-hora .tab .Intro-Reserva-Hora .div-RH {
        width: 2px;
        height: 120px;
        margin: 5px 20px;
    }
}

@media only screen and (min-width: 767px) and (max-width: 991px) {
    .Reserva-Hora {
        padding-top: 60px;
    }

    .Reserva-Hora #regForm {
        width: 85%;
        /*background: hotpink;*/
    }

    .Reserva-Hora .formulario-reserva-hora .tab .Intro-Reserva-Hora {
        flex-direction: row;
    }

    .Reserva-Hora .formulario-reserva-hora .tab .Intro-Reserva-Hora img {
        justify-self: center;
    }

    .Reserva-Hora .formulario-reserva-hora .tab .Intro-Reserva-Hora .div-RH {
        width: 2px;
        height: 120px;
        margin: 5px 20px;
    }
}

@media only screen and (min-width: 992px) and (max-width: 1200px) {
    .Reserva-Hora #regForm {
        width: 79%;
        /*background: lawngreen;*/
    }

    .Reserva-Hora .formulario-reserva-hora .tab .Intro-Reserva-Hora {
        flex-direction: row;
    }

    .Reserva-Hora .formulario-reserva-hora .tab .Intro-Reserva-Hora img {
        justify-self: center;
    }

    .Reserva-Hora .formulario-reserva-hora .tab .Intro-Reserva-Hora .div-RH {
        width: 2px;
        height: 120px;
        margin: 5px 20px;
    }
}

@media only screen and (min-width: 1200px) and (max-width: 1920px) {
    .Reserva-Hora #regForm {
        width: 75%;
    }

    .Reserva-Hora .form-wrapper .form-container .tab-content .form-group .form-intro {
        display: flex;
        flex-direction: row;
    }

    .Reserva-Hora .form-wrapper .form-container .tab-content .form-group .form-intro img {
        justify-self: left;
    }

    .Reserva-Hora .form-wrapper .form-container .tab-content .form-group .form-intro .div-RH {
        width: 1.5px;
        height: 90px;
        margin: 5px 20px;
    }

}