/* ============================================
   VIRTUAL TRY-ON PRO v6 - Diseño Premium Tipo React
   ============================================ */

#vto-pro-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 28, 0.92);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(12px);
}

.vto-pro-content {
    background: #0f172a;
    width: 100%;
    max-width: 680px;
    max-height: 92vh;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px -15px rgb(0 0 0 / 0.5),
                0 0 0 1px #334155;
    display: flex;
    flex-direction: column;
}

.vto-pro-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: #1e2937;
    border-bottom: 1px solid #334155;
}

.vto-pro-header h2 {
    margin: 0;
    color: #f1e7ff;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.vto-pro-close {
    background: #334155;
    border: none;
    color: #94a3b8;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.vto-pro-close:hover {
    background: #475569;
    color: #f1e7ff;
}

.vto-pro-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    max-height: 70vh;
}

/* === Selection Screen === */
.vto-pro-mode-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}

.vto-pro-mode-card {
    background: #1e2937;
    border: 2px solid #334155;
    border-radius: 18px;
    padding: 24px 18px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vto-pro-mode-card:hover {
    border-color: #64748b;
    transform: translateY(-2px);
}

.vto-pro-mode-card:active {
    transform: scale(0.98);
}

.vto-pro-mode-icon {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
}

.vto-pro-mode-card strong {
    color: #f1e7ff;
    font-size: 15px;
    display: block;
    margin-bottom: 6px;
}

.vto-pro-mode-card p {
    color: #94a3b8;
    font-size: 12.5px;
    margin: 0;
    line-height: 1.4;
}

/* === Variations Carousel === */
.vto-pro-section-title {
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
    padding-left: 4px;
}

.vto-pro-frames {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 8px 4px 16px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
}

.vto-pro-frame {
    min-width: 72px;
    text-align: center;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 14px;
    padding: 8px 8px 6px;
    background: #1e2937;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.vto-pro-frame:hover {
    transform: translateY(-1px);
}

.vto-pro-frame.active {
    border-color: #a855f7;
    box-shadow: none;
    transform: scale(1.05);
    z-index: 2;
    position: relative;
}

.vto-pro-frame img {
    width: 68px;
    height: 68px;
    object-fit: contain;
    border-radius: 10px;
    background: #0f172a;
    display: block;
    margin: 0 auto;
}

.vto-pro-frame span {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #cbd5e1;
    font-weight: 500;
}

/* === Preview Area === */
.vto-pro-preview {
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
    box-shadow: inset 0 0 0 1px #334155;
    min-height: 380px;
}

.vto-pro-preview video,
.vto-pro-preview canvas {
    width: 100%;
    height: auto;
    display: block;
}

/* === Controls === */
.vto-pro-controls {
    background: #1e2937;
    border-radius: 16px;
    padding: 18px 20px;
}

.vto-pro-slider-group {
    margin-bottom: 16px;
}

.vto-pro-slider-label {
    display: flex;
    justify-content: space-between;
    color: #e2e8f0;
    font-size: 13px;
    margin-bottom: 8px;
}

.vto-pro-slider-label span:last-child {
    color: #a5b4fc;
    font-weight: 600;
}

.vto-pro-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vto-pro-btn-primary {
    background: #10b981;
    color: white;
}

.vto-pro-btn-primary:hover {
    background: #059669;
}

.vto-pro-btn-secondary {
    background: #334155;
    color: #e2e8f0;
    margin-top: 10px;
}

.vto-pro-main-btn {
    margin-top: 12px;
    width: 100%;
    padding: 15px;
    font-size: 16px;
    background: #1e2937;
    color: #f1e7ff;
    border: 1px solid #475569;
    border-radius: 14px;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .vto-pro-content {
        max-height: 95vh;
        border-radius: 20px;
    }
    
    .vto-pro-frame img {
        width: 60px;
        height: 60px;
    }
    
    .vto-pro-frame {
        min-width: 64px;
    }
}
