/* ====== PANEL DE TRANSFORMACIÓN 3D ====== */

#transform-toggle {
    position: absolute;
    top: 20px;
    right: 132px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 1000;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: background 0.2s, transform 0.2s;
}

#transform-toggle:active {
    transform: scale(0.9);
}

#transform-toggle.active {
    background: var(--color-primary, #03165c);
}


#transform-panel {
    position: absolute;
    top: 74px;
    right: 12px;
    width: 220px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: 14px;
    z-index: 1000;
    display: none;
    flex-direction: column;
    gap: 10px;
    color: white;
    font-size: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    max-height: 70vh;
    overflow-y: auto;
}

#transform-panel.open {
    display: flex;
}

.tp-section-title {
    font-weight: bold;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-accent, #1da3e1);
    margin: 0;
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.tp-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tp-row label {
    width: 14px;
    font-weight: bold;
    font-size: 11px;
    flex-shrink: 0;
    text-align: center;
}

.tp-row input[type="range"] {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    outline: none;
}

.tp-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-accent, #1da3e1);
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.tp-row .tp-value {
    width: 38px;
    font-size: 10px;
    text-align: right;
    opacity: 0.8;
    flex-shrink: 0;
}

#tp-reset {
    margin-top: 4px;
    padding: 7px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

#tp-reset:active {
    background: rgba(255, 255, 255, 0.3);
}
