/* Carrusel de miniaturas (vv-carrusel)
   Tira horizontal con scroll por transformaciones: sin librerías. */
.vv-strip {
    --vv-strip-gap: 0.75rem;
    --vv-strip-per-view: 6;
    --vv-strip-ratio: 4 / 3;
    --vv-strip-line: var(--line, #e3e3e3);
    --vv-strip-surface: var(--surface, #ffffff);
    --vv-strip-accent: var(--accent, #0e6e5a);
    --vv-strip-muted: var(--muted, #666666);
}

.vv-strip__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.vv-strip__title {
    margin: 0;
    font-size: clamp(1.05rem, 1.6vw, 1.4rem);
    line-height: 1.25;
}

.vv-strip__controls {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.vv-strip__toggle,
.vv-strip__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.75rem;
    border: 1px solid var(--vv-strip-line);
    border-radius: 999px;
    background: var(--vv-strip-surface);
    color: inherit;
    font: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.vv-strip__arrow {
    padding: 0;
    width: 2.25rem;
}

.vv-strip__toggle:hover,
.vv-strip__arrow:hover {
    border-color: var(--vv-strip-accent);
    color: var(--vv-strip-accent);
}

.vv-strip__toggle:focus-visible,
.vv-strip__arrow:focus-visible,
.vv-strip__dot:focus-visible {
    outline: 2px solid var(--vv-strip-accent);
    outline-offset: 2px;
}

.vv-strip__viewport {
    overflow: hidden;
    border-radius: 0.35rem;
}

.vv-strip__viewport:focus-visible {
    outline: 2px solid var(--vv-strip-accent);
    outline-offset: 4px;
}

.vv-strip__track {
    display: flex;
    align-items: flex-start;
    gap: var(--vv-strip-gap);
    margin: 0;
    padding: 0;
    list-style: none;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.vv-strip__track.is-jumping {
    transition: none;
}

.vv-strip__item {
    flex: 0 0 calc((100% - (var(--vv-strip-per-view) - 1) * var(--vv-strip-gap)) / var(--vv-strip-per-view));
    margin: 0;
    max-width: none;
}

.vv-strip__item.is-clone {
    pointer-events: none;
}

.vv-strip__media {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 0.35rem;
    aspect-ratio: var(--vv-strip-ratio);
    background: color-mix(in srgb, currentColor 7%, transparent);
}

.vv-strip__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.vv-strip__item:hover .vv-strip__media img {
    transform: scale(1.04);
}

.vv-strip__caption {
    margin: 0.5rem 0 0;
    font-size: 0.8rem;
    line-height: 1.3;
    text-align: center;
    color: var(--vv-strip-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vv-strip__dots {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1rem;
}

.vv-strip__dot {
    width: 0.5rem;
    height: 0.5rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: color-mix(in srgb, currentColor 28%, transparent);
    cursor: pointer;
    transition: width 0.2s ease, background-color 0.2s ease;
}

.vv-strip__dot.is-active {
    width: 1.25rem;
    background: var(--vv-strip-accent);
}

@media (max-width: 64rem) {
    .vv-strip__track {
        --vv-strip-per-view: 3;
    }
}

@media (max-width: 40rem) {
    .vv-strip {
        --vv-strip-gap: 0.5rem;
    }

    .vv-strip__track {
        --vv-strip-per-view: 2;
    }

    .vv-strip__caption {
        font-size: 0.75rem;
    }

    .vv-strip__head {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 0.6rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vv-strip__track,
    .vv-strip__media img,
    .vv-strip__dot {
        transition: none;
    }
}
