/* ============================================================
   ZEM Testimonios Video
   Colores, tipografías y medidas se configuran desde Elementor —
   acá solo queda lo estructural.
   ============================================================ */

.elementor-widget-zem_video_testimonials {
    width: 100%;
}

/* ── Slider ────────────────────────────────────────────────── */
.zem-vt__media {
    position: relative;
    width: 100%;
    overflow: hidden;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.zem-vt__track {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}

.zem-vt__media.is-dragging .zem-vt__track {
    transition: none;
}

.zem-vt__slide {
    flex: 0 0 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.zem-vt__card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    padding: 0 24px 64px;
    color: #fff;
    background: #000;
}

.zem-vt__card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, var(--zem-vt-overlay, rgba(0, 0, 0, 0.55)) 0%, transparent 45%);
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0s;
}

.zem-vt__video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* ── Popup de vídeo ────────────────────────────────────────── */
.zem-vt-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.85);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

.zem-vt-modal.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s ease;
}

.zem-vt-modal__inner {
    position: relative;
    display: flex;
    justify-content: center;
}

.zem-vt-modal__player video {
    display: block;
    width: auto;
    height: min(86vh, 820px);
    max-width: calc(100vw - 48px);
    aspect-ratio: 9 / 16;
    object-fit: contain;
    background: #000;
}

.zem-vt-modal .zem-vt-modal__close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 36px;
    height: 36px;
    min-width: 0;
    margin: 0;
    padding: 0;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    background: transparent;
    border: 0;
    box-shadow: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zem-vt-modal .zem-vt-modal__close svg {
    display: block;
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

.zem-vt-modal .zem-vt-modal__close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Flechas anterior / siguiente del popup */
.zem-vt-modal .zem-vt-modal__nav {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 0;
    margin: 0 16px;
    padding: 0;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    box-shadow: none;
    cursor: pointer;
    transition: background-color 0.25s ease, opacity 0.25s ease;
}

.zem-vt-modal .zem-vt-modal__nav[hidden] {
    display: none;
}

.zem-vt-modal .zem-vt-modal__nav svg {
    width: 22px;
    height: 22px;
}

.zem-vt-modal .zem-vt-modal__nav--next svg {
    transform: scaleX(-1);
}

.zem-vt-modal .zem-vt-modal__nav:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
}

.zem-vt-modal .zem-vt-modal__nav:disabled {
    opacity: 0.3;
    cursor: default;
}

.zem-vt-modal .zem-vt-modal__nav:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* En móvil el popup es más chico para que quede margen donde tocar y
   salir (la pantalla completa sigue en los controles del vídeo); las
   flechas van a los lados, fuera del vídeo. */
@media (max-width: 767px) {
    .zem-vt-modal {
        padding: 16px;
    }

    .zem-vt-modal__player video {
        width: calc(100vw - 120px);
        height: auto;
        max-height: 68vh;
    }

    .zem-vt-modal .zem-vt-modal__nav {
        width: 40px;
        height: 40px;
        margin: 0 8px;
    }

    .zem-vt-modal .zem-vt-modal__nav svg {
        width: 18px;
        height: 18px;
    }
}

.zem-vt__media .zem-vt__play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    margin: 0;
    padding: 0;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    font-size: 0;
    line-height: 0;
    letter-spacing: 0;
    text-transform: none;
    min-width: 0;
    box-shadow: none;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: background-color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

.zem-vt__media .zem-vt__play:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

/* El círculo no cambia en hover: solo el triángulo se achica */
.zem-vt__media .zem-vt__play-icon {
    width: 46%;
    height: 46%;
    transition: transform 0.25s ease;
}

.zem-vt__media .zem-vt__play:hover .zem-vt__play-icon,
.zem-vt__media .zem-vt__play:focus-visible .zem-vt__play-icon {
    transform: scale(0.8);
}

.zem-vt__name {
    position: relative;
    z-index: 2;
    margin: 0;
    font-family: "Erode", serif;
    font-size: 30px;
    font-weight: 300;
    line-height: 1.2;
    text-align: center;
    transition: opacity 0.25s ease, visibility 0s;
}

.zem-vt__media .zem-vt__dots {
    position: absolute;
    right: 0;
    bottom: 32px;
    left: 0;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 10px;
    transition: opacity 0.25s ease, visibility 0s;
}

.zem-vt__media .zem-vt__dot {
    width: 12px;
    height: 12px;
    margin: 0;
    padding: 0;
    background: var(--zem-vt-dot, #d9d9d9);
    border: 0;
    border-radius: 50%;
    font-size: 0;
    line-height: 0;
    letter-spacing: 0;
    text-transform: none;
    min-width: 0;
    box-shadow: none;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

.zem-vt__media .zem-vt__dot.is-active,
.zem-vt__media .zem-vt__dot:hover,
.zem-vt__media .zem-vt__dot:focus {
    background: var(--zem-vt-dot-active, #fff);
}

.zem-vt__media .zem-vt__dot:focus-visible {
    outline: 2px solid var(--zem-vt-dot-active, #fff);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .zem-vt__track,
    .zem-vt__play,
    .zem-vt__play-icon,
    .zem-vt__dot,
    .zem-vt__dots,
    .zem-vt__name,
    .zem-vt__card::after,
    .zem-vt-modal,
    .zem-vt-modal__nav {
        transition: none;
    }
}
