.vv-exp-widget {
    position: relative;
}

.vv-exp-slider {
    position: relative;
}

.vv-exp-slider-viewport {
    overflow: hidden;
}

.vv-exp-slider-track {
    display: flex;
    transition: transform 0.4s ease;
    will-change: transform;
}

.vv-exp-slide {
    flex: 0 0 auto;
    box-sizing: border-box;
    padding: 0 10px;
}

.vv-exp-card {
    background: #fff;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.vv-exp-card-img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eee;
}

.vv-exp-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vv-exp-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.vv-exp-card-body h3 {
    margin: 0;
}

.vv-exp-card-body p {
    margin: 0;
    flex: 1;
}

/* Nota: se usan <div role="button"> en vez de <button> para que el estilo global
   de botones de Elementor/tema (aplicado a la etiqueta <button>) no se mezcle
   con los estilos propios de este widget. Todo el aspecto visual (colores,
   tipografía, tamaños, padding, radios) se controla desde el panel de estilo
   de Elementor; aquí solo va la estructura. */

.vv-exp-btn-ver-mas {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    cursor: pointer;
    user-select: none;
}

.vv-exp-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    z-index: 2;
}

.vv-exp-arrow .vv-exp-icon,
.vv-exp-modal-close .vv-exp-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 0;
}

.vv-exp-arrow .vv-exp-icon svg,
.vv-exp-modal-close .vv-exp-icon svg {
    display: block;
}

.vv-exp-prev,
.vv-exp-gallery-prev {
    left: -6px;
}

.vv-exp-next,
.vv-exp-gallery-next {
    right: -6px;
}

.vv-exp-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
}

.vv-exp-gallery-dots {
    margin-top: 10px;
}

.vv-exp-dot {
    border-radius: 50%;
    cursor: pointer;
    user-select: none;
}

/* Modal */
.vv-exp-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.vv-exp-modal.is-open {
    display: flex;
}

.vv-exp-modal-overlay {
    position: absolute;
    inset: 0;
}

.vv-exp-modal-dialog {
    position: relative;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* El botón cerrar vive fuera de .vv-exp-modal-scroll a propósito: así queda
   superpuesto sobre el contenido y siempre visible, sin desplazarse con el scroll. */
.vv-exp-modal-close {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
}

.vv-exp-modal-scroll {
    overflow-y: auto;
    min-height: 0;
    /* Scroll funcional pero sin barra visible (rueda del mouse, touch, teclado). */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.vv-exp-modal-scroll::-webkit-scrollbar {
    display: none;
}

.vv-exp-modal-content {
    margin: 16px 0;
}

.vv-exp-gallery {
    position: relative;
    margin-top: 20px;
}

.vv-exp-gallery-viewport {
    overflow: hidden;
}

.vv-exp-gallery-track {
    display: flex;
    transition: transform 0.4s ease;
}

.vv-exp-gallery-slide {
    flex: 0 0 100%;
}

.vv-exp-gallery-slide img {
    width: 100%;
    display: block;
}

body.vv-exp-modal-open {
    overflow: hidden;
}
