.fondo-ofrecemos {
    background-color: #026167;
}

.servicios .container {
    display: flex;
    justify-content: center; /* Centra horizontalmente los elementos */
    align-items: center; /* Centra verticalmente los elementos */
    flex-wrap: wrap; /* Permite que los elementos se envuelvan en múltiples filas si es necesario */
    padding: 20px;
    max-width: 1200px; /* Limita el ancho máximo del contenedor */
    margin: 0 auto; /* Centra el contenedor dentro de la sección */
}

.service {
    flex: 0 0 calc(25% - 20px); /* Ajusta el ancho deseado descontando el margen */
    background-color: #026167;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 10px;
    padding: 20px;
    text-align: center;
    color: white;
    align-items: center;
}

.service img {
    width: 60px;
    height: auto;
    margin-bottom: 10px;
    filter: brightness(0) invert(1);
}

.service h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.service p {
    font-size: 16px;
    line-height: 1.6;
}

.servicios h1 {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
    color: white;
}

/* Media query para dispositivos pequeños */
@media (max-width: 768px) {
    .servicios .container {
        flex-direction: column; /* Cambia la dirección a columna para apilar los servicios */
        align-items: center; /* Centra los elementos en dispositivos pequeños */
    }

    .service {
        flex: 0 0 100%; /* Cada servicio ocupará todo el ancho disponible */
        margin: 20px 0; /* Añade espacio entre los servicios */
    }
}

/*GALERIA DE IMAGENES */
.slider-container {
    position: relative;
    overflow: hidden;
    border: 2px solid #ccc;
    border-radius: 10px;
    margin: 0 auto;
    margin-top: 50px;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
    max-width: 100%;
}

.image-wrapper {
    position: relative;
    margin-bottom: 30px;
    overflow: hidden;
    box-sizing: border-box;
}

.before,
.after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.before img,
.after img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.after {
    clip-path: inset(0 50% 0 0);
    /* Start at the middle */
}

.divider {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: #fff;
    z-index: 3;
    /* Ensure divider is above images */
    pointer-events: none;

}

.slider-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    -webkit-appearance: none;
    background: transparent;
    z-index: 4;
    cursor: ew-resize;
}

.slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 80px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50" width="90" height="90"><circle cx="25" cy="25" r="20" fill="none" stroke="white" stroke-width="1"/><path fill="white" d="M 20 30 L20 20 L10 25 Z M 30 20 L30 30 L40 25 Z" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat center;
    background-size: contain;
    cursor: pointer;
    border: none;
}

.slider-input::-moz-range-thumb {
    width: 80px;
    height: 80px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50" width="90" height="90"><circle cx="25" cy="25" r="20" fill="none" stroke="white" stroke-width="1"/><path fill="white" d="M 20 30 L20 20 L10 25 Z M 30 20 L30 30 L40 25 Z" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat center;
    background-size: contain;
    cursor: pointer;
    border: none;
}