.service-resultados {

}

/* Contenedor de la galería */
.service-resultados .gallery-controls {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin: 20px 0;
}

/* Estilo de los botones de navegación */
.service-resultados .nav-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0px;
    margin: 0;
    width: 30px;
    display: flex;
    align-items: center;
    position: relative;
    justify-content: center;
}

/* Simulación de la flecha izquierda (<) con un ángulo más abierto */
.service-resultados .prev-btn::before {
    content: '';
    position: absolute;
    border: solid var(--primary-color);
    border-width: 0 4px 4px 0; /* Grosor del borde ajustado */
    display: inline-block;
    padding: 0px; /* Aumenta el relleno para hacer las flechas más abiertas */
    transform: rotate(135deg); /* Ángulo más abierto (135 grados) */
    -webkit-transform: rotate(135deg);
    height: 20px; /* Tamaño más grande para que parezca más abierta */
    width: 20px;
}

.service-resultados .prev-btn::after {
    content: '';
    position: absolute;
    left: 100%;
    display: inline-block;
    padding: 0px;
    height: 100%;
    width: 5%;
    background: radial-gradient(circle at 0% 50%, var(--primary-color) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}


/* Simulación de la flecha derecha (>) con un ángulo más abierto */
.service-resultados .next-btn::before {
    content: '';
    position: absolute;
    border: solid var(--primary-color);
    border-width: 0 4px 4px 0;
    display: inline-block;
    padding: 0px;
    transform: rotate(-45deg); /* Ángulo más abierto (-45 grados) */
    -webkit-transform: rotate(-45deg);
    height: 20px;
    width: 20px;
}

.service-resultados .next-btn::after {
    content: '';
    position: absolute;
    right: 100%;
    display: inline-block;
    padding: 0px;
    height: 100%;
    width: 5%;
    background: radial-gradient(circle at 100% 50%, var(--primary-color) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}



/* Estilos para agrandar y rotar los botones en hover */
.service-resultados .nav-btn::before {
    transition: transform 0.3s ease; /* Añadir una transición suave */
}

/* Hover para agrandar los botones */
.service-resultados .nav-btn:hover::before {
    transform: scale(1.2) rotate(135deg);
}

.service-resultados .next-btn:hover::before {
    transform: scale(1.2) rotate(-45deg);
}

/* Galería */
.service-resultados .gallery {
    display: flex;
    justify-content: space-evenly;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    width: 100%;
    margin: auto;
}


.service-resultados .gallery * {
    height: 100%;
    max-width: 75vw;
    max-height: 70vh;
    margin: 5px;
    scroll-snap-align: center; /* Cada video se alinea al principio cuando se desliza */
    scrollbar-width: thin;
}

/* Opcional: Estilos adicionales para ocultar la barra de desplazamiento en navegadores que lo permiten */
.service-resultados .gallery::-webkit-scrollbar {
}

/* Para navegadores WebKit (Chrome, Safari) */
.service-resultados .gallery::-webkit-scrollbar {
    width: 8px; /* Ancho del scrollbar */
    height: 8px; /* Alto del scrollbar horizontal */
}

/* Estilo del track del scrollbar */
.service-resultados .gallery::-webkit-scrollbar-track {
    background: var(--gradient-color);
    background-size: 200%;
    animation: shine 15s infinite ease-in-out;
    border-radius: 10px;
}

/* Estilo del pulgar del scrollbar (parte que se arrastra) */
.service-resultados .gallery::-webkit-scrollbar-thumb {
    background-color: var(--primary-color); /* Color sólido del pulgar */
    border-radius: 10px;
}

/* Para navegadores Firefox */
.service-resultados .gallery {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent; /* Pulgar y track */
}

/* Aplicando la animación */
@keyframes shine {
    0% {
        background-position: 0%;
    }
    100% {
        background-position: 200%;
    }
}