: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; }
/* Panel Superior Blanco */
.top-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40vh; /* Ocupa el 40% superior */
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 10;
}

.logo-container {
    text-align: center;
}

.brand-name {
    font-family: 'Courier New', Courier, monospace; /* Tipografía estilo máquina de escribir */
    font-size: 2.2rem;
    font-weight: bold;
    color: #000;
    margin-top: -10px;
    letter-spacing: -1px;
}

/* Contenedor de los dos botones circulares */
.action-buttons-container {
    position: absolute;
    bottom: 50px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 40px; /* Separación entre botones */
    z-index: 10;
}

/* Diseño de los botones redondos */
.btn-circle {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    background-color: #ffffff;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.btn-circle:active {
    transform: scale(0.9);
}
/* DISEÑO EXACTO AL DE LA CAPTURA */
.ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

/* Panel Superior Blanco (ocupa el 50% de la pantalla) */
.top-panel {
    flex: 0 0 50%; /* Ocupa exactamente la mitad superior */
    background-color: #fcfcfc;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.logo-container {
    text-align: center;
    margin-top: -20px; /* Sube un poco el conjunto para que quede centrado visualmente */
}

/* Tipografía de la marca */
.brand-name {
    font-family: 'Courier New', Courier, monospace;
    font-size: 2.2rem;
    color: #000;
    margin-top: 10px;
    letter-spacing: 1px;
}

.x-brand {
    font-size: 2.5rem; /* La X es un pelín más grande para destacar */
}

/* Panel Inferior (Cámara de fondo) */
.bottom-panel {
    flex: 0 0 50%; /* Ocupa la mitad inferior */
    position: relative;
    /* No le ponemos fondo para que se vea la cámara (<video>) a través de él */
}

/* Contenedor de los botones */
.action-buttons-container {
    position: absolute;
    bottom: 50px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 40px; /* Separación entre los dos botones */
}

/* Diseño de los botones redondos */
.btn-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #ffffff;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.1s;
    /* En tu foto no tienen sombra, pero si quieres sombra descomenta la línea de abajo */
    /* box-shadow: 0 4px 10px rgba(0,0,0,0.3); */ 
}

.btn-circle:active {
    transform: scale(0.9);
}