/* CONTENEDOR SWIPER */
.servicios-swiper {
    padding: 20px 0;
    position: relative;
}

/* WRAPPER para centrar slides verticalmente */
.swiper-wrapper {
    align-items: center;
}

/* SLIDE */
.servicio-slide {
    width: 300px; /* ancho del slide central */
    height: 360px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    color: white;
}


/* OVERLAY para el texto */
.servicio-overlay {
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.7));
    padding: 20px;
    text-align: left;
    box-sizing: border-box;
    min-height: 550px;
    position: relative;
}
.box-servicio-title{
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    /*background: rgba(0, 0, 0, 0.5);*/
    padding: 10px 30px;
    text-align: left;
    font-size: 1.2rem;
    color: #444;
    background-image: url(/wp-content/uploads/2025/07/double-bubble-outline.webp);
    background-repeat: repeat;
    background-size: contain;
}
/* TEXTO */
.servicio-category {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 8px;
}

.servicio-title {
    font-size: 2rem;
    color: #444;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.2;
    margin-bottom: 5px;
    margin-top: 10px;
}

.servicio-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ddd;
    text-decoration: underline;
    transition: color 0.3s;
}

.servicio-link:hover {
    color: #fff;
}

/* EFECTO: slide central más grande o hover */
.servicio-slide-active,
.servicio-slide:hover {
    transform: scale(1.15);
    /*box-shadow: 0 10px 20px rgba(0,0,0,0.25);*/
    z-index: 10;
}

/* SWIPER: Flechas */
.swiper-button-prev,
.swiper-button-next {
    color: #000;
    top: 10px;
    width: 24px;
    height: 24px;
    opacity: 0.8;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    opacity: 1;
}

/* SWIPER: Paginación */
.swiper-pagination {
    position: absolute;
    top: 5px;
    right: 10px;
    width: auto;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    background: #333;
    opacity: 1;
}

.swiper-button-next, .swiper-button-prev{
    color:white!important;
}

.servicio-slide {
    position: relative;
    background-color: #eee; /* gris de fondo mientras carga */
}

.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #fff;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 5;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
    .servicio-title {
        font-size: 1.5rem;
    }
}

/* Móviles medianos (481px a 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .servicio-title {
        font-size: 1.5rem;
    }
}

/* Tablets (768px a 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .servicio-title {
        font-size: 1.7rem;
    }
}