/* Velvet Slider — presentación pública */
.velvet-slider {
    position: relative;
    width: 100%;
    height: min(80vh, 920px);
    min-height: 460px;
    overflow: hidden;
    isolation: isolate;
    background: #111;
}

.velvet-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 550ms ease;
}

.velvet-slide.active {
    z-index: 1;
    opacity: 1;
    pointer-events: auto;
}

.velvet-slide > img,
.velvet-slide > video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.velvet-overlay {
    position: absolute;
    left: 10%;
    bottom: 12%;
    z-index: 10;
    max-width: 550px;
}

.velvet-overlay h2,
.vs-layer--heading h2 {
    margin: 0 0 20px;
    color: inherit;
    line-height: .95;
}

.velvet-overlay h2 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
}

.velvet-overlay p,
.vs-layer--text p {
    margin: 0;
    color: inherit;
}

.velvet-overlay p {
    margin-bottom: 20px;
    font-size: clamp(1rem, 2vw, 1.375rem);
    line-height: 1.4;
}

.velvet-overlay a,
.vs-layer--button a {
    display: inline-block;
    text-decoration: none;
    transition: opacity .2s ease, transform .2s ease;
}

.velvet-overlay a {
    margin-top: 20px;
    padding: 16px 36px;
    background: #fff;
    color: #000;
}

.velvet-overlay a:hover,
.vs-layer--button a:hover {
    opacity: .88;
    transform: translateY(-1px);
}

/* Capas del editor visual */
.velvet-slide .vs-layer {
    box-sizing: border-box;
}

.velvet-slide .vs-layer--image {
    overflow: hidden;
}

.velvet-slide .vs-layer--image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.velvet-slide .vs-layer--heading h2,
.velvet-slide .vs-layer--text p {
    width: 100%;
    height: 100%;
}

.velvet-slide .vs-layer--button a {
    box-sizing: border-box;
    min-width: 100%;
    min-height: 100%;
    text-align: center;
}

/* Controles */
.velvet-slider__control {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    background: rgb(0 0 0 / 45%);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    transition: background .2s ease;
}

.velvet-slider__control:hover,
.velvet-slider__control:focus-visible {
    background: rgb(0 0 0 / 75%);
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.velvet-slider__control--previous { left: 20px; }
.velvet-slider__control--next { right: 20px; }

.velvet-slider__dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    z-index: 5;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.velvet-slider__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 1px solid rgb(255 255 255 / 85%);
    border-radius: 50%;
    cursor: pointer;
    background: transparent;
}

.velvet-slider__dot.is-active {
    background: #fff;
}

@media (max-width: 768px) {
    .velvet-slider {
        height: 72vh;
        min-height: 430px;
    }

    .velvet-overlay {
        right: 40px;
        bottom: 9%;
    }
}

@media (max-width: 480px) {
    .velvet-slider {
        height: 78vh;
        min-height: 480px;
    }

    .velvet-overlay {
        right: 24px;
        bottom: 42px;
    }

    .velvet-overlay a {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .velvet-slide .vs-layer--heading h2 {
        font-size: min(10vw, 40px) !important;
    }

    .velvet-slide .vs-layer--text p {
        font-size: min(4.25vw, 18px) !important;
    }

    .velvet-slider__control--previous { left: 12px; }
    .velvet-slider__control--next { right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .velvet-slide { transition: none; }
}
