/* Horizontal Scroll Carousel Widget Styles */

.kc-h-scroll-carousel-wrap {
    position: relative;
    width: 100%;
    overflow-x: hidden; /* solo clip horizontal — no corta el nav absolutamente posicionado */
    padding: 40px 0;
}

.kc-h-scroll-carousel {
    display: flex;
    gap: 20px;
    padding: 0 5%;
    will-change: transform;
    transition: transform 0.1s ease-out;
}

.kc-h-scroll-item {
    flex: 0 0 350px;
    height: 450px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    color: #fff;
    cursor: grab;
    user-select: none;
}

.kc-h-scroll-item:active {
    cursor: grabbing;
}

/* Gradient Overlay */
.kc-h-scroll-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        var(--kc-grad-angle, 180deg),
        var(--kc-grad-color-1, transparent) var(--kc-grad-loc-1, 0%),
        var(--kc-grad-color-2, rgba(0,0,0,0.8)) var(--kc-grad-loc-2, 100%)
    );
    opacity: var(--kc-grad-opacity, 1);
    z-index: 1;
    transition: opacity 0.3s ease;
}

.kc-h-scroll-content {
    position: relative;
    z-index: 2;
}

.kc-h-scroll-title {
    margin: 0 0 10px;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.kc-h-scroll-desc {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* Navigation Arrows — posicionadas en los laterales del carrusel */
.kc-h-scroll-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 12px;
    pointer-events: none; /* deja pasar el drag al carrusel */
    z-index: 10;
    gap: 0;
    margin-top: 0;
}

.kc-h-scroll-arrow {
    pointer-events: all; /* re-habilita los clics en los botones */
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a2e;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    opacity: 0.85;
}

.kc-h-scroll-arrow:hover {
    background: var(--kc-accent, #00b4a0);
    opacity: 1;
}

/* SVG chevrons inline — usan stroke="currentColor", heredan color del botón */
.kc-h-scroll-arrow svg {
    width: 18px;
    height: 18px;
    display: block;
    flex-shrink: 0;
}

.kc-h-scroll-arrow svg path {
    stroke: currentColor;
}

/* Responsive */
@media (max-width: 768px) {
    .kc-h-scroll-item {
        flex: 0 0 280px;
        height: 380px;
        padding: 20px;
    }

    .kc-h-scroll-nav {
        padding: 0 6px;
    }

    .kc-h-scroll-arrow {
        width: 36px;
        height: 36px;
    }

    .kc-h-scroll-arrow i {
        font-size: 16px;
    }
    
    .kc-h-scroll-title {
        font-size: 1.25rem;
    }
}
