/* HIQ VIRTUAL LOOK - HoneyUniverso */

.virtual-look-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .72);
    z-index: 99999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    backdrop-filter: blur(5px);
}

.virtual-look-modal.show {
    display: flex !important;
}

.virtual-look-box {
    background: #ffffff;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 22px;
    animation: vlFade .25s ease;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}

@keyframes vlFade {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.96);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.virtual-look-head {
    background: linear-gradient(135deg, #5C3317, #7A4828);
    padding: 16px 18px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 2;
}

.virtual-look-head h3 {
    font-size: .95rem;
    font-weight: 900;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.virtual-look-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #ffffff;
    cursor: pointer;
    font-size: 1rem;
}

.virtual-look-close:hover {
    background: rgba(255, 255, 255, .28);
}

.virtual-look-body {
    padding: 18px;
}

.virtual-look-text {
    font-size: .85rem;
    line-height: 1.5;
    color: #555555;
    margin-bottom: 16px;
    text-align: center;
}

.virtual-look-upload {
    border: 2px dashed #D4A017;
    border-radius: 16px;
    padding: 22px 18px;
    text-align: center;
    cursor: pointer;
    transition: .25s ease;
    background: #FFFDF5;
    display: block;
}

.virtual-look-upload:hover {
    background: #FFF8E7;
}

.virtual-look-upload i {
    font-size: 1.8rem;
    color: #D4A017;
    display: block;
    margin-bottom: 8px;
}

.virtual-look-upload strong {
    display: block;
    color: #5C3317;
    margin-bottom: 4px;
    font-size: .88rem;
}

.virtual-look-upload span {
    font-size: .72rem;
    color: #888888;
}

#virtualLookInput {
    display: none;
}

.virtual-look-generate {
    width: 100%;
    margin-top: 14px;
    padding: 12px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #FFD700, #D4A017);
    color: #5C3317;
    font-weight: 900;
    font-size: .88rem;
    cursor: pointer;
    transition: .25s ease;
    display: none;
    font-family: inherit;
}

.virtual-look-generate:hover {
    transform: translateY(-2px);
}

.virtual-look-generate:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

.virtual-look-status {
    margin-top: 12px;
    text-align: center;
    font-size: .82rem;
    color: #D4A017;
    display: none;
    font-weight: 700;
}

.vl-antes-despues {
    display: none;
    gap: 10px;
    margin-top: 16px;
}

.vl-antes-despues.show {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.vl-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.vl-label {
    font-size: .7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .8px;
    padding: 4px 12px;
    border-radius: 999px;
}

.vl-label-antes {
    background: #F0F0F0;
    color: #666666;
}

.vl-label-despues {
    background: linear-gradient(135deg, #D4A017, #FFD700);
    color: #5C3317;
}

.vl-col img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}

#virtualLookActions {
    display: none;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}

#vlBtnDescargar {
    width: 100%;
    padding: 11px;
    border: none;
    border-radius: 12px;
    background: #5C3317;
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
    font-family: inherit;
}

#vlBtnDescargar:hover {
    background: #7A4828;
}

@media (max-width: 520px) {
    .virtual-look-box {
        max-width: 96vw;
        border-radius: 18px;
    }

    .vl-col img {
        height: 180px;
    }
}


/* ============================================================
   HIQ VIRTUAL LOOK - AJUSTE ANTES / QUÉ TAL AHORA
   Escritorio: lado a lado
   Móvil: una imagen arriba y otra debajo
   ============================================================ */

.vl-antes-despues {
    display: none;
    gap: 14px;
    margin-top: 16px;
}

.vl-antes-despues.show {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    align-items: start;
}

.vl-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.vl-label {
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .8px;
    padding: 5px 14px;
    border-radius: 999px;
    text-align: center;
    line-height: 1.2;
}

.vl-label-antes {
    background: #F0F0F0;
    color: #666666;
}

.vl-label-despues {
    background: linear-gradient(135deg, #D4A017, #FFD700);
    color: #5C3317;
}

#virtualLookPreview,
#virtualLookResult {
    display: block !important;
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 14px;
    background: #f4f4f4;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}

@media (max-width: 600px) {
    .virtual-look-modal {
        align-items: flex-start;
        padding: 10px;
        overflow-y: auto;
    }

    .virtual-look-box {
        max-width: 96vw;
        max-height: none;
        margin: 12px auto;
        border-radius: 18px;
    }

    .vl-antes-despues.show {
        display: flex !important;
        flex-direction: column;
        gap: 18px;
    }

    .vl-col {
        width: 100%;
    }

    #virtualLookPreview,
    #virtualLookResult {
        width: 100%;
        height: auto !important;
        max-height: 520px;
        object-fit: contain;
        background: #ffffff;
    }

    .vl-label {
        font-size: .8rem;
        padding: 6px 18px;
    }
}
