.slider-container {
    position: relative;
    width: 100%;
    max-width: 55vw; /* Ancho máximo relativo */
    margin: 10px auto;
    display: flex;
    flex-wrap: wrap; /* Evita que el contenido se envuelva en múltiples líneas */
    justify-content: center;
    align-items: center;
    align-content: center;
  
}

.slider-test {
    width: 100%;
    height: 10px;
    background: #ddd;
    position: relative;
    border-radius: 5px;
    margin-top: 1em;
}

.slider-track {
    height: 10px;
    background: #ef8627;
    position: absolute;
    border-radius: 5px;
    z-index: 1;
}

.marker {
    position: absolute;
    height: 2em;
    width: 2em;
    background: #0070b8;
    /*border: 2px solid blue;*/
    border-radius: 50%;
    box-shadow: 1px 1px 5px 0px #ccc;
    cursor: pointer;
    top: -5px;
    z-index: 2;
    transform: translateY(-20%);
}

.indicator-test {
    position: absolute;
    background: white;
    /*border: 1px solid blue; */
    font-family: 'Archivo Narrow', sans-serif;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 0.95em;
    font-weight: bold;
    color: #555;
    transform: translateY(-150%);
    white-space: nowrap;
    z-index: 3;
}

b#valueSlider-vel {
    font-family: 'Archivo Narrow', sans-serif;
    font-size: .95em;
    font-weight: bold;
    color: #555;
    width: 98%;
    text-align: center;
    padding-bottom: 4px;
}

b#valueSlider-tar {
    font-family: 'Archivo Narrow', sans-serif;
    font-size: .95em;
    font-weight: bold;
    color: #555;
    width: 98%;
    text-align: center;
    padding-bottom: 4px;
}


/* Ajustes para pantallas pequeñas */
@media (max-width: 768px) {
    .slider-container {
        max-width: 90vw; /* Aumenta el ancho máximo en pantallas más pequeñas */
        margin: 30px auto; /* Reduce el margen */
    }

    .marker {
        height: 1.5em;
        width: 1.5em;
        transform: translateY(0%);
    }

    .indicator-test {
        font-size: 1em; /* Reduce el tamaño del texto */
        padding: 2px 4px; /* Reduce el padding */
    }
}

/* Ajustes para dispositivos móviles muy pequeños */
@media (max-width: 480px) {
    .slider-container {
        width: 100%;
        max-width: 115vw; /* Ajusta el ancho máximo para pantallas pequeñas */
        margin: 20px auto; /* Reduce aún más el margen */
    }

    .slider-test {
        height: 8px; /* Reduce la altura del slider */
    }

    .marker {
        height: 2em;
        width: 2em;
        transform: translateY(0%);
    }

    .indicator-test {
        font-size: 1em; /* Reduce aún más el tamaño del texto */
        padding: 1px 2px; /* Reduce aún más el padding */
    }
}