/* =========================================
   VARIABLES DE MARCA (RADAR SOS C.A.)
========================================= */
:root {
    --cat-yellow: #FFB300;
    --bg-dark: #0a0a0a;
    --panel-bg: #161616;
    --text-main: #E0E0E0;
    --border-color: #333333;
}

/* =========================================
   ESTRUCTURA BASE
========================================= */
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    /* Bloqueo táctil maestro para evitar gestos de zoom extraños */
    touch-action: manipulation; 
}

h1, h2, h3, .badge {
    font-family: 'Share Tech Mono', monospace;
    margin: 0;
}

/* =========================================
   BARRA SUPERIOR (FIJA)
========================================= */
.top-bar {
    background-color: #000;
    border-bottom: 2px solid var(--cat-yellow);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.top-bar h1 {
    color: var(--cat-yellow);
    font-size: 24px;
    letter-spacing: 2px;
}

.badge {
    display: inline-block;
    background-color: #222;
    color: #fff;
    padding: 3px 8px;
    font-size: 12px;
    border: 1px solid #444;
    border-radius: 3px;
    margin-top: 5px;
}

.user-info {
    font-size: 14px;
    color: #888;
}

/* =========================================
   CONTENEDORES
========================================= */
.container {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 15px;
}

.panel {
    background-color: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 30px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.panel h2 {
    color: #fff;
    font-size: 22px;
    letter-spacing: 1px;
}

hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 20px 0;
}

/* =========================================
   BOTONES TÁCTICOS Y FORMULARIOS
========================================= */
.btn-tactical, .btn-tactical-alt, input, select, textarea {
    /* Desactiva el zoom al tocar formularios o botones repetidamente */
    touch-action: manipulation; 
}

.btn-tactical, .btn-tactical-alt {
    font-family: 'Share Tech Mono', monospace;
    font-size: 16px;
    font-weight: bold;
    padding: 14px 20px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    box-sizing: border-box;
}

.btn-tactical {
    background-color: var(--cat-yellow);
    color: #000;
}

.btn-tactical:hover {
    background-color: #FFC107;
    box-shadow: 0 0 15px rgba(255, 179, 0, 0.4);
}

.btn-tactical-alt {
    background-color: transparent;
    color: var(--cat-yellow);
    border: 1px solid var(--cat-yellow);
}

.btn-tactical-alt:hover {
    background-color: rgba(255, 179, 0, 0.1);
}

/* =========================================
   ADAPTACIÓN A TELÉFONOS MÓVILES (APP FEEL)
========================================= */
@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        text-align: center;
        padding: 10px;
        gap: 8px;
    }
    
    .container {
        margin: 0;
        padding: 0;
    }
    
    .panel {
        border-radius: 0;
        border-left: none;
        border-right: none;
        padding: 20px 15px;
        min-height: calc(100vh - 85px); 
    }
    
    .btn-tactical, .btn-tactical-alt {
        width: 100%;
        display: block;
        margin-bottom: 15px !important; 
        padding: 18px 20px; 
        font-size: 18px;
    }
    
    div[style*="display: flex; gap: 10px; flex-wrap: wrap;"] {
        flex-direction: column;
        gap: 0;
    }
    
    .table-tactical {
        display: block;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch; 
    }
    
    input, select, textarea {
        font-size: 16px !important; 
        padding: 15px !important;
    }
}