:root {
    --cian: #4F939C;
    --dark-glass: rgba(255, 255, 255, 1);
    --modal-bg: rgba(0, 0, 0, 0.4); 
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', system-ui, sans-serif; }
body, html { height: 100%; overflow: hidden; background: #000; color: #fff; }

#bg-camera { 
    position: absolute; top: 0; left: 0; 
    width: 100%; height: 100%; 
    object-fit: cover; z-index: 1; 
}

.ui-layer {
    position: absolute; top: 0; left: 0; 
    width: 100%; height: 100%; z-index: 10;
    display: flex; flex-direction: column; 
    justify-content: space-between; 
    pointer-events: none;
}

.brand-header {
    text-align: center; margin-top: 40px;
    background: rgba(255,255,255,0.95);
    margin-inline: auto; padding: 15px 35px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    display: flex; flex-direction: column; align-items: center;
}

.logo-symbol {
    display: flex; justify-content: center; align-items: center;
    height: 70px; margin-bottom: 0px;
}

.logo-text { 
    font-size: 1.3rem; color: #111; 
    font-family: 'Georgia', serif; 
    font-weight: 600; letter-spacing: 0.5px;
}

/* Botones Principales GIGANTES */
.dual-actions-container {
    display: flex; justify-content: center; gap: 30px; 
    margin-bottom: 50px; width: 100%; pointer-events: auto;
}

.action-btn {
    width: 110px; height: 110px; /* Tamaño aumentado */
    background: var(--dark-glass);
    border: none; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
    cursor: pointer; transition: transform 0.2s;
}
.action-btn:active { transform: scale(0.95); }

#modalContainer { 
    display: none; 
    position: fixed; top: 0; left: 0; 
    width: 100%; height: 100%; 
    background: var(--modal-bg); 
    backdrop-filter: blur(2px);
    z-index: 100; overflow-y: auto; padding: 20px;
    pointer-events: auto;
}

.close-btn { 
    position: absolute; top: 20px; right: 20px; 
    background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.3); color: #fff; 
    width: 40px; height: 40px; border-radius: 50%;
    font-size: 1.5rem; cursor: pointer; display: flex;
    align-items: center; justify-content: center; z-index: 200;
}

.form-control { 
    width: 100%; padding: 14px 16px; margin-bottom: 10px;
    background: rgba(255,255,255,0.95); border: none; 
    color: #000; border-radius: 12px; font-size: 1rem; font-weight: 600;
}

.hud-viewport-container { 
    width: 100%; flex-grow: 1; min-height: 250px; 
    position: relative; margin-bottom: 10px; 
}

#hudViewer, #arViewer { 
    width: 100%; height: 100%; 
    --poster-color: transparent; background-color: transparent; 
}

.hud-telemetry-readout { 
    background: transparent; color: rgba(255,255,255,0.9); 
    font-family: monospace; font-size: 0.75rem; 
    text-align: center; margin-bottom: 10px; font-weight: bold;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* Deslizadores Sutiles y Transparentes */
.hud-sliders-panel { 
    display: flex; flex-direction: column; gap: 8px; 
    margin-bottom: 15px; background: transparent; 
    padding: 0 10px; border: none;
}

.hud-slider-row { display: flex; align-items: center; gap: 10px; width: 100%; }

.hud-btn-step { 
    background: transparent; color: rgba(255,255,255,0.9); 
    border: none; padding: 2px; 
    font-size: 0.8rem; cursor: pointer; min-width: 35px; text-align: center; font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.hud-slider-row input[type="range"] { 
    flex: 1; -webkit-appearance: none; 
    background: rgba(255,255,255,0.4); height: 1px;
}
.hud-slider-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; width: 14px; height: 14px; 
    background: #fff; border: 2px solid var(--cian); border-radius: 50%; cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.btn-save-hud { 
    background: var(--cian); color: #fff; border: none; 
    padding: 16px; border-radius: 12px; font-weight: 700; 
    font-size: 1rem; cursor: pointer; width: 100%; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.4); margin-bottom: 10px;
}

#qrContainer { background:#fff; padding:15px; border-radius:12px; display:flex; justify-content:center; margin-top:10px; }