/*!
 * =====================================================================
 * TUCNAY OPS - ESTILOS ESPECÍFICOS DE MÓDULO (LOGÍSTICA PWA)
 * =====================================================================
 * Archivo: theme_logistica.css
 * Descripción: Hoja de estilos complementaria a theme_global.css.
 * Contiene el layout específico, la barra de navegación inferior (TabBar),
 * cabecera dinámica y ajustes de contenedores para la app móvil de Despacho.
 * Versión: 1.0.0
 * Última Modificación: 27 de Abril, 2026
 * Dependencias: theme_global.css (Variables requeridas en :root)
 * =====================================================================
 */

/* CONFIGURACIÓN DE LIENZO INFINITO */
html, body {
    height: 100%; margin: 0; padding: 0;
    overflow: hidden; background-color: #050507;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* El Mapa como base absoluta */
#mapa-logistica {
    position: absolute;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 0;
    transition: filter 0.4s ease, opacity 0.4s ease;
    /* Mismo filtro de color del Wallboard */
    filter: saturate(0.85) brightness(1.02) contrast(1.05);
}

/* Capa UI */
.ui-overlay {
    position: relative;
    z-index: 10;
    height: 100vh;
    display: flex;
    flex-direction: column;
    pointer-events: none; /* Crucial: permite tocar el mapa a través de la capa */
}

/* Header y Nav: Reactivar interacción */
.app-header, .bottom-nav, #app-content {
    pointer-events: auto;
}

/* Glassmorphism Nativo */
.glass-panel {
    background: rgba(20, 22, 26, 0.75);
    backdrop-filter: blur(25px) saturate(160%);
    -webkit-backdrop-filter: blur(25px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* HEADER */
.app-header {
    height: 65px; display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px; margin: 15px; border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.nav-logo { height: 32px; filter: drop-shadow(0 0 8px rgba(255,255,255,0.1)); }

/* CONTENIDO DINÁMICO */
#app-content {
    flex: 1; overflow-y: auto; padding: 15px;
    padding-bottom: 110px; /* Espacio para que la nav no tape nada */
}

/* NAVEGACIÓN INFERIOR */
.bottom-nav {
    position: fixed; bottom: 20px; left: 20px; right: 20px;
    height: 75px; border-radius: 22px;
    display: grid; grid-template-columns: repeat(4, 1fr);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.4);
}
.nav-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #8b949e; cursor: pointer; transition: 0.3s;
}
.nav-item i { font-size: 1.3rem; margin-bottom: 5px; }
.nav-item span { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.nav-item.active { color: #00ADB5; }

/* ESTADOS DEL MAPA */
.map-dimmed { filter: brightness(0.3) blur(10px); opacity: 0.5; }