/* =========================
   MODAL BASE
========================= */
.vti-modal { 
    position: fixed; 
    inset: 0; 
    z-index: 99999; 
    display: none; 
}

.vti-modal .vti-modal-backdrop { 
    position: absolute; 
    inset: 0; 
    background: rgba(0,0,0,0.65);
}

/* Dialog centrado */
.vti-modal .vti-modal-dialog { 
    position: absolute; 
    left: 50%; 
    top: 50%; 
    transform: translate(-50%, -50%);
    width: 92%;
    max-width: 1100px;

    padding: 24px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.35);
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    gap: 12px;

    max-height: 92vh;
    overflow: hidden;
}

/* BOTÓN CERRAR */
.vti-modal .vti-modal-close { 
    position: absolute; 
    right: 20px; 
    top: 16px; 
    font-size: 32px; 
    font-weight: bold;
    background: transparent; 
    border: none; 
    cursor: pointer;
    z-index: 999999; 
    line-height: 1;
}

/* =========================
   STAGE (CONTENEDOR)
========================= */
.vti-stage {
    position: relative;
    width: 100%;
    height: 100%;

    background: transparent;
    border-radius: 16px;

    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;

    aspect-ratio: 1 / 1;
}

/* Contenido interno: sin scroll nunca */
.vti-stage img,
.vti-stage iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    border: none;
}

/* Quitar scroll del iframe */
#vti-probador-iframe {
    overflow: hidden !important;
    scrollbar-width: none;
}
#vti-probador-iframe::-webkit-scrollbar {
    display: none;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 576px) {

    .vti-modal .vti-modal-dialog {
        width: 95%;
        padding: 16px;
        max-height: 96vh;
    }

    .vti-stage {
        aspect-ratio: 9 / 16;
        width: 100%;
        max-height: 80vh;
    }
}

/* =========================
   ESCRITORIO GRANDE – Vertical igual que móvil - Probador sólo formato móvil
========================= */
@media (min-width: 992px) {

    .vti-modal .vti-modal-dialog {
        width: 480px;           /* Ancho similar a un celular grande */
        max-width: 90%;
        padding: 28px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .vti-stage {
        width: 100%;
        aspect-ratio: 9 / 16 !important;  /* ⭐ Obligamos formato vertical */
        max-height: 85vh;
        height: auto;
    }
}




