/* ==========================================
   BASE: variables, estructura general, pantallas y animaciones
   ========================================== */
:root { 
    --text-color: #e0e0e0; 
    --bg-dark: #000000; 
    --panel-bg: #000000; 
    --border-color: #222222; 
    --accent-cyan: #00d2ff; 
    --accent-cyan-hover: #00b8cc; 
    --alert-red: #ff3333;
    --cursor-color: var(--accent-cyan);   /* cursor de escritura corporativo (celeste, ancho) */
}

/* BLOQUEO GLOBAL DE SELECCIÓN DE TEXTO */
*, h2, p, span, div, button, .subtitle, .map-title {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* PERMITE EDITAR EN CAMPOS DE ENTRADA */
input, select, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

body { font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; background-color: var(--bg-dark); color: var(--text-color); margin: 0; padding: 0; display: flex; justify-content: center; align-items: flex-start; min-height: 100vh; overflow-x: hidden; position: relative; }

#app-container { width: 100%; max-width: 100%; background-color: var(--panel-bg); min-height: 100vh; padding: 25px 20px 45px 20px; box-sizing: border-box; position: relative; transition: all 0.3s ease; z-index: 10; }

.pantalla-compacta { max-width: 320px; margin: 0 auto; }

#pantalla-login .pantalla-compacta, #pantalla-menu .pantalla-compacta {
    background: #030303;
    border: 1px solid rgba(0, 210, 255, 0.3);
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.15), inset 0 0 15px rgba(0, 210, 255, 0.05);
    position: relative;
}


.pantalla { display: none; width: 100%; animation: fadeIn 0.3s ease-in-out; }
.activa { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

h2 { text-align: center; border-bottom: 1px solid #222; padding-bottom: 10px; margin-top: 0; color: #fff; font-weight: 400; letter-spacing: 0.5px; font-size: 15px; }
.subtitle { text-align: center; color: #888; font-size: 11px; margin-bottom: 15px; font-weight: 300;}
.map-title { text-align: left; margin-bottom: 10px; font-size: 12px; color: #aaa; }

/* LOGOS INICIALES MÁS GRANDES EN TODAS LAS PANTALLAS */
img.logo { width: 160px !important; display: block; margin: 0 auto 15px; }

#pantalla-splash { height: calc(100vh - 60px); }
#pantalla-splash.activa { display: flex; align-items: center; justify-content: center; }
#pantalla-splash img.logo { width: 200px !important; animation: pulse 2s infinite ease-in-out; margin: 0; }
@keyframes pulse { 0% { transform: scale(1); filter: brightness(1); } 50% { transform: scale(1.05); filter: brightness(1.2); } 100% { transform: scale(1); filter: brightness(1); } }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: rgba(0, 210, 255, 0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-cyan); }

.spinner-agua { width: 40px; height: 40px; margin: 0 auto; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--accent-cyan); border-bottom-color: var(--accent-cyan); animation: girar 1s linear infinite, parpadeo-rueda 1s ease-in-out infinite; position: relative; }
.spinner-agua::after { content: ''; position: absolute; top: 5px; left: 5px; right: 5px; bottom: 5px; border-radius: 50%; border: 3px solid transparent; border-left-color: rgba(0, 229, 255, 0.5); border-right-color: rgba(0, 229, 255, 0.5); animation: girar 0.8s linear infinite reverse; }
@keyframes girar { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
/* Las ruedas de carga parpadean mientras giran */
@keyframes parpadeo-rueda { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.blink { animation: blinker 1.5s linear infinite; }
@keyframes blinker { 50% { opacity: 0; } }

/* Siempre transparente: la pantalla se sigue viendo detrás de la rueda; queda sobre las ventanas abiertas */
#overlay-carga { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: transparent; z-index: 100002; flex-direction: column; justify-content: center; align-items: center; }
#overlay-carga.transparente { background: transparent; backdrop-filter: none; z-index: 100002; }
#texto-carga { text-transform: capitalize; text-shadow: 0 0 6px #000, 0 0 12px #000; animation: parpadeo-rueda 1s ease-in-out infinite; }

.marquee-footer {
    position: fixed; bottom: 0; left: 0; width: 100vw; background-color: rgba(0, 0, 0, 0.95);
    border-top: 1px solid #111; color: #aaa; font-size: 11px; font-weight: 400; padding: 6px 0; overflow: hidden; white-space: nowrap; z-index: 10000; text-transform: none; 
}
.marquee-content { display: inline-block; animation: marquee 25s linear infinite; letter-spacing: 0.5px; }
@keyframes marquee { 0% { transform: translateX(100vw); } 100% { transform: translateX(-100%); } }
.marquee-content b { font-weight: bold; color: #fff; font-size: 11px; }
.correo-min { font-weight: normal; color: #bbb; }

/* MARCA DE AGUA VERTICAL CORPORATIVA (NOTEBOOK) */
.marca-agua-vertical {
    position: fixed; 
    left: 20px; 
    top: 50%; 
    transform: translateY(-50%); 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px; 
    font-size: 52px; 
    font-weight: 700; 
    color: #00d2ff; 
    opacity: 0.15; 
    pointer-events: none; 
    user-select: none; 
    z-index: 9999; 
}
.marca-agua-vertical span {
    text-transform: uppercase;
    line-height: 0.8;
}

/* TEXTO CIAN CORPORATIVO SIN BOLD PARA LA BIENVENIDA DEL MENÚ */
#bienvenida-msg {
    color: #00d2ff !important;
    font-weight: normal !important;
    font-size: 13px !important;
}
.user-highlight {
    color: #00d2ff !important;
    font-weight: normal !important;
}

/* CURSOR DE ESCRITURA CORPORATIVO: ancho y celeste en todos los campos */
input, textarea, [contenteditable="true"] { caret-color: var(--cursor-color); caret-shape: block; }
