/* Carrusel de vídeos — responsive y estética unificada */
.service-video-carousel {
    width: 100%;
    position: relative;
}

.service-video-carousel__frame {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(145deg, #0d1117 0%, #1a2332 100%);
    border-radius: 20px;
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.22),
        0 8px 20px rgba(0, 0, 0, 0.12),
        inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.service-video-carousel--tab .service-video-carousel__frame {
    aspect-ratio: 4 / 3;
}

.service-video-carousel--gallery .service-video-carousel__frame {
    aspect-ratio: 16 / 9;
    border-radius: 16px;
}

.service-video-carousel .swiper,
.service-video-carousel .swiper-wrapper,
.service-video-carousel .swiper-slide {
    width: 100%;
    height: 100%;
}

.service-video-carousel__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    background: #000;
}

.service-video-carousel__shade {
    position: absolute;
    inset: auto 0 0 0;
    height: 42%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

/* Contador */
.service-video-carousel__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 100px;
    background: rgba(18, 20, 24, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.service-video-carousel__badge i {
    color: #dbf5f8;
    font-size: 11px;
}

/* Navegación */
.service-video-carousel__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 46px;
    height: 46px;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #121418;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
    padding: 0;
}

.service-video-carousel__nav::after {
    display: none;
}

.service-video-carousel__nav i {
    font-size: 14px;
    line-height: 1;
}

.service-video-carousel__nav--prev {
    left: 14px;
}

.service-video-carousel__nav--next {
    right: 14px;
}

.service-video-carousel__nav:hover,
.service-video-carousel__nav:focus-visible {
    background: #dbf5f8;
    color: #121418;
    transform: translateY(-50%) scale(1.06);
    outline: none;
}

.service-video-carousel__nav.swiper-button-disabled {
    opacity: 0.35;
    pointer-events: none;
}

/* Paginación */
.service-video-carousel__footer {
    display: flex;
    justify-content: center;
    padding-top: 14px;
}

.service-video-carousel__pagination {
    position: static !important;
    width: auto !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.service-video-carousel__pagination .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    margin: 0 !important;
    background: rgba(18, 20, 24, 0.2);
    opacity: 1;
    transition: transform 0.25s ease, background 0.25s ease, width 0.25s ease;
}

.service-video-carousel__pagination .swiper-pagination-bullet-active {
    width: 28px;
    border-radius: 100px;
    background: linear-gradient(90deg, #82dfe5 0%, #5bc4cb 100%);
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 991.98px) {
    .service-video-carousel--gallery .service-video-carousel__frame {
        border-radius: 14px;
    }

    .service-video-carousel__nav {
        width: 40px;
        height: 40px;
    }

    .service-video-carousel__nav--prev {
        left: 10px;
    }

    .service-video-carousel__nav--next {
        right: 10px;
    }
}

@media (max-width: 575.98px) {
    .service-video-carousel__frame {
        border-radius: 14px;
    }

    .service-video-carousel__badge {
        top: 10px;
        left: 10px;
        padding: 6px 11px;
        font-size: 11px;
    }

    .service-video-carousel__nav {
        width: 36px;
        height: 36px;
    }

    .service-video-carousel__nav i {
        font-size: 12px;
    }

    .service-video-carousel__nav--prev {
        left: 8px;
    }

    .service-video-carousel__nav--next {
        right: 8px;
    }

    .service-video-carousel__footer {
        padding-top: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-video-carousel__nav,
    .service-video-carousel__pagination .swiper-pagination-bullet {
        transition: none;
    }
}
