/* ── Vimeo Popup — Trigger ── */
.vimeo-popup-open {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: visible;
}

/* ── Sombra / ::after ── */
.vimeo-popup-open::after {
    content: '';
    position: absolute;
    z-index: 1;
    top: 10px;
    left: 10px;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ── Imagen ── */
.vimeo-popup-image {
    position: relative;
    z-index: 3;
    display: block;
}

/* ── Icono de reproducción ── */
.vimeo-popup-icon {
    padding: 20px;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: fill 0.3s ease-in-out, transform 0.3s ease-in-out;
    border: 2px solid;
    border-radius: 180px;
}

.vimeo-popup-icon svg{
    transform: translateX(3.5px);
}

.vimeo-popup-open:hover .vimeo-popup-icon {
    transform: translate(-50%, -50%) translateY(-6px);
}

/* ── Overlay del popup ── */
.vimeo-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 8%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.vimeo-popup-overlay.is-active {
    z-index: 99999;
    opacity: 1;
    pointer-events: auto;
}

/* ── Contenido del popup ── */
.vimeo-popup-content {
    position: relative;
    width: 90%;
    background: #000;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.8);
}

.vimeo-popup-content iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* ── Botón de cerrar ── */
.vimeo-popup-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.vimeo-popup-close svg {
    width: 24px;
    height: 24px;
    transition: fill 0.2s ease;
    background: transparent;
}

.vimeo-popup-close svg path {
    fill: white;
}

.vimeo-popup-close:hover {
    transform: scale(1.05);
    background: transparent;
}

@media (max-width: 768px) {
    .vimeo-popup-close {
        top: -35px;
        right: 5px;
    }
    .vimeo-popup-close svg {
        width: 20px;
        height: 20px;
    }
}
