 :root {
            --primary-color: #0d6efd;
            --secondary-bg: #f8f9fa;
            --bottom-nav-height: 70px;
        }

        body {
            background-color: var(--secondary-bg);
            padding-bottom: calc(var(--bottom-nav-height) + 20px); /* Espacio para el menú inferior */
            font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        }

        /* Header Sticky */
        .app-header {
            position: sticky;
            top: 0;
            z-index: 1020;
            background-color: var(--primary-color);
            color: white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        /* Cards Personalizadas */
        .stat-card {
            border: none;
            border-left: 4px solid transparent;
            transition: transform 0.2s;
            box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
        }
        .stat-card:active {
            transform: scale(0.98);
        }

        .card-blue { border-left-color: #0d6efd; }
        .card-yellow { border-left-color: #ffc107; }
        .card-orange { border-left-color: #fd7e14; }
        .card-green { border-left-color: #198754; }

        /* Navegación Inferior Estilo App */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            width: 100%;
            height: var(--bottom-nav-height);
            background-color: white;
            border-top: 1px solid #dee2e6;
            z-index: 1030;
            display: flex;
            justify-content: space-around;
            align-items: center;
            padding-bottom: env(safe-area-inset-bottom);
        }

        .nav-item-link {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-decoration: none;
            color: #6c757d;
            font-size: 0.75rem;
            font-weight: 500;
            padding: 0.5rem;
            border-radius: 0.5rem;
            transition: color 0.2s, background-color 0.2s;
        }

        .nav-item-link.active {
            color: var(--primary-color);
            background-color: #e7f1ff;
        }

        .nav-item-link i {
            font-size: 1.5rem;
            margin-bottom: 2px;
        }

        /* Botón Central Flotante (Surtido) */
        .fab-container {
            position: relative;
            top: -25px;
        }
        
        .fab-button {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background-color: var(--primary-color);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
            border: 4px solid #f8f9fa;
        }
        
        .fab-button:active {
            transform: scale(0.95);
        }

        /* Animaciones de entrada */
        .view-section {
            display: none; /* Oculto por defecto */
            animation: fadeIn 0.3s ease-out;
        }
        .view-section.active {
            display: block;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Badges de estado */
        .badge-recibo { background-color: #cfe2ff; color: #084298; }
        .badge-surtido { background-color: #fff3cd; color: #664d03; }
        .badge-rampa { background-color: #ffe5d0; color: #fd7e14; }
        .badge-ruta { background-color: #d1e7dd; color: #0f5132; }
        .badge-cuarentena { background-color: #f8d7da; color: #842029; }
        
        .floating-action {
            position: fixed;
            bottom: 90px;
            right: 20px;
            z-index: 1020;
        }