.contenedor-slide-ux {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: auto;
    padding: 1%;
    /* margin-right: 4%; */
    background: #fff;
    width: 100%;
    margin: 3% 0;
}

.contenedor-botones {
    display: flex;
    justify-content: center;
    /* flex-direction: column; */
    margin-bottom: 15px;
    gap: 8px;
    /* width: 20%; */
    margin: auto;
    margin-bottom: 1%;
    /* height: 100vh; */
    align-items: flex-start;
    width: 100%;
}

#texto-posicion {
    text-align: left;
    /* Centra el texto */
    margin: 0;
    /* Centra horizontalmente el bloque */
    width: 87%;
    /* Ajusta el ancho del texto */
    line-height: 1.5;
    /* Espaciado entre líneas */
    font-size: 14px;
    /* Tamaño del texto */
    color: #333;
    /* Color del texto */
    display: block;
    overflow-wrap: break-word;
    /* Asegura que el texto se divida en líneas */
    border-top: 1px solid #ddd;
    /* Opcional: línea superior para separar visualmente */
}


.contenedor-imagenes {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    width: 92%;
}

.vehiculo {
    width: 100%;
    max-width: 300px;
    text-align: center;
    position: relative;
}

.uxTituloAutomovil {
    background-color: rgb(0 0 0 / 0.7);
    color: #fff;
    padding: 5% 0;
    font-weight: 100;
    font-size: 22px;
    letter-spacing: 2px;
    position: absolute;
    top: 7%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    pointer-events: none;
    user-select: none;
    text-transform: uppercase;
}

.vehiculo img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    pointer-events: none;
    user-select: none;
}

.ver-mas {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    background: #000;
    color: #fff;
    padding: 22px 11px;
    border-radius: 5px;
    border: none;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    margin-top: 5%;
    width: 88%;
    height: 7%;
}

/* Texto inicial en el fondo negro */
.ver-mas::before {
    content: "CONOCE MÁS";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    color: #fff;
    text-align: center;
    z-index: 1;
    transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

/* Texto que aparece en el hover */
.ver-mas::after {
    content: "CONOCE MÁS";
    position: absolute;
    top: -100%;
    left: 0;
    right: 0;
    color: #fff;
    text-align: center;
    transform: translateY(0);
    opacity: 0;
    z-index: 1;
    transition: top 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

/* Estilo en hover */
.ver-mas:hover {
    background-color: #910a2d;
}

.ver-mas:hover::before {
    transform: translateY(100%);
    opacity: 0;
}

.ver-mas:hover::after {
    top: 50%;
    opacity: 1;
    transform: translateY(-50%);
}

.categoria {
    display: none;
}

.categoria.activa {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    gap: 15px;
}

.precio {
    letter-spacing: 2px;
    font-size: 15px;
    font-weight: 100;
    color: #000 !important;
}

.boton-categoria {
    background-color: transparent;
    color: #000;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.boton-categoria:hover {
    /* width: 20%; */
    background: #000;
    color: #fff;
    font-weight: 700;
    border-radius: 4px;
    text-align: left;
}

.boton-categoria.activo {
    /* width: 20%; */
    background: #000;
    color: #fff;
    border: none;
    font-weight: 700;
    border-radius: 4px;
    text-align: left;
}

.flecha {
    position: absolute;
    top: 34%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    font-size: 24px;
    user-select: none;
}

.flecha.izquierda {
    left: 0;
}

.flecha.derecha {
    right: 0;
}

/* Ocultar flechas en pantallas grandes */
@media (max-width: 1200px) {
    .uxTituloAutomovil {
        font-size: 16px;
    }
    .contenedor-imagenes {
        width: 100%;
    }
}

@media (max-width: 1050px) {
    .uxTituloAutomovil {
        font-size: 13px;
    }
}

/* Ocultar flechas en pantallas grandes */
@media (min-width: 911px) {
    .flecha {
        display: none;
    }
}

/* Estilos responsivos para pantallas pequeñas */
@media (max-width: 910px) {
    .contenedor-botones {
        flex-direction: column;
        /* Cambia a columna para apilar verticalmente */
        justify-content: center;
        align-items: left;
        gap: 0px;
        width: 100%;
        margin-bottom: 15px;
        height: auto;
        margin: 5% 0;

    }

    .boton-categoria {
        font-size: 18px;
        padding: 8px 15px;
    }

    .categoria.activa .vehiculo {
        width: 98vw;
        /* Ocupa todo el ancho de la ventana */
        max-width: 100vw;
        flex: 0 0 auto;
        overflow: hidden;
        display: inline-block;
    }

    .categoria.activa {
        gap: 0px;
        text-align: left;
    }

    .contenedor-slide-ux {
        flex-direction: column;
    }

    .contenedor-imagenes {
        width: 105%;
        gap: 0px;
    }

    #texto-posicion {
        text-align: left;
        margin: 0;
        width: 100%;
        padding: 3%;
        line-height: 1.5;
    }

    .vehiculo img {
        width: 96%;
    }

    .uxTituloAutomovil {
        width: 96%;
        font-size: 22px;
        top: 7%;
    }

}

@media (max-width: 480px) {
    .boton-categoria {
        font-size: 16px;
        padding: 6px 10px;
    }

    .ver-mas {
        padding: 24px 15px;
    }
}