﻿/* Estilos específicos solo para el carrusel */
.splide-container {
    max-width: 1280px;
    margin: 20px auto;
    position: relative;
    width: 100%;
}

.splide__track {
    background: #f0f0f0;
    border-radius: 8px;
    height: 350px;
}

.splide__slide {
    height: 350px;
    overflow: hidden;
}

    .splide__slide img {
        width: 100%;
        height: 100%;
        object-fit: fill; /* Forzar que la imagen llene el espacio */
        display: block;
    }

.splide__pagination {
    bottom: 15px !important;
    z-index: 10;
}

.splide__pagination__page {
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background: #fff;
    opacity: 0.8;
}

    .splide__pagination__page.is-active {
        background: #007bff;
        opacity: 1;
    }

.splide__arrow {
    background: rgba(255, 255, 255, 0.8);
}

    .splide__arrow svg {
        fill: #333;
    }

/* Indicador de carga */
.image-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}


.btn {
    padding: 5px 10px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    margin: 0 5px;
    border-radius: 4px;
}

.btn-sm {
    font-size: 13px;
    padding: 6px 12px;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.d-none {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 1rem;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Estilos solo para el slider de servicios */
#sliderServicios {
    margin: 30px auto;
    max-width: 1280px;
}

    /* Track del slider */
    #sliderServicios .splide__track {
        background: #f9f9f9;
        border-radius: 10px;
        padding: 10px 0;
        height: auto !important; /* Ajustar automáticamente al contenido */
    }

    /* Cada slide del slider */
    #sliderServicios .splide__slide {
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 10px;
        text-align: center;
    }

    /* Estilo del contenedor del enlace con imagen + texto */
    #sliderServicios .box-icon-1 {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #444;
        padding: 5px;
        transition: transform 0.2s ease;
    }

        #sliderServicios .box-icon-1:hover {
            transform: scale(1.05);
            text-decoration: none;
        }

    /* Imagen pequeña circular o cuadrada */
    #sliderServicios img {
        width: 60px;
        height: 60px;
        object-fit: cover; /* Contener bien sin deformar */
        margin-bottom: 8px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    /* Texto debajo de cada imagen */
    #sliderServicios .body-content .title {
        font-size: 14px;
        text-align: center;
        margin: 0;
        line-height: 1.2;
    }

    /* Flechas del slider */
    #sliderServicios .splide__arrow {
        background: rgba(255, 255, 255, 0.9);
        border-radius: 50%;
        box-shadow: 0 0 5px rgba(0,0,0,0.1);
    }

        #sliderServicios .splide__arrow svg {
            fill: #333;
        }

    #sliderServicios .splide__pagination {
        bottom: -10px;
        z-index: 10;
    }

    #sliderServicios .splide__pagination__page {
        width: 10px;
        height: 10px;
        margin: 0 4px;
        background: #ccc;
        opacity: 0.8;
    }

        #sliderServicios .splide__pagination__page.is-active {
            background: #007bff;
            opacity: 1;
        }
